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 will no longer connect to board after upgrading simplelink sdk and code composer studio

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

Hello

We are using Code Composer Studio and Uniflash along with CC3220S-LAUNCHXL and CC2640R2-LAUNCHXL boards to debug and flash our device, which has a cc3220 and cc2640 on it. Up until this point, we have been successful using these tools to debug and develop for the device. Using Uniflash to connect to the device, and CCS to debug code on our device. However, we recently tried to upgrade our tools as follows:

  • CC3220 Simplelink SDK:  v2.40.01 -> v2.40.02
  • Code Composer Studio v8.3 -> v9.0
  • Uniflash v4.5 -> v4.6

Now, we are unable to connect to our device using Uniflash with the CC3220S-LAUNCHXL. Running code on the device with the CCS debugger still works fine, and Uniflash successfully auto-detects the launchpad, but connecting fails every time. Every time, we receive a read timeout error.

We have tried rolling back all of the tools, but are still unable to connect. We tried with multiple CC3220S-LAUNCHXL boards, and multiple of our devices, but are still unable to connect successfully. We returned the launchpads' pin configurations to the default layout and tried to flash the on-launchpad cc3220. Only one of the launchpads was able to connect successfully.

We have reset our environment back to it's previous state before these changes. However, the boards, and devices we used with the upgraded tools will no longer connect. We have been unable to solve the problem after several days of trying. Our best guess is that the launchpads or our devices are in an unknown state that is causing errors, but we are unable to verify this without connecting to uniflash.

This is currently blocking our development, and nny help would be much appreciated.

Thank You,

Christopher Cereske

