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.

CC3220S-LAUNCHXL: Uniflash 6.1.0: not able flash with Uniflash CLI on windows

Part Number: CC3220S-LAUNCHXL
Other Parts Discussed in Thread: CC3220S, UNIFLASH, CC3230S

Hi,

I am using CC3220s launchpad for programming the device with uniflash. It is working fine.

 

Now, I want to program the device with uniflash CLI. These are the steps I follow:

  • Creating .sli image in uniflash.

 

  • Connected my CC3220S Dev Kit to the PC.

 

  • Executed the dslite.bat file in order to flash the .sli file I see the failure as seen below in the highlighted line.

 

>dslite --mode cc32xx image program --file Programming.sli

Executing the following command:

> SLImageCreator.exe image program --file Programming.sli

 

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

 

Config file (cfg.json) doesn't exist, using defaults

INFO:root:FTDI not detected, trying XDS

INFO:slbootloader.slbootloader:Connecting to device

INFO:slbootloader.slbootloader:Power off

INFO:slbootloader.slbootloader:Set break signal

INFO:slbootloader.slbootloader:Power on

INFO:slbootloader.slbootloader:Clear break signal

INFO:slbootloader.slbootloader:Connection succeeded

INFO:slbootloader.slbootloader:Received storage list

INFO:slbootloader.slbootloader:Received error : error number = -10275 , extended error = 4293

Traceback (most recent call last):

  File "<string>", line 5189, in <module>

  File "<string>", line 5185, in main

  File "<string>", line 5157, in cmdline

  File "<string>", line 4051, in command_image_program

  File "<string>", line 2788, in program_image_from_sli

  File "<string>", line 2882, in program_image

  File "W:\slbootloader\slbootloader.py", line 793, in fs_programming

slbootloader.slbootloader.BootLoaderError:

Error: SLImageCreator.exe: fs_programming error: ret: -10275, ex_err: 4293 - FS_PROGRAMMING_ILLEGAL_FILE

SLImageCreator returned -1

  • I also tried to run the SLImageCreator.exe directly without dslite file but I see the same error as above.
  • Hi Rushina,

    Are you generating an encrypted image?

    Is the SLI image in development mode? Are you flashing it to the same device that is was generated for?

    Best regards,

    Sarah

  • Thanks Sarah for your reply.

    I am not generating encrypted image.

    SLI image is in the production mode.

    My further test findings are as below.

    1) when I create SLI image with default root certificate and vendor catalog, Image programming is successful with CLI.

    2) When I create SLI image by changing certificate and vendor catalog in uniflash GUI, Image programming is not successful with CLI. 

    I have attached the log for the same and screenshot for changing certificate and vendor catalog for your reference.

    CLI Log.txt
    .sli image created with default certificate and vendor catalog
    
    >dslite --mode cc32xx image program --file C:\Users\h463279\.SLImageCreator\projects\testCLI\sl_image\Output\Programming.sli
    Executing the following command:
    > SLImageCreator.exe image program --file Programming.sli
    
    For more details and examples, please refer to the UniFlash Quick Start guide.
    
    Config file (cfg.json) doesn't exist, using defaults
    INFO:root:FTDI not detected, trying XDS
    INFO:slbootloader.slbootloader:Connecting to device
    INFO:slbootloader.slbootloader:Power off
    INFO:slbootloader.slbootloader:Set break signal
    INFO:slbootloader.slbootloader:Power on
    INFO:slbootloader.slbootloader:Clear break signal
    INFO:slbootloader.slbootloader:Connection succeeded
    INFO:slbootloader.slbootloader:Received storage list
    Image Programming: 100% (311904/311904)
    
    .sli image created with changed certificate and vendor catalog from uniflash GUI
    
    >dslite --mode cc32xx image program --file Programming.sli
    Executing the following command:
    >SLImageCreator.exe image program --file Programming.sli
    
    For more details and examples, please refer to the UniFlash Quick Start guide.
    
    Config file (cfg.json) doesn't exist, using defaults
    INFO:root:FTDI not detected, trying XDS
    INFO:slbootloader.slbootloader:Connecting to device
    INFO:slbootloader.slbootloader:Power off
    INFO:slbootloader.slbootloader:Set break signal
    INFO:slbootloader.slbootloader:Power on
    INFO:slbootloader.slbootloader:Clear break signal
    INFO:slbootloader.slbootloader:Connection succeeded
    INFO:slbootloader.slbootloader:Received storage list
    Image Programming: 99% (311296/311904)INFO:slbootloader.slbootloader:Received error : error number = -10289 , extended error = 2694
    Traceback (most recent call last):
      File "<string>", line 5189, in <module>
      File "<string>", line 5185, in main
      File "<string>", line 5157, in cmdline
      File "<string>", line 4051, in command_image_program
      File "<string>", line 2788, in program_image_from_sli
      File "<string>", line 2882, in program_image
      File "W:\slbootloader\slbootloader.py", line 793, in fs_programming
    slbootloader.slbootloader.BootLoaderError:
    Error: SLImageCreator.exe: fs_programming error: ret: -10289, ex_err: 2694 - FS_WRONG_SIGNATURE
    SLImageCreator returned -1
    

    Best Regards,

    Rushina

  • Hi Rushina,

    That error means something went wrong with the generated files, or it could be the wrong serial flash model. Can you verify the minimum requirements in the Vendor Device Authentication guide?

    Also, there is an issue with the OTP feature that was resolved in UniFlash 6.3.0. It would not cause this particular flashing error, but to use this feature, you will need to install the latest version of UniFlash: https://www.ti.com/tool/UNIFLASH

    Best regards,

    Sarah

  • Thanks Sarah for your response.

    Here I want to add that I am able to flash the same program image from UniFlash GUI and not from UniFlash CLI.

    Here are the details :

    • Device type: CC3230S
    • UniFlash version – 6.1.0
    • Service pack version - sp_4.9.0.2_3.7.0.1_3.1.0.26.bin
    •  Serial Flash device: Macronix MX25R3235FM1IL0

    I will install Uniflash 6.3.0 and let you know my findings.

    Regards,

    Rushina

  • Thanks, Rushina. We will wait for your update.

    -Ben M

  • I installed UniFlash 6.3.0, but the result was the same for programming SLI image. 

    Problem is solved when I also choose the option of vendor certificate catalog in GUI, able to program from GUI.

    I added vendor certificate option in CLI to program through CLI.

    I can flash SLI image successfully with below CLI command.

    >dslite --mode cc32xx image program --file Programming.sli --vendor_cert --otp_file vendor_otp.inf

    Regards,

    Rushina

  • Hi Rushina,

    If I'm understanding correctly, since you are trying to use the vendor certificate catalog feature, your problem is resolved. I see you can successfully program both through the GUI and the CLI.

    Thank you,

    Ben M