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.

CC3220SF: Uniflash: Standalone Command Line won't work

Part Number: CC3220SF
Other Parts Discussed in Thread: UNIFLASH,

Hi there,

i have created uniflash Standalone Command Line through uniflash (Generate Standalone Command Line Package)

Running Programm through uniflash gui works. See 

Console output:

[2.2.2021 12:00:43] [INFO] Cortex_M4_0: CC3220SF(Bootloader)
[2.2.2021 12:00:43] [INFO] Cortex_M4_0: ...Start to invoke the bootloader...
[2.2.2021 12:00:43] [INFO] Cortex_M4_0: Trigger XDS reset
[2.2.2021 12:00:44] [INFO] Cortex_M4_0: Send break signal
[2.2.2021 12:00:45] [INFO] Cortex_M4_0: Bootloader is successfully invoked!
[2.2.2021 12:00:46] [INFO] Cortex_M4_0: ...Get the storage list bitmap information...
[2.2.2021 12:00:46] [INFO] Cortex_M4_0: Storage List Information: 0x86
[2.2.2021 12:00:46] [INFO] Cortex_M4_0: ...Get the version information...
[2.2.2021 12:00:46] [INFO] Cortex_M4_0: Bootloader version: 00.01.00.03
[2.2.2021 12:00:46] [INFO] Cortex_M4_0: NWP version: 00.00.00.00
[2.2.2021 12:00:46] [INFO] Cortex_M4_0: MAC version: 00.00.00.00
[2.2.2021 12:00:46] [INFO] Cortex_M4_0: PHY version: 00.00.00.00
[2.2.2021 12:00:46] [INFO] Cortex_M4_0: Chip version: 19.31.00.00
[2.2.2021 12:00:46] [INFO] Cortex_M4_0: ...Switch mode to Application MCU...
[2.2.2021 12:00:46] [INFO] Cortex_M4_0: ACK response for switching UART to APPS MCU is received!
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: ACK response from sending break signal is received!
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: ...Get the version information...
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: Bootloader version: 01.01.00.03
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: NWP version: 00.00.00.00
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: MAC version: 00.00.00.00
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: PHY version: 00.00.00.00
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: Chip version: 19.31.00.00
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: ...Get the storage list information...
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: Block size of flash : 4096 bytes
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: Number of blocks : 1024
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: ACK from host is successully sent to bootloader!
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: ...Erase RAM...
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: Raw storage erase is successfully executed!
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: ...Write RAM patch...
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: Patch is successfully downloaded into bootloader!
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: ...Execute from RAM...
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: Execute from RAM!
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: ...Get the storage list information...
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: Storage List Information: 0x84
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: ...Get the version information...
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: Bootloader version: 01.01.00.22
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: NWP version: 00.00.00.00
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: MAC version: 00.00.00.00
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: PHY version: 00.00.00.00
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: Chip version: 19.31.00.00
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: ...Erase Flash...
[2.2.2021 12:00:47] [INFO] Cortex_M4_0: Raw storage erase is successfully executed!
[2.2.2021 12:00:48] [INFO] Cortex_M4_0: ...Write Flash patch...
[2.2.2021 12:00:48] [INFO] Cortex_M4_0: Patch is successfully downloaded into bootloader!
[2.2.2021 12:00:48] [INFO] Cortex_M4_0: ...Get the storage list information...
[2.2.2021 12:00:48] [INFO] Cortex_M4_0: Block size of flash : 4096 bytes
[2.2.2021 12:00:48] [INFO] Cortex_M4_0: Number of blocks : 1024
[2.2.2021 12:00:48] [INFO] Cortex_M4_0: ACK from host is successully sent to bootloader!
[2.2.2021 12:00:48] [INFO] Cortex_M4_0: ...Start to program the application image...
[2.2.2021 12:00:57] [INFO] Cortex_M4_0: Programming memory time elapsed: 9.319s
[2.2.2021 12:00:57] [INFO] Cortex_M4_0: Number of bytes programmed: 179424 bytes
[2.2.2021 12:00:57] [INFO] Cortex_M4_0: Programming speed: 18.8kByte/s
[2.2.2021 12:00:57] [INFO] Cortex_M4_0: ..Waiting the post-programming process..
[2.2.2021 12:00:57] [INFO] Cortex_M4_0: This might take about 40 seconds
[2.2.2021 12:01:44] [INFO] Cortex_M4_0: Post-programming process elapsed time : 47.03s
[2.2.2021 12:01:50] [SUCCESS] Program Load completed successfully.

