Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

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.

TMS320F28P559SJ-Q1: DCSM module configuration

Part Number: TMS320F28P559SJ-Q1

Hello,

I ran into an issue while attempting to configure password protection for both Flash memory and the JTAG lock. After enabling the Flash password, I tried configuring the JTAG lock with passoword, but the microcontroller now appears to be bricked.

Could you provide the correct step-by-step procedure to simultaneously set up Flash protection and the JTAG lock without bricking the device? Securing Flash by itself works fine, and i do not have any problem with this step.

Thanks in advance,

Jakub

  • Hi Jakub,

    Your device is likely not permanently bricked — this is a known issue with the JTAG unlock procedure on F28P55x devices, particularly related to CCS version bugs and incorrect configuration file setup.

    When you enabled JTAGLOCK, CCS lost the ability to connect via JTAG because the target configuration file lacks the required authentication properties to supply the JTAG password during connection. This is a CCS configuration issue, not necessarily a permanently locked device 1.

    Critical known bug: CCS 12.8.1 has a confirmed defect that prevents proper JTAGLOCK writes and unlocking — it may report success but fail silently 1.


    Correct Procedure (on a new device)

    Use CCS 20.3.1 2.

    Step 1: Program Flash CSM Passwords

    Program your 128-bit Zone password (Zx_CSMPSWD0–3) into the appropriate OTP Zone Select Block as you normally do. This step you've confirmed works fine.

    Step 2: Program JTAG Passwords into OTP

    Using the CCS On-Chip Flash tool, program the 128-bit JTAG password into the OTP registers:

    • Z1OTP_JTAGPSWDL0, Z1OTP_JTAGPSWDL1 (in the ZSB)
    • Z1OTP_JTAGPSWDH0, Z1OTP_JTAGPSWDH1 (permanent password at offsets 14h/16h) 3

    Do this BEFORE enabling JTAGLOCK.

    Step 3: Enable JTAGLOCK

    Write 0xFFFF000F to the JTAGLOCK register at address 0x78006 using the On-Chip Flash tool with the verify option disabled 1. Disabling verify is critical — the verify step triggers a reset that locks you out mid-operation 4.

    Step 4: Prepare CCS for JTAG Unlock

    Modify the device XML (f28p550sj9.xml or f28p559sj9-q1.xml) to add:

    <property Type="stringfield" Value="AJSM" id="Authentication Scheme"/>
    <property Type="stringfield" Value="JLM" id="Authentication TAP Name"/>

    Modify the .ccxml target configuration:

    • Remove the <property ... id="Port Number"/> line
    • Add JTAG password entries in correct bit order: 0–31, 32–63, 64–95, 96–127 1

    If you know the JTAG password you programmed, you can unlock the current device by:

    1. Using CCS 20.3.1 and copying the updated f28p559sj9-q1.xml from that installation into your CCS 12.8.1 device database 2, OR
    2. Using the XML and ccxml modifications described above

    If the JTAG passwords were never properly programmed before JTAGLOCK was enabled, the device may be permanently locked.


    1. E2E: Cannot unlock JTAG after JTAG lock is set - F28P559SJ-Q1
    2. E2E: P559SJ9 JTAGLOCK
    3. TMS320F28P55x TRM - DCSM OTP Registers
    4. E2E: Issue when using UniFlash to load DCSM demo

    Best Regards,

    Zackary Fleenor