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/TMS320F28027: F28027 locked !!!

Part Number: TMS320F28027
Other Parts Discussed in Thread: CONTROLSUITE, TMS320F28050

Tool/software: Code Composer Studio

Hi All,

I have the same issue with my F28027, apparently it got locked and I am struggling to unlock it. I have read many forums on this but unfortunately i dont see any one solving it !

I read some of the threads ask to check at the CSM passwords but i am not sure how to do this ? because i cant even connect to the device. 

I tried power cycling and restarting CCS but it doesnt still work. I am using CCS 6.1. How do i unlock the device with a password ? Could someone please guide me ?

I am using the F28027 C2000 Launchpad XL I have been using for couple of months without any problems. 

Thanks !

Best regards,

Srini

C28xx: GEL Output:
Device Calibration not complete, check if device is unlocked and recalibrate.C28xx: Flash Programmer: Warning: The configured device (TMS320F28027), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.
C28xx: GEL Output:
Device Calibration not complete, check if device is unlocked and recalibrate.C28xx: Flash Programmer: Device is locked or not connected. Operation cancelled.
C28xx: File Loader: Memory write failed: Unknown error
C28xx: GEL: File: C:\Users\SONY\Documents\IMU\Example_F2802xLaunchPadDemo\Flash\Example_F2802xLaunchPad_demo.out: Load failed.

  • Srinivansan,

    As the CCS suggested, your device is locked with CSM password and ECSL logic is tripping JTAG when PC makes access to secure memory location.

    You can get around this situation by using waitbootmode option. Please refer to bootrom reference guide to know how to enter this mode. Once you enter this mode, you can connect to the device and unlock the device if you know your CSM password.

    Regards,
    Manoj
  • Hi Manoj,
    thanks for your reply, i will try the wait boot mode after i figure it out... Can you please suggest a material to read about it ?
    Also how do i get the password for unlocking ?
  • Hi,

    You can get the details about wait boot mode in TMS320x2802x Piccolo Boot ROM Reference Guide (Rev. A)

    You can't unlock the device without a valid CSM password.

    It looks like you have got your device locked accidentally. If you have the source code of the programs you used, CSM passwords are generally stored in section .csmpasswds in file f2802x_csmpasswords.asm (controlSUITE\device_support\f2802x\v230\f2802x_common\source).

    If you got the device locked using CCS flash plugin, your only chance to unlock is to remember the password. If unsuccessful in both these methods, you just have to replace the part. There is no other way to unlock the device.

    Regards,
    Manoj
  • Srinivasan,
    Were you able to figure out how the device got secured? Did you actually use passwords during flash programming? Or is it that you never used password, but the device got locked inadvertently due to some reason (perhaps because of a power failure or brown-out event during flash programming)? If it is the latter, the only solution is to replace the chip. It would be prudent to figure out how this happened, in order to avoid it in future.
  • Hi Hareesh and Manoj,

    thanks a lot for your reply. Unfortunately I havent had the time to try out the solution provided by Manoj.
    It got locked when I was trying to upload a code, while the code was uploading the pressed the reset button by mistake then lost all interaction with the board. I have been using that board for almost 2 years so I dont want to lose it...
  • Hi All,

    Now I get this error.

    C28xx: Failed CPU Reset: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 6.0.14.5)
    C28xx: Trouble Reading Register PC: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 6.0.14.5)
    C28xx: Trouble Reading Register ST1: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 6.0.14.5)
    C28xx: GEL: Error while executing OnReset(1): Target failed to read register ST1
    at (ST1&~(0x0100)) [f28027.gel:272]
    at C28x_Mode() [f28027.gel:33]
    at OnReset(1)
    C28xx: Flash Programmer: Warning: The configured device (TMS320F28027), does not match the detected device (TMS320F28050). Flash Programming operations could be affected. Please consider modifying your target configuration file.
    C28xx: GEL Output:
    Device Calibration not complete, check if device is unlocked and recalibrate.C28xx: Flash Programmer: Device is locked or not connected. Operation cancelled.
    C28xx: File Loader: Memory write failed: Unknown error
    C28xx: GEL: File: C:\Users\SONY\Documents\IMU\Example_F2802xLaunchPadDemo\Flash\Example_F2802xLaunchPad_demo.out: Load failed.


    I cant even do RAM debug !!!
    I am just going to change the chip.

    Best regards,

    Srinivasan
  • Srini,
    Oh OK. So the flash programming operation was interrupted... It is likely the password locations have some random values and the device has been inadvertently secured. Unfortunately, you have no solution other than to replace the device.
  • Hi
    I am having trouble starting a thread, ti forums wont let me post my question....the page just keeps loading after i filling all the fields in the forum page...