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.

Debug F280049C with password

Genius 5910 points
Other Parts Discussed in Thread: UNIFLASH

Hi,

I can't debug my program in CCS with password protection.

I enable bootwait with the dipswitch and place correct password in here:

But I got error messages that CCS can't unlock the device when I start the debugger.  How do I solve this?

Thanks!

 EVS

  • Hi,

    As discussed in the other post, I requested our security expert to help you on this.

    Thanks and regards,
    Vamsi

  • Hi,

    I can not see the values you have programmed for the security setting. Can you please post the values in each fields.

    Regards,

    Vivek Singh

  • When I use uniflash.

     Everything is default. Set password. select file. load image. ready

    In CCS:

    Everything is default: like -- in the input fields. Set password in Z1OTP-CSMDSWDx. start debug:

    This is the message i got with debug output:

    C28xx_CPU1: GEL Output:
    Memory Map Initialization Complete
    C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
    C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
    C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
    C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
    C28xx_CPU1: Writing Flash @ Address 0x00089e7c of Length 0x00000216 (page 0)
    C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
    C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
    C28xx_CPU1: Warning: Failed unlocking device (zone 1) after reset.
    C28xx_CPU1: PLL configuration status = 1. PLL configured successfully.
    C28xx_CPU1: Erasing Flash Bank 0, Sector 0
    C28xx_CPU1: Flash Programmer: Error erasing Sector 0. FMSTAT value = 1040. Operation Cancelled (0).
    C28xx_CPU1: File Loader: Memory write failed: Unknown error

    So do I set something else for this to work?

  • Hi,

    Everything is default: like -- in the input fields.

    That should not be the case. Can you double check that you are using correct device name in your target configuration file. If It is working in Uniflash but not in CCS then it is not device setup issue but something with CCS and it's setup.

    Regards,

    Vivek Singh

  • I got 2 boards one protected and the other one not.  If I remove the password in CCS and use the other board it works  fine .

    Only when I try to get the protected one working I have problems. So what is the procedure for getting to debug a board that has a password in CCS?

    Thanks.

  • Hi,

    Following are the steps.

    1. Change the BOOTMODE pin setting to "Wait Boot"
    2. power cycle the board
    3. Connect to CCS
    4. Open Flash plug-in GUI
    5. Enter Correct password for Zone1 and Zone2 and unlock the zone.
    6. Now debug the device.

    Any time you apply reset, device will be locked again hence you need to unlock again.

    Regards,

    Vivek Singh

  • Thanks Vivek,

    I think the problem is in point 4. I don't know what that is. Can you please explain/show where I can find it in ccs.

    Thanks.

  • Hi,

    That is below step -

    Everything is default: like -- in the input fields. Set password in Z1OTP-CSMDSWDx. start debug:

    Regards,

    Vivek Singh

  • CCS Debug view -> Tools menu -> On-Chip Flash.

    Regards,

    Vamsi

  • So this is the suggested Flash plug-in GUI?

     point 5 where can I press unlock?

    Thanks.

  • In CCS menu bar (at top) can you click on Tools and under that you'll see Flash GUI. Click on that and use that.

    Vivek Singh

  • I the on-chip flash option is only available when I am debugging. But the debug section in ended because the device can't be unlocked.

  • Have you taken care of step #1 and 2 ?

  • Yes, I can program it with no problem with uniflash.

  • You have to use the Wait BOOT with CCS to debug it. Look like that is not the case. Please change the boot mode pin setting to "Wait Boot" and then try.

  • - Reinstalled CCS 9.3

    - Switched GPIO 24 on LaunchxL-280049C to on. 

    - connect USB

    - Debug configuration -> flash settings -> CSMSWD set pasword

    - start debug

    message:

    C28xx_CPU1: GEL Output:
    Memory Map Initialization Complete
    C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
    C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
    C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
    C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
    C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
    C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
    C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
    C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
    C28xx_CPU1: Warning: Failed unlocking device (zone 1) after reset.
    C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
    C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
    C28xx_CPU1: Error during Flash Programming. Address 0x0008BC1C, Data 0x0000E000, FMSTAT 0x00001010
    C28xx_CPU1: File Loader: Memory write failed: Unknown error
    C28xx_CPU1: GEL: File:  Load failed.
    C28xx_CPU1: Error during Flash Programming. Address 0x0008BE30, Data 0x0000E000, FMSTAT 0x00001010
    C28xx_CPU1: Please make sure the memory location you are programming have not already been programmed

    So can you check yourself that this really works on CCS.

  • As discussed on other post, using CCS9.2 should have fixed this issue. We can close this post and continue to look into issue related to PSWDLOCK on other post.

    Regards,

    Vivek Singh

  • Is there anyone successful with debugging with a locked device in CCS 9.2?

    Because I start to doubt in that this works in the first place. also when the password is updated for a new one.

  • Yes, there is no issue with debug of the code with CCS. Issue was only with programming part.

    Regards,

    Vivek Singh

  • Please provide me information how to reproduce this result. Because I can't.

  • Hi,

    I assume this issue was related to same one which we were discussing on other forum. If yes, then we can close this post.

    Regards,

    Vivek Singh

  • I'm not so sure that those problem are related, I like to see for myself first.  And I still haven't seen any suggestions how and when there are will be resolved.  So don't close the issue!

  • Just following up based on the activity in the other thread that Vivek mentioned.  Based on what I know this should be resolved with the updated CCS patch that was linked in the other thread.  Let us know if this is not the case and we can better understand what this issue's root cause is.

    Best,

    Matthew

  • MatthewPate said:

    Just following up based on the activity in the other thread that Vivek mentioned.  Based on what I know this should be resolved with the updated CCS patch that was linked in the other thread.  Let us know if this is not the case and we can better understand what this issue's root cause is.

    Best,

    Matthew

    First I have to wait to the end of April for I can continue.

  • Hi,

    You should be able to download new update for CCS9.3 and that should fix this issue. You don't have to wait till end of April for that.

    Regards,

    Vivek Singh