Search found 417 matches

by cfbsoftware
Sat Dec 28, 2019 4:11 am
Forum: Astrobe for ARM Cortex-M3, M4 and M7
Topic: push {}
Replies: 20
Views: 18690

Re: push {}

Here's an example of how to test the trapping of UsageFault errors:

Code: Select all

MODULE TestTraps4;

IMPORT Main, Out, SYSTEM;

VAR
  p: PROCEDURE;
  x: INTEGER;
  
PROCEDURE P1();
BEGIN
  Out.String("ok"); Out.Ln()
END P1;

BEGIN
  P1();
  SYSTEM.PUT(SYSTEM.ADR(p), SYSTEM.ADR(P1) + 1);
  p()
END TestTraps4.
by cfbsoftware
Sat Dec 28, 2019 3:57 am
Forum: Astrobe for ARM Cortex-M3, M4 and M7
Topic: push {}
Replies: 20
Views: 18690

Re: push {}

Not but design and you didn't miss anything either. I wasn't aware of this - do you know of any reason why they are disabled by default? The following example code shows one way they could be enabled: CONST NVIC_SHCSR = MCU.NVICBase + 0D24H; VAR x: INTEGER; SYSTEM.GET(NVIC_SHCSR, x); BFI(x, 18, 16, ...
by cfbsoftware
Fri Dec 27, 2019 11:14 am
Forum: Astrobe for ARM Cortex-M3, M4 and M7
Topic: push {}
Replies: 20
Views: 18690

Re: push {}

Because of your contributions to this exercise, I've sent you a preview copy by separate email of the updated v7.1 version of Traps.mod for you to experiment with.
by cfbsoftware
Thu Dec 26, 2019 6:38 pm
Forum: Astrobe for ARM Cortex-M3, M4 and M7
Topic: push {}
Replies: 20
Views: 18690

Re: push {}

Any hint how to detect a leaf procedure from an exception handler? This was the best we could come up with: SYSTEM.GET(id.addr + 4, id.lineNo); (* Not a valid line number: a leaf procedure, adjust address *) IF BFX(id.lineNo, 31, 16) # 0 THEN id.addr := id.addr + 4; SYSTEM.GET(id.addr + 4, id.lineN...
by cfbsoftware
Wed Dec 25, 2019 6:48 pm
Forum: Cortex-M3
Topic: Display Text on a 1.8" 128 x 160 Colour TFT screen
Replies: 1
Views: 6077

Re: Display Text on a 1.8" 128 x 160 Colour TFT screen

Because of the problems reported with the v2 version of the AdaFruit TFT Display Shield I've decided to now support the ST7735 TFT Display driver library and associated demos on the simpler AdaFruit 1.8" Color TFT LCD display with MicroSD Card Breakout : https://www.adafruit.com/product/358 I have t...
by cfbsoftware
Wed Dec 25, 2019 10:04 am
Forum: RISC5
Topic: Colour graphics demo for a 1.8" TFT Display
Replies: 9
Views: 10347

Re: Colour graphics demo for a 1.8" TFT Display

Because of the problems reported previously in this discussion I've decided to now support the ST7735 TFT Display driver library and associated demos on the simpler AdaFruit 1.8" Color TFT LCD display with MicroSD Card Breakout : https://www.adafruit.com/product/358 I have tested it on both the Arty...
by cfbsoftware
Tue Dec 24, 2019 9:57 pm
Forum: RISC5
Topic: Colour graphics demo for a 1.8" TFT Display
Replies: 9
Views: 10347

Re: Colour graphics demo for a 1.8" TFT Display

I'm sorry about the delay but I have only just been able to allocate the resources to revisit this issue. Although the physical SPI connectors used are different from v1 they should map onto the existing ones. The next issue is that the backlight is now PWM controlled via I2C through a separate onbo...
by cfbsoftware
Fri Nov 29, 2019 6:41 am
Forum: Cortex-M3
Topic: Using System Tick
Replies: 4
Views: 3620

Re: Using System Tick

I haven't used it myself. Does this article help?

http://www.exploreembedded.com/wiki/LPC ... Tick_Timer

If not send us a minimal example of your code with a test program to exercise it and we'll investigate here.
by cfbsoftware
Sun Nov 10, 2019 9:37 am
Forum: RISC5
Topic: Colour graphics demo for a 1.8" TFT Display
Replies: 9
Views: 10347

Re: Colour graphics demo for a 1.8" TFT Display

Thank you for your offer but no need to worry. I've since ordered one from Digi-Key who have 60+ in stock.
by cfbsoftware
Fri Nov 08, 2019 10:20 am
Forum: RISC5
Topic: Colour graphics demo for a 1.8" TFT Display
Replies: 9
Views: 10347

Re: Colour graphics demo for a 1.8" TFT Display

I checked the AdaFruit website and it appears that you have 'Version 2' which is significantly different to 'version 1' :o Unfortunately they are currently out of stock of the latest version so I have asked them to notify me when they are back in stock again.