SLUAAP5 july   2023 UCD3138 , UCD3138064 , UCD3138064A , UCD3138128 , UCD3138128A , UCD3138A , UCD3138A64

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Why Lockup Can Occur
  5. 2Reasons for Lockup
    1. 2.1 Wrong Code in the load.asm
    2. 2.2 Misoperation with TI GUI
    3. 2.3 zero_out_integrity_word Function Fails
    4. 2.4 PMBus Communication Fails
    5. 2.5 Unexpected Occurrences
  6. 3How to Avoid a Lockup
  7. 4Unlock with JTAG
    1. 4.1 Enable JTAG Functionality
    2. 4.2 New Target Configuration in CCS
    3. 4.3 Clear the Flash
  8. 5Summary
  9. 6References

Enable JTAG Functionality

JTAG port mainly includes 4 pins TCK/TDI/TDO/TMS. Those 4 pins can work in GPIO mode if the JTAG function is disabled, which is the normal case in application. To enable JTAG functionality, check the configuration of registers in the following, and reconfigure them if necessary. Set the IOMUX register to be 0 to enable JTAG, and make sure none of TCK/TDI/TDO/TMS pins works in GPIO mode. This can be done via the memory debugger in UCD3xxx Device GUI.

       MiscAnalogRegs.IOMUX.all = 0; //enable JTAG

                MiscAnalogRegs.GLBIOEN.bit.TCK_IO_EN = 0;
                MiscAnalogRegs.GLBIOEN.bit.TDI_IO_EN = 0;
                MiscAnalogRegs.GLBIOEN.bit.TDO_IO_EN = 0;
                MiscAnalogRegs.GLBIOEN.bit.TMS_IO_EN = 0;