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/TM4C1290NCZAD: Cannot load new program if Tiva enters Hibernation mode

Part Number: TM4C1290NCZAD

Tool/software: Code Composer Studio

Hi

My customer reported they cannot program the code by CCS.
According to their investigation, their code puts Tiva in Hibernation mode as soon as the code starts.
Then it prevents CCS load new program next time.
If customer remove the code to put Hibernation mode, the issue disappears.

I found below thread handled exactly the same issue.
https://e2e.ti.com/support/microcontrollers/other/f/908/t/738171
The answer is applicable only for LM Flash Programmer.

Are there any solutions for CCS? Do we have similar debug feature?

Thanks and regards,
Koichiro Tashiro

  • If the device in in Hibernate mode, it cannot communicate with the debugger so it cannot be reprogrammed. The application should have some way of coming out of hibernation mode, or prevent it from going into hibernation mode, such as the level on a port pin. If you have a part that is stuck in hibernation mode, the solution is to use the Unlock procedure to  erase the entire flash (including user registers and MAC address). There is the option to do this in CCS, but if using the Stellaris ICDI (such as is on the launchpads) it is not currently working. Use LM Flash Programmer instead. Once the flash is erased, you can go back to using CCS.

  • Hi Bob,

    Thanks for your quick reply!
    Customer is using XDS110 not LM Flash Programmer.
    Could you point me where we can find Unlock procedure in CCS?

    Thanks and regards,
    Koichiro Tashiro

  • Launch the target configuration for the TM4C129 device, but do not power-on the device yet. From the menu select "Tools" -> "On-Chip Flash".  Scroll down in the On-Chip flash dialog box until you see "Debug Port Unlock" as shown below. Select the Tiva Class devices. They must hold reset while the device is powered on and click the unlock button before releasing reset. Follow the instructions given. I have not tried this with XDS110.