Hi,
I'm experiencing random but relatively rare M3 CPU crashes and i'm out of ideas!
I use a custom board with a F28M36P63C2 processor. TI-RTOS 2.0.1.23.
It's a program that uses several HWI, all configured as instances of HWI using the GUI. All interrupts have the same priority (except the NDK) equal to 224 (priority treshold for disable() = 32).
I'm getting the weirdest things, but the two most often:
- stack overflow in task 0x0. (while all tasks stacks seem fine in ROV, usually except one which is corrupt)
- hard fault (FORCED)
Sadly it all happens after different interrupt routines.
The thing that starts to appear is that it seems to me that it happens after a semaphore_post() in an HWI. All my interrupt routines post a semaphore to a task that handles the data. I found some posts about it, but they either don't give an answer, or the answer does not apply for me : the priority is above the priority treshold for disable(), and I don't use the 'interrupt' keyword.
The crash happens about every 5 hours, so it's extremely frustrating to find! It is also extremely odd because there are a lot of different interrupts going on at the same time : 2x UART every 1ms a string of 50chars is sent, CAN coms every 1 ms, a lot of ethernet communications, ... It's extremely odd to have a crash only after about 5 hours!
an example of an interrupt routine:
void