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/TMS320F28069: Error connecting to the target: Error -1015. Device may be locked

Part Number: TMS320F28069
Other Parts Discussed in Thread: UNIFLASH

Tool/software: Code Composer Studio

Hi All,

I am using TMS320F28069 MCU and CCS 6  to debug my code using  XDS100v2 Emulator.   I have my own hardware.  During ram processing everthing is fine but  during the flash programming process , device always  locks and I cannot program it anymore.  I've got no idea why the MCU locks without no reason.

Can anyone help me with that? Is there anything wrong with my hardware or settings?

"C28xx: Error connecting to the target: (Error -1015 @ 0x0) Device is not responding to the request.  Device may be locked, or the emulator connection may be unreliable. Unlock the device if possible, and power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings"

Best Regards

Yusuf 

  • Are you able to connect to the device? If not, you can use wait boot mode this would allow you to connect to the device before JTAG gets tripped because of ECSL.

    To confirm whether device is locked?
    Check whether CSMSCR.bit0 = 1 (this confirms that device is indeed password protected)

    Also, check in your projects what is getting programmed in locations 0x3F7FF8 - 0x3F7FFF?

    Regards,
    Manoj
  • Manoj
    Yes, I am able to connect to the device but I couldn't load program in it and I had to replace the MCU.

    I also checked the location 0x3F7FF8 - 0x3F7FFF from cmd file and it is programmed as below:

    CSM_RSVD : origin = 0x3F7F80, length = 0x000076 /* Part of FLASHA. Program with all 0x0000 when CSM is in use. */
    BEGIN : origin = 0x3F7FF6, length = 0x000002 /* Part of FLASHA. Used for "boot to Flash" bootloader mode. */
    CSM_PWL_P0 : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASHA. CSM password locations in FLASHA */

    I suspect if there might be a problem about JTAG connections. TMS, TDI, TRST, TDO and TCK is directly connected to the MCU and EMU0 and EMU1 is connected nowhere. Is that right ?

    Is it possible to unlock the MCU If the MCU is permanently locked during flash processing? I heard about uniflash program.

    Best Regards
    Yusuf
  • Hi,

    Yusuf Ulu said:

    I suspect if there might be a problem about JTAG connections. TMS, TDI, TRST, TDO and TCK is directly connected to the MCU and EMU0 and EMU1 is connected nowhere. Is that right ?

    Check this link:

    Yusuf Ulu said:
    Is it possible to unlock the MCU If the MCU is permanently locked during flash processing?

    Quite possible, Yusuf! In this case you won't be able to unlock the device and replacing the same is the only option.

    Regards,

    Gautam

  • Yusuf,

    If you don't know the CSM password you don't have any other option but to replace the unit.

    Regards,
    Manoj
  • Hi Manoj
    Thank you very much for your help. I replaced the MCU as you have suggested. It seems no longer problem about that for now.


    Best Regards,
    Yusuf