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