Loading...
 
Skip to main content

System Workbench for STM32


The naked Attribute

There is a description of how and why the "naked" attribute is used for ISRs on this page:
http://www.freertos.org/implementation/a00013.html

Should I be adding this for the Callbacks ST32CubeMX created for servicing the timers and A to D converters? I have included FREERTOS in the project.

Should the "FromISR" versions of FREERTOS calls be used within callbacks?

France

Hi,

On Cortex-M based processors the "naked" attribute should not be used for ISRs; the processor itself does what is needed so that a normal function can be used as an interrupt handler. The prototype should be:
Copy to clipboard
void ''ISRname''_IRQHandler(void);


Regarding the ISR code, yes, your ISR should only use FromISR versions of the FreeRTOS functions.

Bernard (Ac6)