This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28377S: the problem of switching tasks in an interrupt program while running UCOS ii

Part Number: TMS320F28377S

Hi.

I port ucos-II programs in TMS320F28377S,find that if I switch tasks in the interrupt ISR (e.g., perform OSQPost() in timer0 ISR to get task A ready and switch to task A), the next time Timer0 ISR will not respond until task A has been executed.

I think the reason which prevented the entry of the next interrupt is that time0 ISR did not complete when switching task A-------The instruction "asm(" TRAP #16")" in OSIntCtxSw() will be executed directly even if the global interrupt is masked(INTM = 1).

How can I solve this problem?