Broken FAT: overlapping entry at block

Sorry, I was so caught up in the topic that everything was clear to me, but nobody else has all the information to help.

I have followed the instructions Teddycloud CC3200 newbie guide and am at the ‘Create backup’ step.

My setup is as follows:

After connecting the box to the UART connector and the computer, additionally connect the charger to the Toniebox, green LED lights up continuously, then send the command

cc3200tool -p /dev/ttyUSB0 --reset dtr read_all_files ExtractedFromBox/ read_flash backup.bin

executed.

Now I get the error ‘broken FAT’ like @mr_white. This error occurs on both Windows and Linux.

2025-01-21 23:16:12,551 -- Connecting to target...
2025-01-21 23:16:14,916 -- timed out while waiting for ack
2025-01-21 23:16:15,186 -- Connected, reading version...
2025-01-21 23:16:15,201 -- connected to target
2025-01-21 23:16:15,201 -- Version: CC3x00VersionInfo((0, 4, 1, 2), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (16, 0, 0, 0))
2025-01-21 23:16:15,202 -- This is a CC3200 device
2025-01-21 23:16:15,203 -- Switching to NWP bootloader...
2025-01-21 23:16:15,217 -- Switching UART to APPS...
2025-01-21 23:16:15,231 -- Resetting communications ...
2025-01-21 23:16:16,509 -- Uploading rbtl3100s.dll...
2025-01-21 23:16:16,514 -- Reading rbtl3100s.dll from file /home/pi/.venv/lib/python3.11/site-packages/cc3200tool/dll/rbtl3100s.dll
2025-01-21 23:16:16,519 -- Getting storage list...
2025-01-21 23:16:17,419 -- 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-21 23:16:17,419 -- Getting storage info...
2025-01-21 23:16:17,436 -- storage #2 info bytes: 0x10, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0
2025-01-21 23:16:17,436 -- Getting storage list...
2025-01-21 23:16:17,452 -- Reading raw storage #2 start 0x0, size 0x2000...
..
2025-01-21 23:16:17,582 -- [0] detected a valid FAT revision: 72
2025-01-21 23:16:17,582 -- [1] detected a valid FAT revision: 71
2025-01-21 23:16:17,583 -- Getting storage list...
2025-01-21 23:16:17,597 -- Reading raw storage #2 start 0x1774, size 0x2774...
...
2025-01-21 23:16:17,765 -- selected FAT revision: 72 (active)
2025-01-21 23:16:17,768 -- [0] block 71..87 fname=/sys/mcuimg.bin
2025-01-21 23:16:17,768 -- [4] block 105..106 fname=/sys/mcubootinfo.bin
2025-01-21 23:16:17,769 -- [6] block 106..212 fname=/sys/mcuimg1.bin
2025-01-21 23:16:17,769 -- [7] block 212..265 fname=/sys/mcuimg2.bin
2025-01-21 23:16:17,769 -- [8] block 265..318 fname=/sys/mcuimg3.bin
2025-01-21 23:16:17,770 -- [9] block 408..418 fname=/tmp/phy.cal
2025-01-21 23:16:17,770 -- [10] block 418..420 fname=/tmp/table.arp
2025-01-21 23:16:17,770 -- [11] block 5..71 fname=/sys/servicepack.ucf
2025-01-21 23:16:17,771 -- [12] block 87..89 fname=/sys/mode.cfg
2025-01-21 23:16:17,771 -- [13] block 89..91 fname=/sys/ipcfg.ini
2025-01-21 23:16:17,772 -- [14] block 91..93 fname=/sys/ap.cfg
2025-01-21 23:16:17,772 -- [15] block 93..95 fname=/sys/devname.cfg
2025-01-21 23:16:17,772 -- [16] block 95..97 fname=/sys/mdns.cfg
2025-01-21 23:16:17,772 -- [17] block 97..101 fname=/sys/pref.net
2025-01-21 23:16:17,773 -- [18] block 101..103 fname=/sys/stacfg.ini
2025-01-21 23:16:17,773 -- [19] block 103..105 fname=/sys/pmcfg.ini
2025-01-21 23:16:17,773 -- [20] block 318..398 fname=/www/index.html
2025-01-21 23:16:17,774 -- [21] block 398..406 fname=/www/toniebox.js
2025-01-21 23:16:17,774 -- [22] block 406..408 fname=/cert/ca.der
2025-01-21 23:16:17,774 -- [23] block 931..933 fname=/sys/otastat.txt
2025-01-21 23:16:17,775 -- [24] block 421..931 fname=/fw/sfx.bin
2025-01-21 23:16:17,775 -- [26] block 933..935 fname=/sys/date_time.cfg
2025-01-21 23:16:17,775 -- [27] block 935..937 fname=/settings.cfg
2025-01-21 23:16:17,776 -- [28] block 420..421 fname=/cert/client.der
2025-01-21 23:16:17,776 -- [29] block 937..938 fname=/cert/private.der
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 1580, in main
    cc.read_all_files(command.local_dir, command.by_file_id, command.all_by_file_id, command.inactive, command.no_verify)
  File "/home/pi/.venv/lib/python3.11/site-packages/cc3200tool/cc.py", line 1336, in read_all_files
    fat_info = self.get_fat_info(inactive=inactive)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/.venv/lib/python3.11/site-packages/cc3200tool/cc.py", line 1319, in get_fat_info
    fat_info = CC3x00SffsInfo(fat_hdr, sinfo, meta2, self._device)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/.venv/lib/python3.11/site-packages/cc3200tool/cc.py", line 603, in __init__
    raise CC3200Error("broken FAT: overlapping entry at block %d (prev end was %d)" %
cc3200tool.cc.CC3200Error: broken FAT: overlapping entry at block 256 (prev end was 265)

If I add the parameter ‘–size 4194304 --ignore-max-size’ I get this error:

usage: cc3200tool [-h] [-p PORT] [-if IMAGE_FILE] [-of OUTPUT_FILE] [--reset RESET] [--sop2 SOP2] [--erase_timeout ERASE_TIMEOUT] [--reboot-to-app]
                  [-d DEVICE]
                  {format_flash,erase_file,write_file,read_file,write_flash,read_flash,list_filesystem,read_all_files,write_all_files,dll_data_test} ...
cc3200tool: error: argument cmd: invalid choice: '4194304' (choose from 'format_flash', 'erase_file', 'write_file', 'read_file', 'write_flash', 'read_flash', 'list_filesystem', 'read_all_files', 'write_all_files', 'dll_data_test')

In the meantime, I have reassembled the box, but it does not start correctly, the green LED flashes a few times, then only individually at longer intervals, and no sound is played.

I hope the box can be given new life again.

I have another Toniebox at home, with a CC3235 chipset, and the procedure was somehow easier there.

Kind regards
Daniel