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.

F28M35H52C: Every Register and variable goes to 0x0BAD

Part Number: F28M35H52C


While running a certain code, when I enter a specific operation point where the program uses many times the "Action-Qualifier Software Force Register and Mirror Registers", and specifically when the "One-Time Software Forced Event on Output" (either OTSFA or OTSFB) are put into 1, initiating a single software forced event, the program goes to an infinite loop where every variable and every register takes the 0x0BAD value.

The rest of the code is executed perfectly if these commands are commented. I have tried using different versions of the CCS, different compilers, different PCs and different JTAGs. What could be the cause of this problem? 

Thank you,

Ricard

  • Ricard,

    when 0x0BAD is shown by CCS it is often because CCS attempted to read a location but received no response from the device. Are you able to suspend execution after you see this condition? Does the device disconnect?

    I think this issue is more of a communication issue between CCS and the device, your code may be executing correctly.

    Regards,
    Cody