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.

F28M35H52C: Uniflash command line to Program All Zone 1 settings.

Part Number: F28M35H52C
Other Parts Discussed in Thread: UNIFLASH

Tool/software:

Hello,

Could you please guide me on how to program Zone 1 settings using the dslite command line?

It works perfectly when I manually click the button in the Uniflash GUI, but it doesn't seem to apply when I use the command line.

GUI version : 8.7.0
DsLite version :  12.7.0.3382

I have created a `generated.ufsettings` file in which I selected the option to erase the entire flash. I am using this file, along with the `.ccxml`, as parameters in the DSLite command.

Here is my DSLite command line:


dslite --mode flash -c user_files/configs/f28m35h52c1.ccxml -s FlashM3Z1CSMKEY0=abcd1234 -b Z1PasswordProgram -l user_files/settings/generated.ufsettings -s VerifyAfterProgramLoad="No verification" -e -f -v "user_files/images/Image.out"


 
Here is the command line output


DSLite version 12.7.0.3382
Configuring Debugger (may take a few minutes on first launch)...
Initializing Register Database...
Initializing: IcePick_C_0
Executing Startup Scripts: IcePick_C_0
Initializing: CS_DAP_0
Executing Startup Scripts: CS_DAP_0
Initializing: Cortex_M3_0
Executing Startup Scripts: Cortex_M3_0
Cortex_M3_0: GEL Output: Memory Map Initialization Complete
Initializing: C28xx_0
Executing Startup Scripts: C28xx_0
Connecting...
Cortex_M3_0: GEL Output: Watchdog Timers Enabled
Cortex_M3_0: GEL Output: UARTs Enabled
info: Cortex_M3_0: Performing Security Operation...
info: Cortex_M3_0: Operation completed successfully.
Loading Program: user_files/images/Image.out
Preparing ...
.text: 0 of 42824 at 0x200030
Erasing Flash
Erasing Bank 0, Sector N
Erasing Bank 0, Sector M: 6%
Erasing Bank 0, Sector L: 13%
Erasing Bank 0, Sector K: 20%
Erasing Bank 0, Sector J: 26%
Erasing Bank 0, Sector I: 33%
Erasing Bank 0, Sector H: 40%
Erasing Bank 0, Sector G: 46%
Erasing Bank 0, Sector F: 53%
Erasing Bank 0, Sector E: 60%
Erasing Bank 0, Sector D: 66%
Erasing Bank 0, Sector C: 73%
Erasing Bank 0, Sector B: 80%
Erasing Bank 0, Sector A: 86%
.text: 32752 of 42824 at 0x200030: 57%
.text: 0 of 4896 at 0x20a778: 74%
.data: 0 of 8856 at 0x20ba98: 83%
.text: 0 of 60 at 0x20dd30: 98%
.data: 0 of 528 at 0x20dd70: 99%
Finished: 99%
Setting PC to entry point.: 99%
Verifying Program: user_files/images/Image.out
Preparing ...
.text: 0 of 42824 at 0x200030
.text: 32752 of 42824 at 0x200030: 57%
.data: 0 of 8856 at 0x20ba98: 74%
.text: 0 of 60 at 0x20dd30: 90%
.data: 0 of 528 at 0x20dd70: 90%
Finished: 90%
info: Cortex_M3_0: Program verification successful for user_files/images/Image.out
Success

Thank you,
Satish

  • Hi Satish,

    To Program Zone 1 settings using the command line tool for UniFlash, you can enter passwords for the CSM Keys within the UniFlash GUI and then generate the standalone package for the .out file you wish to send. 

    The entered CSM Keys values should be saved in the generated.ufsettings file within the package. Once confirmed, you can then enter something similar to the below command:

    dslite --mode flash -c user_files/configs/f28m35h52c1.ccxml -b Z1CSMProgram -l user_files/settings/generated.ufsettings -s VerifyAfterProgramLoad="No verification" -e -f -v "user_files/images/Image.out"

    Note, that for all DPActiveDebugSession performOperation actions, there exists an action name within the FlashProperties XML file. For programming Z1 CSM Passwords, this action is called Z1CSMProgram. For this device, it may be using F28M35_512KB_FlashProperties.xml for its flash properties reference in GUI.

    Location for FlashProperties XML file: 

    uniflash_8.7.0\deskdb\content\TICloudAgent\win\ccs_base\DebugServer\propertyDB

    The -s argument for settings is relative to UniFlash settings such as verify after a program load.

    Thanks and regards,

    Charles

  • Hello Charles,

    Thank you for your response. Your suggestion to refer to the `F28M35_512KB_FlashProperties.xml` was incredibly helpful. I modified my command to include the option `-a Z1ProgramAll`, and it worked perfectly.

    dslite --mode flash -c user_files/configs/f28m35h52c1.ccxml -a Z1ProgramAll -l user_files/settings/generated.ufsettings -s VerifyAfterProgramLoad="No verification" -e -f -v "user_files/images/Image.out"

    Thanks and regards,
    Satish