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.

TMS320F28054F-Q1: How to set up JTAG password

Part Number: TMS320F28054F-Q1
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE

hi Experts,

My customer wants to strengthen security by setting up password in JTAG. 

I knew that The TMS320F2805x device supports high levels of security with a dual-zone (Z1/Z2) feature to protect user's firmware from being reverse-engineered.

Please let me know how I can set up JTAG password when they has been used the Z1 of TMS320F28054F-Q1 as a secure area. 

thanks

  • Hi Robin,

    F2805x does not have DCSM but it has a CSM module. Are you talking about a different device? I don't believe F2805 has a JTAGLOCK feature at all.

    Thank you,

    Luke

  • Hi luke,

    I am asking about TMS320F28054F-Q1.
    TMS320F28054F-Q1 is an InstaSPIN-FOC-enabled MCU that allocates and secured this application to zone1.
    We want to give Password to JTAG, but Zone1 is secured by instaSPIN-FOC, so it seems like Password isn't set up.

    Please describe in detail how to set up JTAG Password on TMS320F28054F-Q1.

    Thank you

  • Hi Robin,

    My apologies, there is infact a DCSM module on F2805x. From consulting the TRM you can see the memory address for the OTPSECLOCK register is at 0x3D7A02.

    You should program the lower 4 bits of this register to 0s using the flash API to enable JTAGLOCK.

    Let me know if you have any additional questions.

    Thank you,

    Luke

  • Hi

    The device I inquired about is F28054F. This is Zone1 secured by instaspin-FOC.
    At this time, JTAGLOCK is not activated.
    Please find out how I can activate JTAGLOCK on F28054F.

    thanks

  • Hi Robin,

    On newer devices this is typically done using SysConfig. I recommend following the below process to try to port this to F28054F which does not have SysConfig support:

    1. go to dev.ti.com -> select Tools -> SysConfig
    2. Select C2000Ware as the software product and select any F280013 device
    3. launch the GUI and select DCSM on the left toolbar to add a DCSM module
    4. open the generated files view on the right
    5. download dcsm.asm and dcsm.cmd to your computer
    6. Remove all of the content from dcsm.asm and dcsm.cmd and only include your desired values for the LINKPOINTER and OTPSECLOCK. Refer to the technical reference manual for F2805 to understand valid values for the linkpointer
    7. add dcsm.asm and dcsm.cmd to your F2805 project
    8. Build the project. When loading the resulting binary file to your device over JTAG this should activate JTAGLOCK. I would recommend disabling the "verify" option in the CCS On-Chip flash tool before programming since programming JTAGLOCK and then performing a verify may immediately disconnect the JTAG and leave you with a bricked device

    Note that JTAGLOCK is permanent. If you want the verify option enabled I would recommend programming two separate binaries, one will  contain your original application and the other will only contain the JTAGLOCK setting.

    Thank you,

    Luke