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

TMS320F28P550SJ: DCSM ALLZERO bit set on processor that has never been programmed

Part Number: TMS320F28P550SJ

Hello,

My team and I are developing a new product that uses the TMS320F28P550SJ and are having intermittent problems with this processor. 

Occasionally, when we try to connect the JTAG debugger to a brand new, unflashed processor, the processor comes up in a locked state and can't be programmed. We are able to connect the debugger in Code Composer Studio and view hardware registers, and doing this shows the ALLZERO bit in both DCSM Z1 and Z2 control registers is set. 

Different processors of this family have one of three different behaviors:
1. Processors that behave as expected and have never had the ALLZERO bit set
2. Processors that sometimes behave as expected and sometimes have the ALLZERO bit set. This behavior can change after a CPU reset / power cycle.
3. Processors that, as far as we have tried, always have the ALLZERO bit set

For processors in group 2, a CPU reset through Code Composer Studio when the debugger is connected / power cycling the board can sometimes clear the ALLZERO bit. In those cases, we are able to JTAG flash the processor just fine; however, further power cycles / CPU resets may cause the processor to lock itself again with the ALLZERO bit being set. 

This is happening on processors that have never been flashed or programmed before. We tried using both the default f28p55x gel file and a gel file that does not try any DCSM unlocks. The gel files seemingly had no effect on the boards.

Attached is the GEL file output when connecting the debugger and performing a power cycle. You can see that connecting the debug probe to the target processor in CCS unlocks the processor, and then the processor comes up in a locked state after a power cycle

