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.

TMS320F280049: DCSM and flash programming

Part Number: TMS320F280049

Hi champs,

My F280049C is not password locked, I try to download .out into launchpad with Z1-CSMPSWD0 '12345678', CCS will shows me below warning message and fail to erase flash memory.

C28xx_CPU1: Warning: Failed unlocking device (zone 1) after reset.

I try to do the same thing with F280025C launchpad, CCS shows me same warning message and then erase/program flash memory without problems.

What's the reason makes the above difference between F28004x and F28002x devices please?

Regards,

Luke

  • Is this device secure? If yes then which zone is secure? There are two secure zone and user can choose to secure one of them or both.

    You can check the same by viewing the memory content @address 0x78020 to 0x78030 (zone1) and 0x78220 to 0x78230 (zone2) . If all the values are 0xFFFF_FFFF then zone is unsecure else it's secure.

    If you are having trouble with connecting to CCS then please check the BOOTMODE pin setting. Use "Wait Boot" setting (GPIO72 = 1 & GPIO84 = 0) to boot-up the device and that should enable connection to CCS. Then you could check the memory content.

    If the flash sector you are trying to program is part of secure Zone then you need to unlock the zone by using correct security passwords and then only program/erase operation can be done.

    Regards

    Manoj

  • What's the reason makes the above difference between F28004x and F28002x devices please?

    We need to understand how the handling differs in the flash plugin implementation for these two devices. I will have to defer this question to our flash expert.

    Regards

    Manoj

  • Manoj,

    Both F280049C and F280025C devices are unsecure(no passwords programmed).

    If I set password in the projects in CCS, F280049C will shows me below message and fails to program flash, but F280025C shows same message and then program flash memory without problems.

    C28xx_CPU1: Warning: Failed unlocking device (zone 1) after reset.

    I would like to know the reason makes this difference.

    Thanks and regards,

    Luke

  • Luke,

    In the later devices (F280025x in this case), if the erase/program operation that you target on the device does not belong to the zone that is locked, I think we decided to continue with the flash operation as it is not targeted towards the locked zone.

    Can you check if this is the case in your scenario?

    Thanks and regards,

    Vamsi

  • Vamsi,

    Are you saying that the different behavior of flash operation between these two devices is due to CCS software, nothing about devices?

    Regards,

    Luke

  • Luke,

    I need to check and confirm that. 

    Meanwhile, can you tell me what is the error you got for erase failure on F28004x?

    Thanks and regards,
    Vamsi

  • Vamsi,

    Please refer to below screenshot, you should be able to reproduce this problem by using F280049C LaunchPad, thanks.

    Regards,

    Luke

  • Luke,

    As per the above error message, program operation failed - And it seems to me that the device is locked and hence the program operation did not succeed. 

    Can you share the DCSM OTP space configuration (you can share the snapshots of the memory window)?   Our security expert can check the snapshots that you provide and help you debug further.

    Thanks and regards,
    Vamsi

  • Vamsi,

    The F280049C is unsecure, please refer to below snapshots,

    If I set Z1OTP-CSMPSWD0 to 0x12345678, then CCS will fail to erase flash memory of F280049C. However, CCS can erase and program flash memory of F280025C without problems when I do same experiment.

    I would like to know the reason why the flash operations are different between these two devices.

    Thanks and regards,

    Luke

  • Luke,

    I asked our DCSM expert to review this post for you.

    Thanks and regards,

    Vamsi

  • Luke,

    You need to follow correct procedure to be able to program the flash and correct procedure is to provide valid password in password fields in GUI. In this case you are providing in-correct password in GUI hence you see a failure. I also see here "--" value in CSMPSWD1 field which is also not correct. We do enhancement to our security scheme and also to tool on new devices and there may be some differences in behavior on different device. Please follow correct procedure by providing correct password value and is you still have issue, we'll look into it.

    Regards,

    Vivek Singh