cancel
Showing results for 
Search instead for 
Did you mean: 

How to set hardware interrupt priorities in Free RTOS???

l90mehdi
Associate II
Posted on March 13, 2017 at 13:01

Hello to all.

I am trying to use Free RTOS.

but i do not know how to set hardware interrupt priorities in free RTOS???????

for example i have 3 tasks with different priorities.

also in my code i set or reset pins with external interrupt.but sometimes when external interrupt occurs,my codes does not run correctly and i feel it is a matter of priorities.

please help me .

thank you.

#interrupts-in-free-rtos #interrupts #free-rtos
2 REPLIES 2
Nesrine M_O
Lead II
Posted on March 14, 2017 at 13:53

Hi

khastar.mehdi

,

Any interrupt service routine that uses an RTOS API function must have its priority manually set to a value that is numerically equal to or greater than the configMAX_SYSCALL_INTERRUPT_PRIORITY setting in FreeRTOSConfig.h file. This ensures the interrupt's logical priority is equal to or less than the configMAX_SYSCALL_INTERRUPT_PRIORITY setting.

Please refer to

http://www.st.com/content/ccc/resource/technical/document/user_manual/2d/60/ff/15/8c/c9/43/77/DM00105pdf/files/DM00105pdf/jcr:content/translations/en.DM00105pdf

User manual about Developing Applications on STM32Cube with RTOS.

-Nesrine-

Posted on March 18, 2017 at 13:19

hi Nesrine

I had read this matter.

thank you .