gel_file_output_2.png

  • Hi Ryan,

    ALLZERO = 1 is the hardware reset default, not a programmed state. Bit 19 of Z1_CR has a documented reset value of 1h, meaning "CSM Passwords are all zero and device is permanently locked" is the state loaded at every reset before the OTP content is confirmed 1; Z2_CR is identical 2. The bit only clears once the DCSM performs its "dummy read" of the CSM password locations in OTP and finds them non-zero — status reported by the ARMED bit (bit 22). If ARMED = 0, the CR register is still showing raw reset defaults, including ALLZERO = 1 1.

    Critically, your parts are not actually all-zero in OTP. TI pre-programs a few bits of CSMPSWD1 on every unprogrammed device 3, and Table 5-3 lists the factory-default OTP values for all Zone 1/Zone 2 password and control locations 4. So ALLZERO = 1 on untouched silicon indicates the OTP security read did not complete or did not latch correctly during boot — not a genuine all-zero password.

    Contributing factor: the zone-select-block location is resolved from link-pointer OTP bits that are not ECC-protected and are decoded by a 3-way bitwise vote specifically to tolerate bit disturbances; if the vote matches no valid entry, the logic falls back to Zone-Select-Block1 5. A noisy read can therefore resolve to an unexpected zone configuration.

    Why your three behavior groups exist, and why reset toggles the state

    ALLZERO, ALLONE, UNSECURE, and ARMED are all specified with Reset type: SYSRSn 1 — they are recomputed from OTP on every system reset, not only at cold power-up. After any reset the C28x starts from the boot ROM vector and the DCSM zone state is re-latched there; XRS, POR, BOR, WDRS, NMIWDRS, SYSRS, SIMRESET, and SCCRESET all route through this same path 6. This is exactly why the state is not sticky per-die:

    Group Interpretation
    1 — always normal OTP read always completes within margin on that board/die
    2 — intermittent Marginal read; each reset re-rolls the dice, so a CPU reset or power cycle can flip it either way
    3 — "always locked" Worst-margin units; still the same mechanism, not necessarily permanent damage

    Your uploaded CCS log is a textbook illustration of this: on first connect the GEL reports Zone 1 and Zone 2 passwords not programmed and both zones unlocked; after the IcePick_C_0: Power Failure on Target CPU event and re-initialization, the same unflashed part reports "Warning: DCSM Zone 1 remains locked" / "Zone 2 remains locked" with passwords still not programmed. The lock state flipped from the reset/power event itself, with no programming action involved.

    The read happens in a narrow, timing-sensitive window: the device drives XRSn low ~100 µs typ after supplies stabilize (tw(RSL1)), boot-mode pins must be held ≥1.5 ms, and boot ROM reaches first flash fetch in up to 1.2 ms 7. Marginal ramp, brownout dips, or reset-pin bounce inside that window is the mechanism consistent with the observed symptom 8.

    Recommended actions

    1. Check the known F28P55x BOR/XRSn erratum first — it matches your symptom profile. There is a documented advisory: "BOR: VDDIO Between 2.45 V and 3.0 V can Result in Multiple XRSn Pulses." In that VDDIO window the internal BOR generates repeating XRSn assert/deassert pulses. TI's workaround:
    - Follow the SRSUPPLY ramp-rate requirement in the data sheet recommended operating conditions to avoid the pulses during normal power-up.
    - On power-down, design VDDIO to fall from 3.0 V to 2.45 V within 25 µs, or size the XRSn RC so the voltage does not rise above a system-defined threshold.
    - Do not use XRSn to reset other board devices; use an external voltage supervisor 9.

    2. Verify the XRSn network against TI's reference circuit. 2.2 kΩ–10 kΩ pull-up to VDDIO and a filter capacitor ≤100 nF to VSS (Figure 6-6); deviation causes improper reset timing 10. Confirm warm-reset minimum low pulse tw(RSL2) ≥ 3.2 µs and boot-mode hold ≥ 1.5 ms are met on your board 7.

    3. Confirm VDDIO never sags into BOR territory. BOR monitors VDDIO and forces XRSn low until the supply returns to minimum operational voltage, resetting the device identically to a POR 11. Size the rail using the documented in-reset current (IDD ≈5–15 mA, IDDIO ≈5 mA over 30–125 °C) so it cannot dip at power-up 12. If you are powering from a USB programmer or bench supply during flashing, ensure it meets full rated current with margin — brownout during flash/OTP operations can corrupt data and permanently lock the device 12.

    4. Instrument the diagnosis. On a group-2 part, read Z1_CR/Z2_CR immediately after a failed boot and record the ARMED bit alongside ALLZERO. ARMED = 0 with ALLZERO = 1 confirms the OTP dummy read never completed (reset-path/timing issue) rather than an actual OTP content problem 1. Capture VDDIO and XRSn on a scope across the same power cycle to correlate with the multiple-pulse erratum.

    5. Rule out the unrelated flash-corruption lock on group-3 parts. A distinct F28P550SJ "locked/unresponsive" mode comes from a failed flash programming verify; recovery is to set boot switches to Wait Boot, launch CCS without loading code, right-click-connect to the CPU core, then use the On-Chip Flash tool to Erase Entire Flash / All Sectors before reflashing 13. This will not fix a DCSM read-margin issue, but it cleanly separates the two failure modes on your "always locked" units.


    1. TMS320F28P55x Technical Reference Manual (SPRUJ53D) — Z1_CR, p.696
    2. TMS320F28P55x TRM — Z2_CR, p.742
    3. TMS320F28P55x TRM — CSM password defaults, p.663
    4. TMS320F28P55x TRM — Table 5-3 OTP defaults / all-zero lock, p.664
    5. TMS320F28P55x TRM — Link pointer voting, p.667
    6. TMS320F28P55x TRM — Reset sources / boot path, p.101
    7. TMS320F28P550SJ Data Sheet (SPRSP85D) — Reset timing, p.95
    8. C28x Academy — C2000 DCSM
    9. F28P55x Silicon Errata (SPRZ572B) — BOR/XRSn pulses, p.12
    10. TMS320F28P550SJ Data Sheet — XRSn reset circuit, p.94
    11. TMS320F28P55x TRM — Brown-out reset, p.102
    12. TMS320F28P550SJ Data Sheet — Brownout during programming / reset currents, p.77
    13. E2E FAQ — TMS320F28P550SJ device completely locked after flash programming error
    14. C28x Academy — DCSM documentation set

    Best Regards,

    Zackary Fleenor