2006-05-12 20:53:15 UTC
hi,
isnt it dangerous to assume 8 bytes are pushed on the stack with each ISR call (see quote below from "[Howto use this uC/OS-II port on TI C6000 DSP]" document. this might be true for one ISR, but what about another? since the compiler decides this, this will never be a safe.
CCS should allow you to give a list of registers to save with the "interrupt" instruction.
************************************
"# In addition, you can set the "Interlisting" option in "Build Options/Feedback", and have a look at the ASM code of your ISR fuction.
Mack sure that just 8 bytes was push in stack, before the DSP_C6x_Save() was called. That should be something like "STW B4,*SP--(8)" Or else, the uC/OS-II would run away when this interrupt happens."
********************************************
thanks
david