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.

MSP430FR2672: Uniflash command line programming.

Part Number: MSP430FR2672
Other Parts Discussed in Thread: UNIFLASH, MSP430F6779A,

Hello e2e,

Here customer want to program MSP device with Uniflash command line tool, below is their script, does it reasonable in Uniflash command line syntax, any potiential risk there?

Thanks for your help on this.

Command line for MSP430:

dslite.bat --mode flash -c user_files/configs/MSP430F6779A.ccxml -b Erase -l user_files/settings/generated.ufsettings -s VerifyAfterProgramLoad="Full verification" -e -f -v "user_files/images/Aqm4-500-combined-meas.bin,0xC000"

 

Command line for MSP432:

dslite.bat --mode flash -c user_files\configs\msp432p4111.ccxml -l user_files/settings/generated.ufsettings -s MSP430DownloadOptions=" Erase main memory only" -s VerifyAfterProgramLoad="Full verification" -e -f -v "user_files/images/Aqm4-500-combined-comm-4g.bin,0x00000000"

 

  • Hello,

    First, I'm confused why you've used the MSP430FR2672 in the title when it looks like you're trying to program MSP430F6779A and MSP432P4111. Let me loop in our UniFlash team for comment on your command line arguments. They seem okay to me, but I'm not sure if "MSP430DownloadOptions" can be used for MSP432 or not. Also, I'm not sure the memory address included with the .bin file is necessary or not.

    Have you tried these commands? It may be good to check them and see if there are any errors observed.

    Regards,

    James

  • Hello,

    Given the syntax of the command, it looks like a standalone command line package was generated from uniflash and then the customer wishes to manually modify the syntax called by the package (call additional commands, etc). Is that correct? If so, how do they intend on running the command? Assuming they are running from the generated package, are they planning to run the command directly from the command-line themselves? Or by editing the command syntax passed to DSLite.exe in the dslite.bat file? It looks like they wish to call the full command from the command-line themselves then they should be calling DSLite.exe instead of dslite.bat. Please clarify.

    Thanks

    ki

  • Note that some discussion has happened off-line. For those following the thread, I will add the conversation here. Reply from Lei:

    "Yes, customer want to modify the auto generated command, and wish to call the full command from the command-line themselves.

    Because we found Uniflash cannot support Mass Erase method(-b Erase) for MSP432, so try to use the parameter: -s MSP430DownloadOptions=”???”, and it looks work fine. or Uniflash has any other parameter for MSP432?

    Thanks for your help."

    I will add my reply in the next post:

  • Because we found Uniflash cannot support Mass Erase method(-b Erase) for MSP432, so try to use the parameter: -s MSP430DownloadOptions=”???”, and it looks work fine. or Uniflash has any other parameter for MSP432?

    For MSP432, the mass erase option is -b MassErase

    The only other issues with the commands is to make sure you call DSLite.exe and use the proper format for that command. For example, on MSP430 instead of:

    dslite.bat --mode flash -c user_files/configs/MSP430F6779A.ccxml -b Erase -l user_files/settings/generated.ufsettings -s VerifyAfterProgramLoad="Full verification" -e -f -v "user_files/images/Aqm4-500-combined-meas.bin,0xC000"

    Use:

    .\ccs_base\DebugServer\bin\DSLite.exe flash -c user_files/configs/MSP430F6779A.ccxml -b Erase -l user_files/settings/generated.ufsettings -s VerifyAfterProgramLoad="Full verification" -e -f -v "user_files/images/Aqm4-500-combined-meas.bin,0xC000"

    Thanks

    ki

  • Hello Ki,

    How we can get the --list-ops working, we want to know the detail command options.

    the user guide told :

    -b [ --before ] arg                Operation(s) to perform before loading.
                                        Can be specified multiple times, and are
                                        performed in the order they appear on the
                                        command line. Get a list of operations by
                                        using --list-ops.

    We try with

    C:\ti\uniflash_5.3.0\deskdb\content\TICloudAgent\win\ccs_base\DebugServer\bin>DSLite.exe --list-ops

    C:\ti\uniflash_5.3.0\deskdb\content\TICloudAgent\win\ccs_base\DebugServer\bin>DSLite.exe -b --list-ops

    C:\ti\uniflash_5.3.0\deskdb\content\TICloudAgent\win\ccs_base\DebugServer\bin>DSLite.exe -b--list-ops

    all of these are failed, thanks for your help.

    LEI

  • Hi Lei,

    The syntax used when calling dslite is not correct.

    In the quick start guide, the command is specified as:

     dslite flash --config=ccxml-file [options] [flash-file1 ...]

    You still need to specify the operation and target configuration. For example:

**Attention** This is a public forum