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.
Tool/software: Code Composer Studio
During free run/step over execution, the PC toggles between 0x008037 and 0x008038. The PC jumps to these two locations randomly and not at a definite line of code.
Stack is popped out using the instruction "SUBB ACC, #1" at address location "0x008037" after a function execution.
Branch Fast instruction "BF -1, GEQ" is executed at address location "0x008038" during the beginning of a function.
The above mentioned address locations are the end (SPI_enableFIFO()) and start (SPI_resetTxFIFO()) of SPI COTS functions.
Note: Although the watchdog is enabled during initialization, it gets disabled when the above phenomenon occurs.
Thank you in advance for all the responses.
Rakshit,
Have you tried increasing the stack size to make sure the issue is not because of stack corruption? If not then please try increasing the stack size and see if issue is resolved.
Regards,
Vivek Singh