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/TMS320F28377D: Debugging Locked Device?

Part Number: TMS320F28377D
Other Parts Discussed in Thread: UNIFLASH

Tool/software: Code Composer Studio

Hi,

Is it possible to unlock a device when programming with Code Composer to debug code?

At first I tried unlocking the device with Uniflash but I think the processor resets when connecting to Code Composer and re-locks itself.

I then unlocked it with Uniflash, used Uniflash to load the .out file, and tried just Load Symbols with Code Composer but it wouldn't let me connect like that either.

The only way I have figured out to debug code is to unlock the device and change the link pointers but there's only so many times I can do that on one processor.

Let me know if you need any more information.

- Taylor

  • Hi Taylor,

    Taylor McCormack said:
    The only way I have figured out to debug code is to unlock the device and change the link pointers but there's only so many times I can do that on one processor.

    I believe this is the case though I will try to get some confirmation from the device experts.

    Thanks

    ki

  • Hi Taylor,

    You need to provide the correct password in CCS flah plug-in GUI and then it'll unlock the device after reset. You don't have to change the link pointer to unlock the device. Have you tried this already and not working?

    Regards,

    Vivek Singh

  • Hi Vivek,

    I still cannot connect to the device through Code Composer (I'm running 8.0.0.00016) to get to the Flash Programmer.

    I get the following error while launching, which is expected:

    C28xx_CPU1: Warning: Failed unlocking device (zone 1) after reset.
    C28xx_CPU1: Flash Programmer: Error erasing Sector A. FMSTAT value = 0. Operation Cancelled (0).
    C28xx_CPU1: File Loader: Memory write failed: Unknown error

    I can unlock the device through Uniflash and program a .out file, but as soon as I reset the processor or try to connect through Code Composer again it is locked.

    Maybe i'm just not doing something right or missing something completely? Can I get to the Flash Programmer to unlock it without first connecting?

  • As mentioned in my last post, have you provided the password in CCS flash GUI. See the GUI snapshot below -

    Let me know if this does not work even after this.

    Regards,

    Vivek Singh

  • I finally got it, thanks for your help.

    My issue was that I could not find a way to just connect to the CPU without trying to load the program, so the On Chip Flash option never came up for me.

    In case someone else comes across this (or I need it again for future reference) here are the steps I did:

    In the Debug Configuration for my project, go to the Target tab, Auto Run and Launch Options, and uncheck "Connect to the target on debugger startup."

    Debug the program and it will come up as the CPU being disconnected - right click it in the Debug window and click Connect.

    Go to the Tools->On Chip Flash as shown in your screenshot, fill out the password, and Unlock.

    Load the program (Under Run->Load or Load button on toolbar) and it will erase and program flash as usual and I can step through code.

    Thanks again for your help.

    - Taylor