Chat freely about anything...

User avatar
By jonas18175
#89318 Hello Community,

i try to use clion and cmake for my esp projects. It's working with the following great project: https://github.com/a9183756-gh/Arduino-CMake-Toolchain

But I have one problem, i need to upload a data folder - so i check out the internet with few infos about this topic.

I have a ESP-01 with 1MB (512kb Data).

On build i create a SPIFFS Image with following command:
mkspiffs -c data -b 8192 -p 256 -s 524288 spiffs.bin

And I flash it with:
python ${ROOT_DIR}/tools/esptool/esptool.py --chip auto --port ${SERIAL_PORT} --baud 115200 write_flash 0x7B000 spiffs.bin

But every time I get a timeout on flash after is finish:

Code: Select allRunning MKSPIFFS ...
/index.html
Built target MakeSPIFFSImage
Flash Filesystem ...
esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 80:7d:3a:6e:c9:92
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 1MB
Compressed 524288 bytes to 836...
Wrote 524288 bytes (836 compressed) at 0x0007b000 in 0.1 seconds (effective 53635.5 kbit/s)...

A fatal error occurred: Timed out waiting for packet header
make[3]: *** [CMakeFiles/FlashSPIFFSImage.dir/build.make:77: FlashSPIFFSImage] Error 2
make[2]: *** [CMakeFiles/Makefile2:138: CMakeFiles/FlashSPIFFSImage.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:145: CMakeFiles/FlashSPIFFSImage.dir/rule] Error 2
make: *** [Makefile:150: FlashSPIFFSImage] Error 2


Why that? What is wrong? When I flash WLED for example on 0x0 it is working seemless, but it seems it used a other method for the data: https://github.com/Aircoookie/WLED/blob ... s/cdata.js