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.

CC3230S: uniflash CLI programming

Part Number: CC3230S
Other Parts Discussed in Thread: UNIFLASH

Hi,

I am using uniflash version 6.3.0. I tried to create project from uniflash CLI. I can do this successfully in one PC.

I am following command line instruction from  swru469h.

In this process When I add service pack with below command, it is successful on one PC. Below is the log.

C:\ti\uniflash_6.3.0>dslite --mode cc32xx project set_sp --name C:\Users\h463279\.SLImageCreator\projects\WSD_CLI --file C:\Users\h463279\.SLImageCreator\projects\CLI_test\sp_4.9.0.2_3.7.0.1_3.1.0.26.bin

Executing the following command:

> C:\ti\uniflash_6.3.0\simplelink\imagecreator\bin\SLImageCreator.exe project set_sp --name C:\Users\h463279\.SLImageCreator\projects\WSD_CLI --file C:\Users\h463279\.SLImageCreator\projects\CLI_test\sp_4.9.0.2_3.7.0.1_3.1.0.26.bin

 

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

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

But, When I am following the similar process on other PC, it is giving me error. Below is the log for the same.

C:\ti\uniflash_6.3.0>dslite --mode cc32xx project set_sp --name C:\Users\h386154\.SLImageCreator\projects\WSD_CLI --file C:\Users\h386154\.SLImageCreator\projects\CLI_test\sp_4.9.0.2_3.7.0.1_3.1.0.26.bin

Executing the following command:

> C:\ti\uniflash_6.3.0\simplelink\imagecreator\bin\SLImageCreator.exe project set_sp --name C:\Users\h386154\.SLImageCreator\projects\WSD_CLI --file C:\Users\h386154\.SLImageCreator\projects\CLI_test\sp_4.9.0.2_3.7.0.1_3.1.0.26.bin

 

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

 

Config file (cfg.json) doesn't exist, using defaults
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 4154, in command_project_set_sp
File "W:\slimagecreatorglobals.py", line 355, in rmtree_from_projects
slimagecreatorglobals.SLImageCreatorError: Not a directory within the projects directory: C:\Users\h386154\.SLImageCreator\projects\WSD_CLI\sl_sp
SLImageCreator returned -1

 

Why the same process has different behavior on different PC?  What is this error? 

Please guide.

Thanks

Rushina

  • Hi Rushina,

    Looking at the command you're trying to run, it looks like you're directing the CLI to add a serivcepack file from an absolute path. Are you sure that this absolute path is correct for both PCs? It looks like there is a user folder in the path, maybe that's different among the two PC setups.

    Regards,

    Michael

  • Hi Michael,

    I am sure that the absolute path is correct for both the PC. For different PCs, the user path would be different , but I assure that the service pack file exist in the folder which is used in the command.

    The other files for the same project are also in the same folder CLI_test, and they get added into project successfully. 

    It seems it is not able to create sl_sp folder in the WSD_CLI project folder. So my understanding is first the command will create sl_sp folder under WSD_CLI  and then will add service pack file in that folder.

    What could be the reason for not creating sl_sp folder?

    Thanks,

    Rushina.

  • Hi Rushina,

    For your CLI commands, the --name parameter is supposed to be the project name, and not the full project path. If you input the project path, then the CLI will search for a project that is named "C:\Users\h386154\.SLImageCreator\projects\WSD_CLI". If you use --name WSD_CLI instead, does that change anything?

    Currently, I do not have any issues running the CLI with the set_sp command, and cannot reproduce your error.

    Regards,

    Michael

  • Hi Michael,

    Sorry for the late reply. Thanks for your suggestion. I tried with the --name parameter with only project name and it worked.

    Thanks.