cc3200tool -p /dev/ttyUSB0 --reset dtr read_flash backup.bin --size 4194304 --ignore-max-size 4194304
2025-01-22 08:35:06,156 -- Connecting to target...
2025-01-22 08:35:08,548 -- timed out while waiting for ack
2025-01-22 08:35:08,818 -- Connected, reading version...
2025-01-22 08:35:08,826 -- connected to target
2025-01-22 08:35:08,827 -- Version: CC3x00VersionInfo((0, 4, 1, 2), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (16, 0, 0, 0))
2025-01-22 08:35:08,828 -- This is a CC3200 device
2025-01-22 08:35:08,828 -- Switching to NWP bootloader...
2025-01-22 08:35:08,843 -- Switching UART to APPS...
2025-01-22 08:35:08,858 -- Resetting communications ...
2025-01-22 08:35:10,135 -- Uploading rbtl3100s.dll...
2025-01-22 08:35:10,137 -- Reading rbtl3100s.dll from file /home/pi/.venv/lib/python3.11/site-packages/cc3200tool/dll/rbtl3100s.dll
2025-01-22 08:35:10,143 -- Getting storage list...
2025-01-22 08:35:11,029 -- APPS version: CC3x00VersionInfo((0, 4, 0, 2), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (16, 0, 0, 0))
2025-01-22 08:35:11,029 -- Getting storage list...
2025-01-22 08:35:11,045 -- Getting storage info...
2025-01-22 08:35:11,062 -- storage #2 info bytes: 0x10, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0
2025-01-22 08:35:11,063 -- Ignoring storage size limits
2025-01-22 08:35:11,063 -- Reading raw storage #2 start 0x0, size 0x400000...
......Traceback (most recent call last):
File "/home/pi/.venv/bin/cc3200tool", line 33, in <module>
sys.exit(load_entry_point('cc3200tool==1.2.4', 'console_scripts', 'cc3200tool')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.venv/lib/python3.11/site-packages/cc3200tool/cc.py", line 1560, in main
cc.read_flash(command.dump_file, command.offset, command.size, command.ignore_max_size)
File "/home/pi/.venv/lib/python3.11/site-packages/cc3200tool/cc.py", line 1257, in read_flash
data = self._raw_read(offset, size, storage_id=STORAGE_ID_SFLASH, ignore_max_size=ignore_max_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.venv/lib/python3.11/site-packages/cc3200tool/cc.py", line 934, in _raw_read
rx_data += self._read_chunk(offset + len(rx_data),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.venv/lib/python3.11/site-packages/cc3200tool/cc.py", line 892, in _read_chunk
data = self._read_packet()
^^^^^^^^^^^^^^^^^^^
File "/home/pi/.venv/lib/python3.11/site-packages/cc3200tool/cc.py", line 777, in _read_packet
raise CC3200Error("rx csum failed")
cc3200tool.cc.CC3200Error: rx csum failed
I tried several times and on the fifth attempt it worked - very strange.
cc3200tool -p /dev/ttyUSB0 --reset dtr read_flash backup.bin --size 4194304 --ignore-max-size 4194304
2025-01-22 08:40:17,504 -- Connecting to target...
2025-01-22 08:40:19,876 -- timed out while waiting for ack
2025-01-22 08:40:20,146 -- Connected, reading version...
2025-01-22 08:40:20,153 -- connected to target
2025-01-22 08:40:20,154 -- Version: CC3x00VersionInfo((0, 4, 1, 2), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (16, 0, 0, 0))
2025-01-22 08:40:20,154 -- This is a CC3200 device
2025-01-22 08:40:20,154 -- Switching to NWP bootloader...
2025-01-22 08:40:20,170 -- Switching UART to APPS...
2025-01-22 08:40:20,184 -- Resetting communications ...
2025-01-22 08:40:21,462 -- Uploading rbtl3100s.dll...
2025-01-22 08:40:21,463 -- Reading rbtl3100s.dll from file /home/pi/.venv/lib/python3.11/site-packages/cc3200tool/dll/rbtl3100s.dll
2025-01-22 08:40:21,463 -- Getting storage list...
2025-01-22 08:40:22,372 -- APPS version: CC3x00VersionInfo((0, 4, 0, 2), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (16, 0, 0, 0))
2025-01-22 08:40:22,373 -- Getting storage list...
2025-01-22 08:40:22,389 -- Getting storage info...
2025-01-22 08:40:22,405 -- storage #2 info bytes: 0x10, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0
2025-01-22 08:40:22,406 -- Ignoring storage size limits
2025-01-22 08:40:22,406 -- Reading raw storage #2 start 0x0, size 0x400000...
................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
2025-01-22 08:41:35,952 -- Verify flash dump with second reading...
2025-01-22 08:41:35,954 -- Getting storage list...
2025-01-22 08:41:35,967 -- Getting storage info...
2025-01-22 08:41:35,982 -- storage #2 info bytes: 0x10, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0
2025-01-22 08:41:35,983 -- Ignoring storage size limits
2025-01-22 08:41:35,983 -- Reading raw storage #2 start 0x0, size 0x400000...
................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
2025-01-22 08:42:44,493 -- Flash verified, reading equal!
2025-01-22 08:42:44,494 -- All commands done, bye.
but a problem rarely comes alone…
cc3200tool -p /dev/ttyUSB0 --reset dtr write_file extract/sys/mcuimg.bin /sys/pre-img.bin
2025-01-22 09:27:50,828 -- Connecting to target...
2025-01-22 09:27:53,220 -- timed out while waiting for ack
2025-01-22 09:27:53,490 -- Connected, reading version...
2025-01-22 09:27:53,493 -- connected to target
2025-01-22 09:27:53,494 -- Version: CC3x00VersionInfo((0, 4, 1, 2), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (16, 0, 0, 0))
2025-01-22 09:27:53,494 -- This is a CC3200 device
2025-01-22 09:27:53,495 -- Switching to NWP bootloader...
2025-01-22 09:27:53,508 -- Switching UART to APPS...
2025-01-22 09:27:53,524 -- Resetting communications ...
2025-01-22 09:27:54,817 -- Uploading rbtl3100s.dll...
2025-01-22 09:27:54,818 -- Reading rbtl3100s.dll from file /home/pi/.venv/lib/python3.11/site-packages/cc3200tool/dll/rbtl3100s.dll
2025-01-22 09:27:54,818 -- Getting storage list...
2025-01-22 09:27:55,728 -- APPS version: CC3x00VersionInfo((0, 4, 0, 2), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (16, 0, 0, 0))
2025-01-22 09:27:55,745 -- Uploading file extract/sys/mcuimg.bin -> /sys/pre-img.bin [20956, disk=20956]...
2025-01-22 09:28:00,765 -- timed out while waiting for ack
Traceback (most recent call last):
File "/home/pi/.venv/bin/cc3200tool", line 33, in <module>
sys.exit(load_entry_point('cc3200tool==1.2.4', 'console_scripts', 'cc3200tool')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.venv/lib/python3.11/site-packages/cc3200tool/cc.py", line 1505, in main
cc.write_file(command.local_file, command.cc_filename, command.file_id,
File "/home/pi/.venv/lib/python3.11/site-packages/cc3200tool/cc.py", line 1123, in write_file
return self._write_file_api(local_file, cc_filename, sign_data, fs_flags, size, file_data, file_len)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.venv/lib/python3.11/site-packages/cc3200tool/cc.py", line 1186, in _write_file_api
self._open_file_for_write(cc_filename, alloc_size, fs_flags)
File "/home/pi/.venv/lib/python3.11/site-packages/cc3200tool/cc.py", line 985, in _open_file_for_write
return self._open_file(filename, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.venv/lib/python3.11/site-packages/cc3200tool/cc.py", line 993, in _open_file
self._send_packet(command)
File "/home/pi/.venv/lib/python3.11/site-packages/cc3200tool/cc.py", line 789, in _send_packet
raise CC3200Error(
cc3200tool.cc.CC3200Error: No ack for packet opcode=0x21
Is it possible that I am using a broken / incorrectly set up cc3200tool version? I have been using the tool since I modified a CC3235 box.