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.

TMS320F28069 C28xx: Flash Programmer: Device is locked or not connected. Operation cancelled.

Other Parts Discussed in Thread: CONTROLSUITE, UNIFLASH

In the process of developing boot loader and on board programming code a recent attempt at reprogramming flash resulted in a locked Flash indicated by the message:

C28xx: Flash Programmer: Device is locked or not connected. Operation cancelled.

 

I have read in other posts that the boot pins can be configured to change the boot mode and then re-gain access to the flash device. Our device is soldered onto a controller board and we have no direct to access to the TRST and GPIO boot select lines without removing the device from the board.

Is there no other method to unlock the flash?

 

Thanks in advance,

Doug R.

 

  • Hi Doug,

    Douglas Robinson said:
    Is there no other method to unlock the flash?

    We need to be sure whether the Flash is locked or is the connection not being established. Can you verify the JTAG connections on your board with the F28069 controlstick schematics? You can find the same here:

    C:\ti\controlSUITE\development_kits\F28069 controlSTICK\~F28069controlSTICK_HWdevPkg\R1

    Regards,

    Gautam

  • Thanks for your quick response.

    The current JTAG connection/configuration has been in use by the development team for the past 9 months and nothing hardware-wise has changed. I have rechecked the connections and verified that was still true.

     The locking event occurred after an attempt to program flash with new boot loader/flash self programming code by one of the team members.

    Any inputs or ideas would be greatly appreciated.

    Regards,

    Doug R

  • Douglas Robinson said:
    The current JTAG connection/configuration has been in use by the development team for the past 9 months and nothing hardware-wise has changed. I have rechecked the connections and verified that was still true.

    That's great, at least we're sure there are no connection issues here.

    Douglas Robinson said:
     The locking event occurred after an attempt to program flash with new boot loader/flash self programming code by one of the team members.

    So, if you're aware of the CSM password you can unlock using the CCS Uniflash utility.

    Regards,

    Gautam

  • Gautam,

    Thanks for the suggestion. I did indeed try that and got the following message:

    Error executing Flash operation ( in a pop-up GUI)

    C28xx: Flash Programmer: Error unlocking flash memory. Device is still locked

    I am stumped at this point.

     

    regards,

    Doug R.

     

  • Douglas Robinson said:

    Error executing Flash operation ( in a pop-up GUI)

    C28xx: Flash Programmer: Error unlocking flash memory. Device is still locked

    I am stumped at this point.

    I guess the device has entered permenant lock condition. This in-turn indicates in simply replacing the part, no other choice.

    Regards,

    Gautam

  • Doug,

    Are you able to connect to the device after the device got locked?

    If your answer is yes, then it looks like you don't seem to know the correct password. In this case you can't do much but just replace a different part.

    If your answer is no, then you can try connecting to this device using the following method:-

    Use "wait in reset" feature in your emulator, In CCS5v you can activate this feature by following the below steps:-

    1) Goto target connection information and select advanced setup

    2) Select the emulator being used.

    3) In the properties section: Change EMU0 = low and EMU1 = high

    Regards,

    Manoj

  • Manoj,

    We are not using passwords yet since we are still in the software development phase. The device was locked inadvertently during re-programming of the flash which was some how interrupted prior to completion. I guess it is possible that passwords were changed from the defaults when the re-programming process went awry.

     

    I will try your solution with CCSv5 and let you know of the results.

     

    Regards,

    Doug

  • Doug,

    Yes, interrupting flash erase / program operation can cause the device to get locked. It is an unfortunate situation, but if you aren't able to unlock the device, you may have to just replace the part.

    Regards,

    Manoj