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.

TM4C123BH6ZRB: Cannot program part from commandline, but works from GUI

Part Number: TM4C123BH6ZRB

Part: TM4C123BH6ZRB

Am using latest version of uniflash on Fedora Linux.

 I can erase the Tiva via commandline:

/usr/local/uniflash_6.4.0/dslite.sh -e -c /tftpboot/sm400/Tiva_TM4C123BH6ZRB.ccxml -a Erase # ***** WORKS *****

I am able to reprogram the Tiva using the cumbersome uniflash GUI, using the same '.bin' file as below.

But cannot reflash via commandline:

/usr/local/uniflash_6.4.0/dslite.sh -e -c /tftpboot/sm400/Tiva_TM4C123BH6ZRB.ccxml -f -v /tftpboot/sm400/sm400_bmc-01.18-01.18.bin # ***** BROKEN *****

Executing the following command:
> /usr/local/uniflash_6.4.0/deskdb/content/TICloudAgent/linux/ccs_base/DebugServer/bin/DSLite flash -e -c /tftpboot/sm400/Tiva_TM4C123BH6ZRB.ccxml -f -v /tftpboot/sm400/sm400_bmc-01.18-01.18.bin

For more details and examples, please refer to the UniFlash Quick Start guide.

DSLite version 10.4.0.2437
Configuring Debugger (may take a few minutes on first launch)...
    Initializing Register Database...
    Initializing: CS_DAP_0
    Executing Startup Scripts: CS_DAP_0
    Initializing: CORTEX_M4_0
    Executing Startup Scripts: CORTEX_M4_0
CORTEX_M4_0: GEL Output: 
Memory Map Initialization Complete
Connecting...
Failed: Encountered a problem loading file: /tftpboot/sm400/sm400_bmc-01.18-01.18.bin
Could not determine target type of file



Note: THERE IS NO QUICK START GUIDE file in the released files...
  • Additional Info:

    The ".bin" file is a "full" image, and is always recognized, and programmed, and verified successfully via the GUI form of uniflash.

  • Self reply...

    1) the extracted file  uniflash_6.4.0/docs/release_notes_6.4.0.html   directs to a quick-start guide on the TI website-  which is obsolete, (applicable to version 3.x).

    2) I did find the Quick Start Guide, but not in the place the docs and webpages said it would be.

    3) The real, extracted Quick Start Guide is located here:  uniflash_6.4.0/docs/quick_start_guide/uniflash_quick_start_guide.html

    4) buried in an obscure, hard to interpret note (but still eventually helpful), I found:

       ... To specify a binary file, append ',address' after the file.

     so, appending ",0" (no quotes) after the binary filename worked.  0 (zero) is the default offset used by the uniflash GUI.  Too bad the commandline loader doesn't recognize the binary file.  It should warn of missing offset (assuming zero) instead of failing with a bogus/distracting/un-helpful error message for a perfectly valid binary file.

    5) The commands I use to erase, program, then reset the Tiva are:

    /usr/local/uniflash_6.4.0/dslite.sh -c Tiva_TM4C123BH6ZRB.ccxml -a Erase
    /usr/local/uniflash_6.4.0/dslite.sh -c Tiva_TM4C123BH6ZRB.ccxml -f -v sm400_bmc-01.18-01.18.bin,0 -r 0
    
    6) This Forum does not appear to function properly with Mozilla Firefox under Linux or windoze. One cannot create or reply to posts.   had to resort to chrome....

  • Hi Ron,

    So is the issue now resolved for you?

    I can pass the feedback about the forum functionality issue to our E2E team and will inform Uniflash team about the documentation issues.

    Best Regards,

    Ralph