It throws following error (This may not be relevant as I have a jumper wires going from external programmer to esp32 module, it could very well be the noise as suggested)
A fatal error occurred: Invalid head of packet (0x16): Possible serial noise or corruption.
Comparison to a build from platform.io
When I build the image using platform.io the binary looks almost identical with same size and when I list files using mkspiffs -l I see same list of files and same file sizes listed. I have tried building clean and uploading to wiped flash multiple times with both and the image built with mkspiffs consistantly fail to work, and built with PIO works fine. I know PIO is using mkspiffs in the background too so I just dont understand why this is not working.
When I mkspiffs -i it shows some difference between two images
I was able to create an image from a directory using
When I upload the image with esptools, It uploads fine. But the device fails to read from flash.
When I try read_flash using
It throws following error (This may not be relevant as I have a jumper wires going from external programmer to esp32 module, it could very well be the noise as suggested)
Comparison to a build from platform.io
When I build the image using platform.io the binary looks almost identical with same size and when I list files using
mkspiffs -l
I see same list of files and same file sizes listed. I have tried building clean and uploading to wiped flash multiple times with both and the image built with mkspiffs consistantly fail to work, and built with PIO works fine. I know PIO is using mkspiffs in the background too so I just dont understand why this is not working.When I
mkspiffs -i
it shows some difference between two imagesmkspiffs -i broken.bin (built with mkspiffs)
mkspiffs -i ok.bin (built with platformio)
Additional info
platform = espressif32 board = esp32dev framework = arduino board_build.partitions = no_ota.csv
MacOS Ventura 13.6 M1 ARM64
Built mkspiffs from latest master f2482965703b9b4031a5d4797bfd7458016bf3d2