 | Discussion Forum |  |
|
|
Cortex, events inside a interruptNext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Cleber da Silva Melo Posted 20-Jan-2009 17:14 GMT Toolset ARM |  Cortex, events inside a interrupt Cleber da Silva Melo 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. | | Read-Only Author Robert McNamara Posted 20-Jan-2009 17:31 GMT Toolset ARM |  RE: Cortex, events inside a interrupt Robert McNamara use the isr versions of the routines. (isr_evt_set and isr_mbx_send) | | Read-Only Author Cleber da Silva Melo Posted 20-Jan-2009 17:54 GMT Toolset ARM |  RE: Cortex, events inside a interrupt Cleber da Silva Melo Thanks Robert, Im new with Keil and I have not seen this detail. Per Westermark, you already know where to go. | | Read-Only Author Per Westermark Posted 20-Jan-2009 17:33 GMT Toolset ARM |  RE: Cortex, events inside a interrupt Per Westermark 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? | | Read-Only Author Per Westermark Posted 21-Jan-2009 09:53 GMT Toolset ARM |  RE: Cortex, events inside a interrupt Per Westermark 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. | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|