DFU SPIFFS issue
Posted: Sun Jan 09, 2022 3:31 pm
Hello Everyone,
i'm using a ESP32S2-WROOM module with 4MB(32Mb) flash on my custom board. I can flash through native USB with DFU. (idf.py dfu and dfu-flash commands)
My partition table looks like this (copy from flasher_args.json):
"flash_files" : {
"0x1000" : "bootloader/bootloader.bin",
"0x10000" : "MBComm.bin",
"0x8000" : "partition_table/partition-table.bin",
"0xd000" : "ota_data_initial.bin",
"0x210000" : "storage.bin"
},
After the flashing, the application is running good but the SPIFFS section can't mount and I got the error.
I dump the full 4MB flash through UART0 with esptool.py dump_memory and I saw from 0x210000 just 0xFF.
So my storage.bin file didn't write to flash but in the merged dfu.bin I see the storage.bin content but not the right address. I think that the dfu solve this inside.
When I upload my project with esptool.py through UART0 the flash section will be written with the valid SPIFFS section data.
I uploaded my full build directory (link under). Can everyone help me? What is the problem with the DFU? Has it a file limit for flash? I don't think so.
https://ufile.io/7q0hkb28 <-- my build dir.
I use the latest master IDF:
Commit: 9f303290d8cb77c932efdaed889ce67ff58b6dea [9f30329]
Parents: 7d43be9675, 1056a7da64
Author: morris <maoshengrong@espressif.com>
Date: 2022. január 8., szombat 6:34:27
Committer: morris
Thanks,
Tamas
i'm using a ESP32S2-WROOM module with 4MB(32Mb) flash on my custom board. I can flash through native USB with DFU. (idf.py dfu and dfu-flash commands)
My partition table looks like this (copy from flasher_args.json):
"flash_files" : {
"0x1000" : "bootloader/bootloader.bin",
"0x10000" : "MBComm.bin",
"0x8000" : "partition_table/partition-table.bin",
"0xd000" : "ota_data_initial.bin",
"0x210000" : "storage.bin"
},
After the flashing, the application is running good but the SPIFFS section can't mount and I got the error.
I dump the full 4MB flash through UART0 with esptool.py dump_memory and I saw from 0x210000 just 0xFF.
So my storage.bin file didn't write to flash but in the merged dfu.bin I see the storage.bin content but not the right address. I think that the dfu solve this inside.
When I upload my project with esptool.py through UART0 the flash section will be written with the valid SPIFFS section data.
I uploaded my full build directory (link under). Can everyone help me? What is the problem with the DFU? Has it a file limit for flash? I don't think so.
https://ufile.io/7q0hkb28 <-- my build dir.
I use the latest master IDF:
Commit: 9f303290d8cb77c932efdaed889ce67ff58b6dea [9f30329]
Parents: 7d43be9675, 1056a7da64
Author: morris <maoshengrong@espressif.com>
Date: 2022. január 8., szombat 6:34:27
Committer: morris
Thanks,
Tamas