Anova Culinary

  • Hi Christopher,

    The UniFlash tool is not linked to the SDK or CCS in any way (they only provide the generated binary and servicepack for flashing), so they would not affect whether you're able to auto-detect the LaunchPad.

    A few things to try:

    1. If you haven't already restarted your computer since installing new software versions, please do so.

    2. Be sure the SOP pins are set to 100 or 010. I've also added the default jumper configuration below.

    3. Try to remove all other USB connections from your laptop besides the LaunchPad. Sometimes we find USB hubs don't work very well (it takes too long to get responses from the LaunchPad). You should also try a new USB cable and different USB port.

    4. If the auto detection continues to fail, you can set the COM port manually using the command line. See the Command Line section of the ImageCreator User's Guide for more details.

    dslite.bat --mode cc32xx project program --name PROJECT_NAME --port COM_NUM

    Best regards,

    Sarah

  • Hi Sarah,

    Thanks for the fast response. The issue is not auto-detecting the board. Auto-detect works fune,  but when we try to connect to the board, we always get a timeout error as shown below:

    We have tried all of the steps you mentioned with no success. I have attached the output of the dslite script below:

    ./dslite.sh --mode cc32xx project program --name pro-3199b6e --port /dev/tty.usbmodemE00810101
    Executing the following command:
    > ./SLImageCreator project program --name pro-3199b6e --port /dev/tty.usbmodemE00810101
    
    For more details and examples, please visit processors.wiki.ti.com/.../UniFlash_v4_Quick_Guide
    
    Config file (cfg.json) doesn't exist, using defaults
    
    ------------------------
    
    
    
    Copyright 2014 TI.com. All rights reserved, SimpleLink programming image builder
    Builder = 3.0.1.6
    
    Interface version   = 1.0.2.16
    Recommended command line window resolution W124 X H67
    
    The output directory is  :[/Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_image]
    The XML file is          :[/Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_image/ImageConfig.xml]
    
    Validate the XML against the schema.
    
    The XML validation passed.
    
    
    ------------------------
    
     Commands Set Number = 0
    	CommandNum = 0
    		CommandFormatStorage:
    	CommandNum = 1
    		CommandWriteCertificateStore:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_cs/certcatalog20171221.lst
    		FileSystemName = /sys/certstore.lst
    		File max size is 7000 bytes, actual size 3672 bytes
    		After running the extracting the file will require 4 blocks on the device
    	CommandNum = 2
    		CommandWriteServicePack:
    		Service pack versions, NWP = (2, 2, 0, 2)  MAC = (1, 2, 0, 2)  PHY = (1, 0, 3, 23)
    		Max Service Pack file size = 131072
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_sp/sp_3.8.0.3_2.0.0.0_2.2.0.6.bin
    		FileSystemName = /sys/servicepack.ucf
    		File max size is 131072 bytes, actual size 27382 bytes
    		After running the extracting the file will require 66 blocks on the device
    	CommandNum = 3
    		CommandWriteSystemFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_fs/sys/ipcfg.bin
    		FileSystemName = 17
    		File max size is 200 bytes, actual size 200 bytes
    		After running the extracting the file will require 2 blocks on the device
    	CommandNum = 4
    		CommandWriteSystemFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_fs/sys/device.name.bin
    		FileSystemName = 5
    		File max size is 98 bytes, actual size 98 bytes
    		After running the extracting the file will require 2 blocks on the device
    	CommandNum = 5
    		CommandWriteSystemFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_fs/sys/ap.cfg.bin
    		FileSystemName = 1
    		File max size is 158 bytes, actual size 158 bytes
    		After running the extracting the file will require 2 blocks on the device
    	CommandNum = 6
    		CommandWriteSystemFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_fs/sys/httpsrv.cfg.bin
    		FileSystemName = 4
    		File max size is 387 bytes, actual size 387 bytes
    		After running the extracting the file will require 2 blocks on the device
    	CommandNum = 7
    		CommandWriteSystemFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_fs/sys/dhcpsrv.cfg.bin
    		FileSystemName = 3
    		File max size is 12 bytes, actual size 12 bytes
    		After running the extracting the file will require 2 blocks on the device
    	CommandNum = 8
    		CommandWriteSystemFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_fs/sys/sta.cfg.bin
    		FileSystemName = 12
    		File max size is 116 bytes, actual size 116 bytes
    		After running the extracting the file will require 2 blocks on the device
    	CommandNum = 9
    		CommandWriteSystemFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_fs/sys/mode.cfg.bin
    		FileSystemName = 0
    		File max size is 80 bytes, actual size 80 bytes
    		After running the extracting the file will require 2 blocks on the device
    	CommandNum = 10
    		CommandWriteFile:
    		FileLocation = ../files/tmp.tmp
    		FileSystemName = @@.tmp
    		File max size is 255 bytes, actual size 0 bytes
    		After running the extracting the file will require 1 blocks on the device
    	CommandNum = 11
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmpmJT9Fv
    		FileSystemName = pro-code-cert.der
    		File max size is 4096 bytes, actual size 1609 bytes
    		After running the extracting the file will require 4 blocks on the device
    	CommandNum = 12
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmpco44Z0
    		FileSystemName = go daddy root certificate authority - g2
    		File max size is 4096 bytes, actual size 969 bytes
    		After running the extracting the file will require 4 blocks on the device
    	CommandNum = 13
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmpf6cIK4
    		FileSystemName = go daddy secure certificate authority - g2
    		File max size is 4096 bytes, actual size 1236 bytes
    		After running the extracting the file will require 4 blocks on the device
    	CommandNum = 14
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmpkn2ZIg
    		FileSystemName = pro-ota-cert.der
    		File max size is 4096 bytes, actual size 724 bytes
    		After running the extracting the file will require 4 blocks on the device
    	CommandNum = 15
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmp4N9C2d
    		FileSystemName = /sounds/1khz_mono.wav
    		File max size is 98304 bytes, actual size 88244 bytes
    		After running the extracting the file will require 25 blocks on the device
    	CommandNum = 16
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmpwo5z1F
    		FileSystemName = /sounds/button_tap_final.wav
    		File max size is 98304 bytes, actual size 1720 bytes
    		After running the extracting the file will require 25 blocks on the device
    	CommandNum = 17
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmpTGIId4
    		FileSystemName = /sounds/stop_final.wav
    		File max size is 98304 bytes, actual size 32358 bytes
    		After running the extracting the file will require 25 blocks on the device
    	CommandNum = 18
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmpBSJBgA
    		FileSystemName = /sounds/success_final.wav
    		File max size is 98304 bytes, actual size 41918 bytes
    		After running the extracting the file will require 25 blocks on the device
    	CommandNum = 19
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmp4FhRCK
    		FileSystemName = /sys/mcuimg-2640.hex
    		File max size is 307200 bytes, actual size 30998 bytes
    		After running the extracting the file will require 152 blocks on the device
    	CommandNum = 20
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmpQ1yXVi
    		FileSystemName = /sys/mcuimg.bin
    		File max size is 262144 bytes, actual size 127760 bytes
    		After running the extracting the file will require 130 blocks on the device
    	CommandNum = 21
    		CommandWriteFile:
    		FileLocation = ../files/CrashMiniDump.bin
    		FileSystemName = /tmp/CrashMiniDump.bin
    		File max size is 24576 bytes, actual size 1 bytes
    		After running the extracting the file will require 7 blocks on the device
    
    	For Set Number = 0 ,
    	Set Files will require 490 blocks on the device after running the extraction  ( Programming image is not included )
    
    ------------------------
    	The actual size of the image data is 368640 bytes
    		=> The  image data requires minimum of 92 blocks on the device.
    
    Block size is 4096 bytes.
    Configured Storage size is 1024 blocks.
    
    
    Total size of image( 92 blocks )
    	Total size of user files after extraction( 276 blocks )
    	Total size of FileSystem( 4 blocks )
    
    	Total System files after extraction(includes reserved space for system files)( 236 blocks )
    		Total reserved for system files ( 236 blocks )
    			Service pack after extraction size ( 66 blocks )
    			Application code  after extraction size ( 130 blocks )
    			Kept for system files ( 32 blocks )
    		System files after extraction size (includes the service-pack) ( 214 blocks )
    	Reserved size for the Image (includes image protecting) ( 96 blocks )
    	 ==> After the extraction the set will require total size of 612 blocks.<==
    	 ==> During the extraction process the set will require total size of 612 blocks.<==
    
    Non-encrypted files generated successfully !!!
    
    
    
    Finished successfully !!!!
    
    ------------------------
    
    
    
    
    INFO:root:COM PORT /dev/tty.usbmodemE00810101
    INFO:slbootloader.slbootloader:Connecting to device
    INFO:slbootloader.slbootloader:--- Please power off the device ---
    Press ENTER to continue
    INFO:slbootloader.slbootloader:Power off
    INFO:slbootloader.slbootloader:Set break signal
    Failed to execute script SLImageCreator
    Traceback (most recent call last):
      File "SLImageCreator.py", line 4586, in <module>
      File "SLImageCreator.py", line 4582, in main
      File "SLImageCreator.py", line 4554, in cmdline
      File "SLImageCreator.py", line 3695, in command_project_program
      File "SLImageCreator.py", line 2351, in program_image_from_project
      File "SLImageCreator.py", line 1495, in connect_device
      File "slbootloader/slbootloader.py", line 429, in connect_with_reset
      File "site-packages/serial/serialposix.py", line 548, in setBreak
    IOError: [Errno 25] Inappropriate ioctl for device

  • Hi Christopher,

    It looks like you're using Mac OS. What version is it?

    Can you also run the following command and provide the output?

    ./dslite.sh --mode cc32xx project program --name pro-3199b6e

    Best regards,

    Sarah

  • Hey Sarah,

    Yes we are on a Mac. I tried running the command but we are receiving a similair timeout error:

    ./dslite.sh --mode cc32xx project program --name pro-3199b6e
    Executing the following command:
    > ./SLImageCreator project program --name pro-3199b6e
    
    For more details and examples, please visit processors.wiki.ti.com/.../UniFlash_v4_Quick_Guide
    
    Config file (cfg.json) doesn't exist, using defaults
    
    ------------------------
    
    
    
    Copyright 2014 TI.com. All rights reserved, SimpleLink programming image builder
    Builder = 3.0.1.6
    
    Interface version   = 1.0.2.16
    Recommended command line window resolution W124 X H67
    
    The output directory is  :[/Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_image]
    The XML file is          :[/Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_image/ImageConfig.xml]
    
    Validate the XML against the schema.
    
    The XML validation passed.
    
    
    ------------------------
    
     Commands Set Number = 0
    	CommandNum = 0
    		CommandFormatStorage:
    	CommandNum = 1
    		CommandWriteCertificateStore:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_cs/certcatalog20171221.lst
    		FileSystemName = /sys/certstore.lst
    		File max size is 7000 bytes, actual size 3672 bytes
    		After running the extracting the file will require 4 blocks on the device
    	CommandNum = 2
    		CommandWriteServicePack:
    		Service pack versions, NWP = (2, 2, 0, 2)  MAC = (1, 2, 0, 2)  PHY = (1, 0, 3, 23)
    		Max Service Pack file size = 131072
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_sp/sp_3.8.0.3_2.0.0.0_2.2.0.6.bin
    		FileSystemName = /sys/servicepack.ucf
    		File max size is 131072 bytes, actual size 27382 bytes
    		After running the extracting the file will require 66 blocks on the device
    	CommandNum = 3
    		CommandWriteSystemFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_fs/sys/ipcfg.bin
    		FileSystemName = 17
    		File max size is 200 bytes, actual size 200 bytes
    		After running the extracting the file will require 2 blocks on the device
    	CommandNum = 4
    		CommandWriteSystemFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_fs/sys/device.name.bin
    		FileSystemName = 5
    		File max size is 98 bytes, actual size 98 bytes
    		After running the extracting the file will require 2 blocks on the device
    	CommandNum = 5
    		CommandWriteSystemFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_fs/sys/ap.cfg.bin
    		FileSystemName = 1
    		File max size is 158 bytes, actual size 158 bytes
    		After running the extracting the file will require 2 blocks on the device
    	CommandNum = 6
    		CommandWriteSystemFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_fs/sys/httpsrv.cfg.bin
    		FileSystemName = 4
    		File max size is 387 bytes, actual size 387 bytes
    		After running the extracting the file will require 2 blocks on the device
    	CommandNum = 7
    		CommandWriteSystemFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_fs/sys/dhcpsrv.cfg.bin
    		FileSystemName = 3
    		File max size is 12 bytes, actual size 12 bytes
    		After running the extracting the file will require 2 blocks on the device
    	CommandNum = 8
    		CommandWriteSystemFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_fs/sys/sta.cfg.bin
    		FileSystemName = 12
    		File max size is 116 bytes, actual size 116 bytes
    		After running the extracting the file will require 2 blocks on the device
    	CommandNum = 9
    		CommandWriteSystemFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_fs/sys/mode.cfg.bin
    		FileSystemName = 0
    		File max size is 80 bytes, actual size 80 bytes
    		After running the extracting the file will require 2 blocks on the device
    	CommandNum = 10
    		CommandWriteFile:
    		FileLocation = ../files/tmp.tmp
    		FileSystemName = @@.tmp
    		File max size is 255 bytes, actual size 0 bytes
    		After running the extracting the file will require 1 blocks on the device
    	CommandNum = 11
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmpG8qvzC
    		FileSystemName = pro-code-cert.der
    		File max size is 4096 bytes, actual size 1609 bytes
    		After running the extracting the file will require 4 blocks on the device
    	CommandNum = 12
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmp_sm22K
    		FileSystemName = go daddy root certificate authority - g2
    		File max size is 4096 bytes, actual size 969 bytes
    		After running the extracting the file will require 4 blocks on the device
    	CommandNum = 13
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmpAE2em1
    		FileSystemName = go daddy secure certificate authority - g2
    		File max size is 4096 bytes, actual size 1236 bytes
    		After running the extracting the file will require 4 blocks on the device
    	CommandNum = 14
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmp9kGp4G
    		FileSystemName = pro-ota-cert.der
    		File max size is 4096 bytes, actual size 724 bytes
    		After running the extracting the file will require 4 blocks on the device
    	CommandNum = 15
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmprQ318T
    		FileSystemName = /sounds/1khz_mono.wav
    		File max size is 98304 bytes, actual size 88244 bytes
    		After running the extracting the file will require 25 blocks on the device
    	CommandNum = 16
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmpOT7VAi
    		FileSystemName = /sounds/button_tap_final.wav
    		File max size is 98304 bytes, actual size 1720 bytes
    		After running the extracting the file will require 25 blocks on the device
    	CommandNum = 17
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmp1doXSK
    		FileSystemName = /sounds/stop_final.wav
    		File max size is 98304 bytes, actual size 32358 bytes
    		After running the extracting the file will require 25 blocks on the device
    	CommandNum = 18
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmpunrkoR
    		FileSystemName = /sounds/success_final.wav
    		File max size is 98304 bytes, actual size 41918 bytes
    		After running the extracting the file will require 25 blocks on the device
    	CommandNum = 19
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmpL0BCUI
    		FileSystemName = /sys/mcuimg-2640.hex
    		File max size is 307200 bytes, actual size 30998 bytes
    		After running the extracting the file will require 152 blocks on the device
    	CommandNum = 20
    		CommandWriteFile:
    		FileLocation = /Users/chris/.SLImageCreator/projects/pro-3199b6e/sl_temp/tmpLlOLH4
    		FileSystemName = /sys/mcuimg.bin
    		File max size is 262144 bytes, actual size 127760 bytes
    		After running the extracting the file will require 130 blocks on the device
    	CommandNum = 21
    		CommandWriteFile:
    		FileLocation = ../files/CrashMiniDump.bin
    		FileSystemName = /tmp/CrashMiniDump.bin
    		File max size is 24576 bytes, actual size 1 bytes
    		After running the extracting the file will require 7 blocks on the device
    
    	For Set Number = 0 ,
    	Set Files will require 490 blocks on the device after running the extraction  ( Programming image is not included )
    
    ------------------------
    	The actual size of the image data is 368640 bytes
    		=> The  image data requires minimum of 92 blocks on the device.
    
    Block size is 4096 bytes.
    Configured Storage size is 1024 blocks.
    
    
    Total size of image( 92 blocks )
    	Total size of user files after extraction( 276 blocks )
    	Total size of FileSystem( 4 blocks )
    
    	Total System files after extraction(includes reserved space for system files)( 236 blocks )
    		Total reserved for system files ( 236 blocks )
    			Service pack after extraction size ( 66 blocks )
    			Application code  after extraction size ( 130 blocks )
    			Kept for system files ( 32 blocks )
    		System files after extraction size (includes the service-pack) ( 214 blocks )
    	Reserved size for the Image (includes image protecting) ( 96 blocks )
    	 ==> After the extraction the set will require total size of 612 blocks.<==
    	 ==> During the extraction process the set will require total size of 612 blocks.<==
    
    Non-encrypted files generated successfully !!!
    
    
    
    Finished successfully !!!!
    
    ------------------------
    
    
    
    
    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
    Failed to execute script SLImageCreator
    Traceback (most recent call last):
      File "SLImageCreator.py", line 4586, in <module>
      File "SLImageCreator.py", line 4582, in main
      File "SLImageCreator.py", line 4554, in cmdline
      File "SLImageCreator.py", line 3695, in command_project_program
      File "SLImageCreator.py", line 2351, in program_image_from_project
      File "SLImageCreator.py", line 1495, in connect_device
      File "slbootloader/slbootloader.py", line 406, in connect_with_reset
      File "slbootloader/slbootloader.py", line 271, in _expect_ack
      File "slbootloader/slbootloader.py", line 302, in _read_data
    slbootloader.slbootloader.BootLoaderError: Timeout reading data
    

  • Thanks Christopher, I'm relaying this back to the tools team. What OS version are you using on your Mac?

    Best regards,
    Sarah
  • We are using MacOS version: 10.14.3

    In addition, we have tried on both Mac and Windows machines, and we have rolled our uniflash version back to v4.5.

  • We just tried on a freshly installed macOS version 10.13.6 with Uniflash 4.6 with no luck yet.
  • Hi Chris,

    Since we're looking at your hardware offline, I'm going to close this thread.

    Best regards,
    Sarah