But if export Standalone Command Line and run dslite.bat it fails:

Below my settings:

Command line:

PS D:\ste_trf_wifi\uniflash_windows> .\one_time_setup.bat
PS D:\ste_trf_wifi\uniflash_windows> .\dslite.bat
Executing default command:
> dslite --mode serial -c user_files/configs/CC3220SF_BL.ccxml -l user_files/settings/generated.ufsettings -s VerifyAfterProgramLoad="No verification" -e -f "user_files/images/STE_TRF_WIFI_Example_Programming.sli,1"

DSLite version 10.2.0.2249
Configuring Debugger (may take a few minutes on first launch)...
Parsing connections/Serial_Connection.xml
Parsing drivers/serial_mspsl_bootloader.xml
Parsing devices/CC3220SF_BL.xml
Parsing cpus/cortex_m4.xml
Parsing ..\Modules\cortexM4_NotVisible.xml
Initializing Register Database...
Parsing D:\ste_trf_wifi\uniflash_windows\ccs_base\common\targetdb\drivers\TI_reg_ids\TMS470REX_regids.xml
Parsing D:\ste_trf_wifi\uniflash_windows\ccs_base\common\targetdb\drivers\TI_reg_ids\TMS470RXX_regids.xml
Parsing C:\Users\8489\AppData\Local\TEXASI~1\CCS\STE_TR~1\0\0\115824547405853790.cache
Parsing D:\ste_trf_wifi\uniflash_windows\ccs_base\common\targetdb\Modules\cortexM4_NotVisible.xml
Initializing: Cortex_M4_0
Mapping registers: Cortex_M4_0 - Core Registers
Mapping registers: Cortex_M4_0 - Hidden
Building search data: Cortex_M4_0
Executing Startup Scripts: Cortex_M4_0
Connecting...
Loading Images...
info: Cortex_M4_0: CC3220SF(Bootloader)
info: Cortex_M4_0: ...Start to invoke the bootloader...
info: Cortex_M4_0: Trigger XDS reset
Failed: Image loading failed: CreateProcess failed: Das System kann die angegebene Datei nicht finden.

PS D:\ste_trf_wifi\uniflash_windows>

Why does it fails ? If have checked sli file is present under:

PS D:\ste_trf_wifi\uniflash_windows\user_files\images> ls

Verzeichnis: D:\ste_trf_wifi\uniflash_windows\user_files\images


Mode LastWriteTime Length Name
---- ------------- ------ ----
------ 02.02.2021 11:04 184320 STE_TRF_WIFI_Example_Programming.sli

Config also 

PS D:\ste_trf_wifi\uniflash_windows\user_files> cd .\configs\ PS D:\ste_trf_wifi\uniflash_windows\user_files\configs> ls

Verzeichnis: D:\ste_trf_wifi\uniflash_windows\user_files\configs


Mode LastWriteTime Length Name
---- ------------- ------ ----
------ 02.02.2021 11:04 903 CC3220SF_BL.ccxml


PS D:\ste_trf_wifi\uniflash_windows\user_files\configs>

Settings also

PS D:\ste_trf_wifi\uniflash_windows\user_files> cd settings PS D:\ste_trf_wifi\uniflash_windows\user_files\settings> ls

Verzeichnis: D:\ste_trf_wifi\uniflash_windows\user_files\settings


Mode LastWriteTime Length Name
---- ------------- ------ ----
------ 02.02.2021 11:04 61 generated.ufsettings


PS D:\ste_trf_wifi\uniflash_windows\user_files\settings>

uniflash_6.2.0 is used.

BR,

Arnaud

  • Hi Arnaud,

    The standalone command line generation utility does not work with the CC3xxx devices, as the programming flow for those devices are more complex than simply flashing serial flash banks over JTAG. The CC3xxx programming process involves a separate tool, Imagecreator, which runs in a wrapper provided by Uniflash and uses UART functionality to communicate with the device bootloader to perform the flashing process.

    As a result, you will need to follow a different set of steps to flash your CC3220 through a command line. See the instructions at section 7 of the Imagecreator guide: https://www.ti.com/lit/swru469

    If you follow the steps in the guide, are you able to use the CLI to flash a project?

    Regards,

    Michael