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.

CC3220MODA: Python Image Programming Help

Part Number: CC3220MODA
Other Parts Discussed in Thread: CC3120, UNIFLASH, CC3220SF

I am trying to use the python image programmer project to update the firmware on the C3220MODASF.
I've been running into issues getting it to run and was hoping someone has some insight into the issue.

My python versions are...

  • python 2.7.15
  • pySerial-2.7
  • pywin32-224.win32-py2.7

A majority of the time, the imageprogrammer.py/exe gets stuck at the "get storage list" command and sits there indefinitely.

C:\Users\fbachmann\Documents\Project Batt\CC3x20_Embedded_Programming_2_0_0\sources>python ImageProgramming.py -p 16 -i network_terminal_X1_4_0_8.ucf -e
Image Programming v2.0.0
-----------------------------
This utility programs a binary image to a serial flash connected to CC3120/CC3220 device
Only production devices are supported (i.e. no pre-production devices)
The binary image needs to be prepared in advance using Uniflash utility

Step #1 --> connect to target device
--- please restart the device ---
connection succeeded
get storage list

 


On the rare occasions that I make it past this step, it loses connection during the UART rerouting.

C:\Users\fbachmann\Documents\Project Batt\CC3x20_Embedded_Programming_2_0_0\sources>python ImageProgramming.py -p 16 -i network_terminal_X1_4_0_8.ucf -e
Image Programming v2.0.0
-----------------------------
This utility programs a binary image to a serial flash connected to CC3120/CC3220 device
Only production devices are supported (i.e. no pre-production devices)
The binary image needs to be prepared in advance using Uniflash utility

Step #1 --> connect to target device
--- please restart the device ---
connection succeeded
get storage list
receive storage list

Step #2 --> Reading version info
Reading version info completed

It's a CC3220SF device
Step #3 (CC3220 only) --> Switch UART to NWP core
--- Connection failed trying to reconnect... (1 attempt)
--- Connection failed trying to reconnect... (2 attempt)
--- Connection failed trying to reconnect... (3 attempt)
--- Connection failed trying to reconnect... (4 attempt)
--- error during connecting to device

 

 


Is there anything I should be doing differently?
When asked to restart the device at the beginning of the programmer, I change my SOP[2:0] to 100 and toggle the reset line.

Anything else needed?