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.

CCS/TMS320F28379D: PC toggles between 2 consecutive address locations

Part Number: TMS320F28379D

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.