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.

LAUNCHXL-CC3235SF: Failed to build image (SLImageCreator)

Part Number: LAUNCHXL-CC3235SF
Other Parts Discussed in Thread: UNIFLASH, SYSCONFIG, , CC3235SF

Hello,

I'm trying to build your httpget example for the previously mentioned DevBoard. In the stage of the makefile where the SLImageCreator builds the image (*.sli file) i get exactly the same error as here (https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/967859/failed-to-build-image-to-flash-the-board). Next i tried the network terminal example and i also got the same error. So i assume that the error is not related to a specific example. Even when i call the SLImageCreator from the command line without any arguments, i got this error. Thus I am pretty sure that it is a problem with the SLImageCreator in generell. Since you provide this tool also with the UniFlash application, i installed UniFlash aswell. When i call the SLImageCreator from UniFlash, it works. This leads me to the assumption that my environment (OS, dependencies,...) is not the problem. I temporally fixed the error by replacing the imagecreator folder within the Simple Link by the imagecreator folder from UniFlash. But this does not look like a reasonable solution to me. I hope you can reproduce my error and find a solution for the problem. If you need more detailed information from me, please do not hesitate to ask me.

My setup is:

Ubuntu 22.04

Code Composer Studio 12.4.0.00007

Simple Link CC32XX SDK 7.10.0.13

SysConfig 1.16.2

UniFlash 8.3.0

Many thanks in advance!

Tobias

  • what do you mean by "replacing the imagecreator folder within the Simple Link by the imagecreator folder from UniFlash"?

    Can you provide the error log?

  • The Simple Link installation process creates a directory with the name "simplelink_cc32xx_sdk_7_10_00_13". Within this directory exists a subdirectory / folder "imagecreator" (source/ti/drivers/net/imagecreator). The UniFlash installation process creates a directory with the name "uniflash_8.3.0". Within this directory exists also a subdirectory / folder "imagecreator" (simplelink/imagecreator). Both subdirectorys contain the SLImageCreator executable. So i tried to use the SLImageCreator from UniFlash. To achieve this i first deleted the imagecreator subdirectory within the Simple Link directory. Afterwards i inserted the imagecreator subdirectory from the UniFlash directory. So that the imagecreator subdirectory inside the Simple Link directory is replaced by the imagecreator subdirectory from the UniFlash directory.

    When i call the SLImageCreator executable inside the Simple Link directory, i get the following error:

    ./SLImageCreator
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/home/user/Downloads/sl_image_creator_gen3/venv_ic/lib/python2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 363, in load_module
      File "/home/user/Downloads/sl_image_creator_gen3/antimanifest.py", line 9, in <module>
      File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
        stdout_thread.setDaemon(True)
      File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
        print "Looking for 'PROMPT' in set output..."
    OSError: [Errno 2] No such file or directory
    SLImageCreator returned -1

  • Are you following the instructions in https://www.ti.com/lit/swru469? (Running SlImgaeCreator from the uniflash context?)

    This is the recommended mode of work.

    I'm not familiar with issues with uniflash 8.3.0. I was working with it without issues but on Windows - I'll need to report to our tools team if there is an issue in the Linux environment, but please let me know that you are using it according to the user guide. 

  • Ok, I think there is a missunderstanding. I don't have any problems with the SLImageCreator that is part of the UniFlash application, it works and i use it as a temporary solution for my actual problem. My original problem is related to the SLImageCreator that comes with the Simple Link application since this one is used in the previously mentioned build process (httpget example in Code Composer Studio).

  • any issue with working through Uniflash?

    this is the recommended option.

  • No, i don't have any issues with UniFlash. Probably i should never have mentioned it, as it only leads to misunderstandings. I will try again to explain my problem.

    I have a LAUNCHXL-CC3235SF and i want to experiment with the httpget example. Therefore i use Code Composer Studio 12.4.0.00007. While building the project i get the following error:

    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/home/user/Downloads/sl_image_creator_gen3/venv_ic/lib/python2.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 363, in load_module
      File "/home/user/Downloads/sl_image_creator_gen3/antimanifest.py", line 9, in <module>
      File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
        stdout_thread.setDaemon(True)
      File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
        print "Looking for 'PROMPT' in set output..."
    OSError: [Errno 2] No such file or directory
    SLImageCreator returned -1

    The source of the error is the command

    "/home/toweber/ti/simplelink_cc32xx_sdk_7_10_00_13/source/ti/drivers/net/imagecreator/bin/SLImageCreator" syscfg create_image --sdk_path "/home/toweber/ti/simplelink_cc32xx_sdk_7_10_00_13" --json "/home/toweber/workspace_v12/httpget_CC3235SF_LAUNCHXL_freertos_ticlang/MCU+Image/syscfg/ti_drivers_net_wifi_config.json" --file "/home/toweber/workspace_v12/httpget_CC3235SF_LAUNCHXL_freertos_ticlang/MCU+Image/syscfg/httpget_CC3235SF_LAUNCHXL_freertos_ticlang.sli" --mcu "/home/toweber/workspace_v12/httpget_CC3235SF_LAUNCHXL_freertos_ticlang/MCU+Image/httpget_CC3235SF_LAUNCHXL_freertos_ticlang.bin"

    This command belongs to the following rule of the top level makefile:

    syscfg/httpget_CC3235SF_LAUNCHXL_freertos_ticlang.sli: $(EXE_OUTPUTS) httpget_CC3235SF_LAUNCHXL_freertos_ticlang.bin syscfg/ti_drivers_net_wifi_config.json

  • The error is a little bit different than what i would expect, but if the ".out" (and the ".bin) file is created you can still  download the program to the device and run it (over JTAG) or you can create the SLI offline (e.g. using uniflash).

    The SLI creation is an extra step that was added to create a programming image (i.e. an image you can write directly to the external flash with the CCS "Flash" button). It requires that CCS will read the MAC address of the connected device over UART so if the device is not connected to the PC or the UART is busy an error will be issued (on windows typically it will say something like "device can't be detected" - but in Linux it may be different). You can change the project's "Active Configuration" to "Debug" to avoid this extra step.