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.

TMS320F2800137: DCSM

Part Number: TMS320F2800137
Other Parts Discussed in Thread: UNIFLASH

Tool/software:

Hi expert:

when i used syscfg tools,how to changed the csm_otp_z1_linkpointer ?as follow:

 .sect "dcsm_otp_z1_linkpointer"
.retain
.long 0x00003FFF
.long 0x00003FFF
.long 0x00003FFF

I want to changed the linkpointer value ,whih place can set in syscfg tool?

sect "dcsm_otp_z1_linkpointer"
.retain
.long 0x00003FFE
.long 0x00003FFE
.long 0x00003FFE

thanks.

  • ok,i find the setting.

    but i have some quetions.

    I do not enable PSWDLOCK,when i used jtag ,some error as follows,which the reaon

    C28xx_CPU1: Warning: Failed unlocking device (zone 1) after reset.
    C28xx_CPU1: Error during Flash Programming. Address 0x00078000, FMSTAT (STATCMD on some devices) 0x00000041
    C28xx_CPU1: File Loader: Memory write failed: Unknown error
    C28xx_CPU1: GEL: File: D:\tidm_02010_dmpfc_0013x\HVAC_REV3P2_3SC_LIB\tidm_02010_dmpfc_0013x_pmsm.out: Load failed.

  • Hi Youjun,

    Could you share your dcsm.asm file?

    Thank you,

    Luke

  • Zone2 not used.

    thanks

  • Hi Youjun,

    Here's what I think is happening.

    • You've programmed custom passwords in the first zone-select block
    • Currently the linkpointers are set to their default value (0x3FFF)
    • In the On-Chip flash tool or uniflash, you've enabled the "Reset target before flash programming operations" option. This will reset the device before you attempt to program the OTP. If a device reset occurs and the passwords in the active zone-select block have been modified, the DCSM zone will become locked and the OTP will be secured (with the exception of the CSM passwords), which will block any program or erase operations.

    Can you try disabling the "reset target before flash programming operations" option and unlock the DCSM zone before programming and try again?

    Thank you,

    Luke

  • Can you try disabling the "reset target before flash programming operations" option and unlock the DCSM zone before programming and try again?

    how to disabe the option?

  • Hi Youjun,

    This is a checkbox in the CCS On-Chip flash tool and/or Uniflash that is checked by default. Are you using Uniflash or the CCS On-Chip flash tool or Uniflash?

    Thank you,

    Luke

  • Hi Luke:

        I have a question.

    I have a empty MCU,download the hex(have dcsm start setting) file by uniflash,when power on ,after the mcu reset,at the beginning of main(),read the 128-bits of the CSM password.

    the password is default value or setting value?what is timing of  the dcsm working?

  • Hi Youjun,

    I'm not sure whether OTP settings can be programmed via a hex file. Can you check the  memory browser at address 0x78040 after programming?

    What do you mean by "what is the timing of the dcsm working?"

    Thank you,

    Luke

  • I'm not sure whether OTP settings can be programmed via a hex file

    Q:when build the project,output a .out or hex file,i used the uniflash,download to a empty mcu.

    What do you mean by "what is the timing of the dcsm working?"

    Q:1) when download to a empty mcu.after the mcu reset,in init function ,i read the 128-bits of the CSM password.the password is default value or setting value?

  • Hi Youjun,

    If you've programmed a .out or .hex that includes your OTP settings / CSM passwords, you should see your custom/setting value in the memory browser.

    Thank you,

    Luke