Search found 355 matches

Return to advanced search

Re: ISR Use of Registers; Privileged Mode?

And you don't mark the exception handlers in Traps.mod with square brackets because it does not matter, as you never return to the interrupted code anyway? Correct. In the same vein -- the nagging and trying to understand :| -- another question about Traps.mod: why do you assign SVCTrap to the vect...
by cfbsoftware
Wed Feb 20, 2019 11:14 am
 
Forum: Cortex-M3
Topic: ISR Use of Registers; Privileged Mode?
Replies: 5
Views: 16

Re: ISR Use of Registers; Privileged Mode?

Yes - that is the function of the square brackets after the procedure (handler) name. It indicates to the compiler that registers have to be saved on entry to the handler and restored on return. Refer to section 4.6 Interrupt Handlers in the Astrobe ARM Cortex-M Oberon programmers Guide for more det...
by cfbsoftware
Wed Feb 20, 2019 7:45 am
 
Forum: Cortex-M3
Topic: ISR Use of Registers; Privileged Mode?
Replies: 5
Views: 16

Re: user traps

ad 2.) as sysHandler runs as exception handler, it will result in a Hard fault. But that's true for UserHandlers set via Traps.mod as well, isn't it, as they also run as exception handlers, being called from SVCTrap. Or do I miss something? Yes - you are right. The same thing occurred to me after I...
by cfbsoftware
Tue Feb 19, 2019 8:41 pm
 
Forum: Astrobe for ARM Cortex-M3, M4 and M7
Topic: user traps
Replies: 7
Views: 756

Re: user traps

A couple of things I'm uneasy about that I think you should consider:

1. What are the consequences when the ASSERT in svcHandler fails? It might be sufficient just to skip the call to sysHandler if it is NIL.

2. What happens if sysHandler causes an exception?
by cfbsoftware
Tue Feb 19, 2019 12:08 pm
 
Forum: Astrobe for ARM Cortex-M3, M4 and M7
Topic: user traps
Replies: 7
Views: 756

Re: ISR Use of Registers; Privileged Mode?

When an interrupt handler is invoked any additional registers that need to be saved are automatically saved.

All Astrobe applications run in Privileged mode. There is no built-in support for running in User mode.
by cfbsoftware
Tue Feb 19, 2019 11:20 am
 
Forum: Cortex-M3
Topic: ISR Use of Registers; Privileged Mode?
Replies: 5
Views: 16

v7.0 Astrobe for Cortex-M4 has been released

v7.0 Astrobe for Cortex-M4 has now been released. See What's New in Astrobe for Cortex-M4 for a summary of the bug-fixes, new features and enhancements. If you are a registered user of the Professional or Personal Editions and your support period has not yet expired you are eligible for a free upgra...
by cfbsoftware
Sun Feb 17, 2019 5:24 am
 
Global announcement: v7.0 Astrobe for Cortex-M4 has been released
Replies: 0
Views: 32

Re: Call Stack

Niklaus Wirth describes the compiler's mechanics for stack management in great detail in An Oberon Compiler for the ARM Processor which you can download from the Oberon page on his website. The corresponding code generated by the Cortex-M3 code generator of the Astrobe Oberon compiler is effectively...
by cfbsoftware
Wed Feb 13, 2019 11:01 am
 
Forum: Cortex-M3
Topic: Call Stack
Replies: 3
Views: 46

Re: Call Stack

Currently only the location where the error occurred and the current value of the registers are displayed. Displaying the call stack is on our todo list for a future release. AFAIK It should just require some additional code in the Traps library module.
by cfbsoftware
Tue Feb 12, 2019 1:08 pm
 
Forum: Cortex-M3
Topic: Call Stack
Replies: 3
Views: 46

Re: M3-v7.0 -- Error in example Info.mod

Thanks for pointing that out. The STM32 Info examples are now located in the STM32-specific folders. We'll have to move the copy of Info that is still in the General folder to the NXP-specific folders as well to avoid confusion.
by cfbsoftware
Tue Feb 12, 2019 12:50 pm
 
Forum: Cortex-M3
Topic: M3-v7.0 -- Error in example Info.mod
Replies: 1
Views: 26

Re: user traps

v7.0 of Astrobe for Cortex-M now supports user-customisable trap handlers. See the attached source code example of its use. The output from the example is:

UserTraps.gif
UserTraps.gif (2.57 KiB) Viewed 87 times
by cfbsoftware
Sun Feb 10, 2019 9:49 pm
 
Forum: Astrobe for ARM Cortex-M3, M4 and M7
Topic: user traps
Replies: 7
Views: 756
Next

Return to advanced search

cron