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.

TMS320F28027: How to recover from CSM lock

Part Number: TMS320F28027

The TMS320F28027 program cannot be loaded with the following error:
(See the captured image below)

The error code is as follows.
----- -----
C28xx: Flash Programmer: Device is locked or not connected. Operation canceled.
C28xx: File Loader: Memory write failed: Unknown error
C28xx: GEL: File: F2802x_FLASH \ PHASE3.out: Load failed.
----- -----

The TMS320F28027 will not recover even if the power is turned off or the CCS is restarted. Also, you cannot load the OUT file of another project.

I suspect that the CSM has been locked for some reason. It's okay for the internal code to disappear completely, so is there a way to get it back?

Thanks,

Koki

  • Koki,

    I can only help you to get connected the device using JTAG. Do you have CSM password to unlock the device? If not, you can get connected to the device but you cannot erase / program flash / recover the device.

    To unlock the device which is CSM protected:-

    1) Select SCI boot using boot mode pins

    2) Power cycle the device

    3) Don't send SCI data using either host (or) other MCU

    4) C2000 MCU stays in an infinite loop waiting for data from the host preventing MCU to access secure memory contents

    5) Connect the device C2000 MCU using CCS

    6) Unlock the device by entering password in 0xAE0 - 0xAE7 memory location

    7) Erase Sector A of flash to recover the device.

    Regards,

    Manoj