Good day,
IÂ'm starting a project with Cortex M3 (STM32F103R more exactly) using the RTX. IÂ'm having troubles when I set some event ("os_evt_set" or "os_mbx_send") inside a interrupt. Every time I do that, the program jump to HardFault_Handler. I rewrote my program using polling method (just for test), instead of interrup, and the program works fine.
How can I work with events inside a interrupt ?
Thanks.
Of course you fail! But what does the manual say about the use of os_xxx function inside interrupt handlers?
Have you ever wondered why there is a function os_evt_set() and another called isr_evt_set()?
And why there is a os_mbx_send() and a isr_mbx_send() function?
Temper, temper.
It is when you are new with a product, that it is extra important to read the manual. If you only read an individual page here and there, you will never know what information you will miss.
View all questions in Keil forum