How to flash the hole backup.bin or Backup back?

Hey Guys,

Sry for my bad english, but I hope you can help me :slight_smile:

I just play around with a testboard and now wants to flash the hole flash dump ( backup.bin) back to the chip. I tried it with extracting the dump and than flash_all_files - getting the following error:
Traceback (most recent call last):
File “/usr/local/bin/cc3200tool”, line 33, in
sys.exit(load_entry_point(‘cc3200tool==1.2.3’, ‘console_scripts’, ‘cc3200tool’)())
File “/Users/julian/Library/Python/3.9/lib/python/site-packages/cc3200tool/cc.py”, line 1573, in main
cc.write_all_files(command.local_dir, command.simulate, use_api, command.no_verify)
File “/Users/julian/Library/Python/3.9/lib/python/site-packages/cc3200tool/cc.py”, line 1389, in write_all_files
self.write_file(local_file=open(filepath, ‘rb’, -1), cc_filename=ccpath, use_api=use_api)
File “/Users/julian/Library/Python/3.9/lib/python/site-packages/cc3200tool/cc.py”, line 1109, in write_file
return self._write_file_api(local_file, cc_filename, sign_data, fs_flags, size, file_data, file_len)
File “/Users/julian/Library/Python/3.9/lib/python/site-packages/cc3200tool/cc.py”, line 1172, in _write_file_api
self._open_file_for_write(cc_filename, alloc_size, fs_flags)
File “/Users/julian/Library/Python/3.9/lib/python/site-packages/cc3200tool/cc.py”, line 971, in _open_file_for_write
return self._open_file(filename, flags)
File “/Users/julian/Library/Python/3.9/lib/python/site-packages/cc3200tool/cc.py”, line 979, in _open_file
self._send_packet(command)
File “/Users/julian/Library/Python/3.9/lib/python/site-packages/cc3200tool/cc.py”, line 775, in _send_packet
raise CC3200Error(
cc3200tool.cc.CC3200Error: No ack for packet opcode=0x21

I figured out, that the servicepack.ucf in sys is the problem - without it I can flash all the files…the box comes up with normal green light an than is only blinking red - by pressing one of the ears you can hear, that the volume changed.

Is there a way to flash the hole backup.bin?

regards
GreyExe

You cannot flash a file based backup to restore a box, as it is incomplete.

Please use the write_flash command

thanks for your feedback @0xbadbee

doesn´t work for me:

cc3200tool --reset dtr -p /dev/tty.usbserial-A50285BI write_flash backup.bin
2024-11-18 17:03:34,445 – Connecting to target…
2024-11-18 17:03:36,962 – timed out while waiting for ack
2024-11-18 17:03:37,374 – Connected, reading version…
2024-11-18 17:03:37,389 – connected to target
2024-11-18 17:03:37,389 – Version: CC3x00VersionInfo((0, 4, 1, 2), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (16, 0, 0, 0))
2024-11-18 17:03:37,390 – This is a CC3200 device
2024-11-18 17:03:37,390 – Switching to NWP bootloader…
2024-11-18 17:03:37,405 – Switching UART to APPS…
2024-11-18 17:03:37,421 – Resetting communications …
2024-11-18 17:03:38,845 – Uploading rbtl3100s.dll…
2024-11-18 17:03:38,846 – Getting storage list…
2024-11-18 17:03:39,596 – APPS version: CC3x00VersionInfo((0, 4, 0, 2), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (16, 0, 0, 0))
2024-11-18 17:05:39,607 – timed out while waiting for ack
Traceback (most recent call last):
File “/usr/local/bin/cc3200tool”, line 33, in
sys.exit(load_entry_point(‘cc3200tool==1.2.3’, ‘console_scripts’, ‘cc3200tool’)())
File “/Users/julian/Library/Python/3.9/lib/python/site-packages/cc3200tool/cc.py”, line 1531, in main
cc.write_flash(command.gang_image_file, not command.no_erase)
File “/Users/julian/Library/Python/3.9/lib/python/site-packages/cc3200tool/cc.py”, line 1237, in write_flash
self._erase_blocks(0, count, storage_id=STORAGE_ID_SFLASH)
File “/Users/julian/Library/Python/3.9/lib/python/site-packages/cc3200tool/cc.py”, line 842, in _erase_blocks
self._send_packet(command, timeout=self._erase_timeout)
File “/Users/julian/Library/Python/3.9/lib/python/site-packages/cc3200tool/cc.py”, line 775, in _send_packet
raise CC3200Error(
cc3200tool.cc.CC3200Error: No ack for packet opcode=0x30

–reset dtr --sop2 rts write_flash backup.bin fix it for me

Hey,
i just tried to flash the revvox preloader/bootloader and so on, but something went wrong.
Now i want to flash the original Bootloader back. I used ur command and made some adjustments. May this work?

cc3200tool COM5 --reset dtr --sop2 rts write_flash backup.bin

Best regards,
Sebastian

Update:*´
i used cc3200tool -p COM5 --reset dtr write_flash backup.bin to flash, but it stops after some time with

C:\Users\nebut>cc3200tool -p COM5 --reset dtr write_flash backup.bin
2025-06-27 13:43:12,142 – Connecting to target…
2025-06-27 13:43:14,452 – timed out while waiting for ack
2025-06-27 13:43:14,658 – Connected, reading version…
2025-06-27 13:43:14,671 – connected to target
2025-06-27 13:43:14,671 – Version: CC3x00VersionInfo((0, 4, 1, 2), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (16, 0, 0, 0))
2025-06-27 13:43:14,672 – This is a CC3200 device
2025-06-27 13:43:14,672 – Switching to NWP bootloader…
2025-06-27 13:43:14,686 – Switching UART to APPS…
2025-06-27 13:43:14,701 – Resetting communications …
2025-06-27 13:43:15,918 – Uploading rbtl3100s.dll…
2025-06-27 13:43:15,919 – Reading rbtl3100s.dll from file C:\Users\nebut\AppData\Local\Programs\Python\Python313\Lib\site-packages\cc3200tool\dll\rbtl3100s.dll
2025-06-27 13:43:15,920 – Getting storage list…
2025-06-27 13:43:16,653 – APPS version: CC3x00VersionInfo((0, 4, 0, 2), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (16, 0, 0, 0))
2025-06-27 13:44:26,756 – Getting storage list…
2025-06-27 13:45:32,547 – Getting storage list…
2025-06-27 13:45:32,579 – Verify flash write by reading…
2025-06-27 13:45:32,581 – Getting storage list…
2025-06-27 13:45:32,598 – Getting storage info…
2025-06-27 13:45:32,611 – storage #2 info bytes: 0x10, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0
2025-06-27 13:45:32,612 – Setting raw read size to maximum: 1048576
2025-06-27 13:45:32,612 – Reading raw storage #2 start 0x0, size 0x100000…
…
2025-06-27 13:45:49,216 – Flash could not be verified, please flash again!

Sounds like unstable connection.