Hello,
1. I am working with CC3200 LaunchPad (Rev-B), and there is a CC112xx radio connected to it.
2. I am using TI RTOS Ver tirtos_cc32xx_2_16_01_14
3. I am rather new to the Ti-Rtos and I experience difficulties initiating a mail box message from external h/w ISR rutine.
4. When the External H/W Interrupt executes, I try to send a mail box message to a task which is waiting on this mail box, and the process fails.
The tasks, MBX, events, etc' works ok when working between tasks. But as soon as i send a message from the Ext.H/w ISR, the sending process
fails inside the "Bool Mailbox_post(Mailbox_Object *obj, Ptr msg, UInt32 timeout)". it causes a "Error_policySpin".
The line in the code that causes this issue is inside the "Mailbox_post" : Queue_put(dataQue, (Queue_Elem *)elem);
5. Investigation of the system shows: xPSR register value = 0x41000010, and it seems that the failure is in the 'Task_checkStacks' which the "oldTaskStack" is pointing to wrong address space! (the newTask and oldTask are correct). I am not sure, as i said i am new to the TI_Rtos, but this is a verification that occures usualy at a context switch between tasks, and at this moment my code is running at a External H/W Interrupt.
--> So, my question: Can I Send a mail box message from within an External H/W ISR context ?