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/CC3200MOD: UNIFLASH 3.4 CLI fails ugly

Part Number: CC3200MOD
Other Parts Discussed in Thread: UNIFLASH, CC3200, CC3100

Tool/software: Code Composer Studio

We are working out our EOL process using Uniflash and it doesn't seem to work so well.  I'm using a variant of the example in the CC3200 Production Line Guide:

C:)cd
C:\ti\uniflash_3.4\ccs_base\scripting\examples\uniflash\cmdLine

C:)uniflash -config "C:\Users\ANONYMOUS\tidla_sn04.usf -spPath="C:\ti\CC3100_CC3200
_ServicePack_1.0.1.6-2.7.0.0" -operations format servicePackUpdate program

***** Texas Instruments Universal Flash Programmer *****

<START: 12:23:58 GMT-0500 (EST)>

js: "C:\ti\uniflash_3.4\ccs_base\scripting\examples\uniflash\cmdLine\uniFlash_co
re.js", line 8: uncaught JavaScript runtime exception: TypeError: Cannot call me
thod "setDefaultDialogResponse" of null

That ain't so good.  This is with a fresh install of Uniflash 3.4. The config file is one I regularly use from the Uniflash GUI.  What gives?  Did I miss something in the setup?

Thx,

Dallas

  • Hi Dallas,

    Please try running from your C:\ti\uniflash_3.4 directory and calling the command like so:

    uniflashCLI.bat -config "C:\Users\ANONYMOUS\tidla_sn04.usf" -setOptions com=[INSERT COM PORT] spPath="C:\ti\CC3100_CC3200_ServicePack_1.0.1.6-2.7.0.0\servicepack_1.0.1.6-2.7.0.0.bin" -operations format servicePackUpdate program

    Best Regards,

    Ben

  • No Joy.  Cut and pasted from your response which failed, then corrected the semantic error which also failed:

    C:)cd
    C:\ti\uniflash_3.4

    C:)uniflashCLI.bat -config "C:\Users\ANONYMOUS\tidla_sn04.usf" -setOptions com=2
    4 spPath="C:\ti\CC3100_CC3200_ServicePack_1.0.1.6-2.7.0.0" -operations format se
    rvicePackUpdate program

    ***** Texas Instruments Universal Flash Programmer *****

    > Configuring UniFlash with the following configuration: C:/Users/ANONYMOUS/tidl
    a_sn04.usf

    Exception in thread "main" java.lang.NullPointerException
    at com.ti.uniflash.commandline.CommandLine.setUpApplication(Unknown Sour
    ce)
    at com.ti.uniflash.commandline.CommandLine.main(Unknown Source)

    C:)uniflashCLI.bat -config "C:\Users\ANONYMOUS\tidla_sn04.usf" -setOptions com=2
    4 -spPath="C:\ti\CC3100_CC3200_ServicePack_1.0.1.6-2.7.0.0" -operations format s
    ervicePackUpdate program

    ***** Texas Instruments Universal Flash Programmer *****

    Error: Unsupported command line argument.
    > Configuring UniFlash with the following configuration: C:/Users/ANONYMOUS/tidl
    a_sn04.usf

    Exception in thread "main" java.lang.NullPointerException
    at com.ti.uniflash.commandline.CommandLine.setUpApplication(Unknown Sour
    ce)
    at com.ti.uniflash.commandline.CommandLine.main(Unknown Source)

    C:)

    I should point out that my .ucf file contains the following line:

    com=24

    That should mean the "-setOptions com=24" isn't required right?

    KDP

  • [Edit: Note that the path to the service pack should include the binary name as well (i.e. C:\ti\CC3100_CC3200_ServicePack_1.0.1.6-2.7.0.0\servicepack_1.0.1.6-2.7.0.0.bin)]

    Hi KDP,

    Try a basic configuration. Open UniFlash, select New Configuration -> Connection: CC3x Serial(UART) Interface, Board or Device: SimpleLink Wifi CC3100/CC3200.

    Don't change any settings. Save it.

    Then run a simple command to make sure there is nothing wrong with your install.

    Example:

    uniflashCLI.bat -config "[Path to newly saved .usf]" -setOptions com=[COM PORT] spPath="[Service Pack Location]" -operations format servicePackUpdate

    That way we can make sure there isn't any issue with loading the usf you already have created or with the paths to associated files.

    Best Regards,
    Ben

  • Ok, Benjamin, I think I got it now with help from you and my cube-mate looking over my shoulder. Thanks. You definitely can dispense with the "com" option if it is in your config file. Also the Production Guide does have a typo - the config file should have an extention of ".usf" not ".ucf".

    Thanks for your fast responses! We are at a point where every hour counts and it really is helpful when we get a response quickly.

    Dallas