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.

Uniflash v4 CLI create image

Guru 79905 points
Other Parts Discussed in Thread: UNIFLASH

Hi Team,

It looks that Uniflash v4 (4.2.0.1490) does not supports to create image from command line (CLI) as was at previous version 3.4.It seems that image can be created only from GUI. Is this correct?

Is this feature in roadmap for version 4? Or there is a alternate way? I am using CC3220 and from this reason I cannot use previous version.

Update: I found some information about CLI in SWRU469A at chapter 6, but it seems that this not functional.

Thank you

Jan

  • Hi,

    Issue solved. Problem was that inside SWRU469A are described commands which are not supported by CLI actually (e.g. project new).

    Jan
  • Hi Jan,

    Which commands did you find not working?

    Best regards,
    Sarah
  • Hi Sarah,

    Command from SWRU469A chapter 6.1.8 is not supported by current Uniflash version. See supported project commands:

    > c:\ti\uniflash_4.0\simplelink\gen2\bin\SLImageCreator.exe project -h
    
    Config file load error ([Errno 2] No such file or directory: 'cfg.json'), using defaults
    usage: SLImageCreator.exe project [-h] [--name NAME]
                                      {list,program,add_file,set_sp,set_certstore,import,export,clone,reconfig,create_image,create_ota}
                                      ...
    
    optional arguments:
      -h, --help            show this help message and exit
      --name NAME           Project name
    
    subcommands:
      valid subcommands
    
      {list,program,add_file,set_sp,set_certstore,import,export,clone,reconfig,create_image,create_ota}
                            additional help
        list                List all available projects
        program             Program an image generated from a project
        add_file            Add a file to the project's SimpleLink file system
        set_sp              Add service pack to project
        set_certstore       Set certification store pack for project
        import              Import a project from an exported project ZIP file
        export              Export a project to a ZIP file
        clone               Clone a project
        reconfig            Reconfigure a project
        create_image        Create image
        create_ota          Create OTA archive

    Jan

  • Hi Jan,

    Are you using the most recent UniFlash version? In your command line, it looks like you're still using version 4.0.

    Best regards,
    Sarah
  • Hi Sarah,

    OK. now I see what was issue. I had installed version 4.2.0.1490. After manual installation of version 4.2.2.1692 is all OK.

    But it seems that auto update mechanism of Uniflash is broken. It looks that somebody forgot to update file downloads.ti.com/.../update.xml

    Both version of Uniflash (4.2.0.1490 and 4.2.2.1692) are downloading this file. And content of XML is:

    installerInformation>
        <versionId>421490</versionId>
        <version>4.2.1490</version>
        <platformFileList>
            <platformFile>
                <filename>uniflash_sl.4.2.1490.exe</filename>
                <platform>windows</platform>
                <md5></md5>
            </platformFile>
            <platformFile>
                <filename>uniflash_sl.4.2.1490.run</filename>
                <platform>linux-x64</platform>
                <md5></md5>
            </platformFile>
            <platformFile>
                <filename>uniflash_sl.4.2.1490.dmg</filename>
                <platform>osx</platform>
                <md5></md5>
            </platformFile>
        </platformFileList>
        <downloadLocationList>
            <downloadLocation>
                <url>downloads.ti.com/.../url>
            </downloadLocation>
        </downloadLocationList>
    </installerInformation>

    Jan

  • Jan,

    Thanks for reporting the issue with the Uniflash auto update. This was fixed on the server.

    Best regards,
    Rafael