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.

CCS/F28M35H52C: How to flash and readback a binary block using UniFlash (v4.5) without erasing all sectors?

Part Number: F28M35H52C
Other Parts Discussed in Thread: UNIFLASH

Tool/software: Code Composer Studio

Hi, 

What command line we can use to flash a small  binary block using  UniFlash  (v4.5) without erasing all sectors (to preserve the firmware already there) ?

We could read back a binary block with

C:\ti\uniflash_4.5.0\dslite --mode memory -c F28M35H52C1.ccxml -n 0  --range=0x27c000,80  --output=record.bin  -e

We tried this, which also worked, but also erase all the sectors....

C:\ti\uniflash_4.5.0\dslite --mode load -c F28M35H52C1.ccxml  -n 0  -f  record.bin,0x27c000

Thanks,

Tim

  • Tim,

    The easiest way to do this is to start up the UniFlash GUI, configure for your device, and then go to the 'Settings & Utilities' tab for the core you are using.

    In there, go to the 'Erase Settings' section, and then choose 'Necessary Sectors Only (for Program Load)' or 'Selected Sectors Only' and manually select the sections you want to erase during the program load operation.

    After you are done modifying the settings, go to the 'Standalone Command Line' tab, and click on the 'Download' button in the 'Settings' line. This will allow you to generate the .ufsettings file for the settings you just modified.

    Then you can load this settings file in CLI using the "-l [ --load-settings ]" option.

    Please let me know if you have any questions with this suggestion.

    Thanks
    Ricky
  • It worked!

    Thanks, Ricky

    Tim