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-Q1: Use Uniflash CLI to program F28004x DCSM

Part Number: TMS320F280049-Q1
Other Parts Discussed in Thread: UNIFLASH

Dear Champs,

I am asking this for our customer.

The user used Uniflash CLI to program F28035 CSM before in the production line like below.

Now, the user finds it seems the newer Uniflash CLI with CSM setting can only unlock F280049 CSM, but it cannot be generated to program CSM onto F28004x.

1. Can Uniflash CLI (the generated CLI) be used to program DCSM on F28004x? If yes, would you please show us?

2. If user needs to write own CLI, do we have detail command instruction/manual besides this quick start?

https://software-dl.ti.com/ccs/esd/uniflash/docs/v5_0/quick_start_guide/uniflash_quick_start_guide.html

The user wonders how to write commands to program DCSM like below.

Can we show an example to them or show them the detail command instructions?

  • Hi Wayne,

    Our SME will get back to you by 12/28/22. Due to the holidays expect a delay in responses. 

    Best regards,

    Ryan Ma

  • Dear Champs,

    This is a reminder. Please update when you are back to the office.

    Wayne

  • Hi Wayne,

    Thank you for the reminder, please expect latest response by 1st or 2nd week of January. Sincere apology for inconvenience.

    Best,

    Ryan Ma

  • Hi Wayne,

    Our UniFlash CLI expert will get back to you next week.

    Thanks and regards,

    Vamsi

  • Hello,

    Can we show an example to them or show them the detail command instructions?

    First you need to get the ID for the desired setting. For example, if you hover over a field, there should be a tooltip popup with the ID:

    The ID for Z1OTP-CSMPSWD0 is: Z1B0CSMPSWD0

    Next, run dslite and use the -p option to get all available operations for the device:

    "Z1PasswordProgram" is the option to program the Z1 password.

    So I can run something like:

    > dslite.bat -c 280049c_lp.ccxml -s Z1B0CSMPSWD0=0xFFFFFFFF -b Z1PasswordProgram

    That would set the Z1OTP-CSMPSWD0 field to 0xFFFFFFFF and the program it

    Note that you can also set the security values in the GUI and then download just the settings file using the ‘Download’ button in the ‘Standalone Command Line’ tab. They can then load the settings file using the -l argument in CLI instead of using -s to specify each security setting.

    Hope this helps

    ki

  • Dear Ki,

    The user has tried the two methods using -s and using -l you suggested above, but neither works.

    Would you please help us clarify if there was anything wrong in our testing or suggest new methods?

    1. By using -s

    2. by using -l

    The file "ufsetting"

  • Would you please help us clarify if there was anything wrong in our testing or suggest new methods?

    I don't see " -b Z1PasswordProgram" being used in any of the screenshots (unless I missed it).

  • Dear Ki,

    We are still confused about -b usage.

    If we only use -b Z1PasswordProgram like below for passwords, it works.

    But we should not only program passwords but also GRABSECT/GRABRAM.

    Therefore, if we use -b like this, it still fails.

    Would you please show us where it is wrong?

    Wayne

  • I see. There is some other error. I will bring this to the device experts for more comment.

    Thanks

    ki

  • Hi Wayne,

    Our security expert will review and get back to you in a day or two.

    Thanks and regards,

    Vamsi

  • Hi Wayne,

    Since you have changed the password from its default value, the device will automatically become locked on reset. You must unlock the device before programming any security settings such as your passwords or GRABRAM/GRABSECT. If you are attempting to program any settings that have already been programmed, you must also update your linkpointer to program your security settings in a new zone select block. Could you unlock your device in the settings and utilities menu in the UniFlash GUI and send a screenshot of your security settings in the memory browser? These should start at address 0x78000. This will make it easier to determine what values you have updated and whether you need to update your linkpointer.

    Thank you,

    Luke

  • Dear Luke,

    The user was aware of what you said in the above testing.

    The user told me that he changed to a new device to program again and checked 0x78000 were default values rather than used a programmed device for testing to avoid the situation you said, so he did not think this was the root cause.

    Dear Ki,

    Now, he just found that by changing the command order, it could work correctly.

    So it means the order of commands matters in this case.

    Do you have any comment on this?

  • Hi Wayne,

    I don't have enough experience with the UniFlash CLI tool to answer your second question. Ki, are you aware of whether the order of the commands matter.

    Let us know if the customer has any other questions related to DCSM and I will be able to assist.

    --Luke