User Tools

Site Tools


esp:esp8266:open-sdk:flash-nonfota-firmware

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
esp:esp8266:open-sdk:flash-nonfota-firmware [2026/09/21 14:50] – oscaresp:esp8266:open-sdk:flash-nonfota-firmware [2026/09/21 14:52] (current) – [2. Crucial `esp-open-sdk` Compilation & Flashing Quirks] oscar
Line 52: Line 52:
  
 This forces the compiler to build the code assuming a single application image (Non-OTA) rather than splitting it into `user1.bin` and `user2.bin` layout profiles typical of an OTA environment. This forces the compiler to build the code assuming a single application image (Non-OTA) rather than splitting it into `user1.bin` and `user2.bin` layout profiles typical of an OTA environment.
- 
-  
  
 #### The `esptool.py` Flash Size Trick #### The `esptool.py` Flash Size Trick
  
 When flashing an `esp-open-sdk` firmware onto the WEMOS D1 Mini Pro, you must be careful with the `-fs` (flash size) parameter. If you set `-fs 16MB`, the Espressif system configuration files will be expected at the absolute end of the 16MB space (`0xFFC000`), which will cause a **boot loop** (`rf_cal_size` error) because the SDK logic is expecting them at the 4MB mark. When flashing an `esp-open-sdk` firmware onto the WEMOS D1 Mini Pro, you must be careful with the `-fs` (flash size) parameter. If you set `-fs 16MB`, the Espressif system configuration files will be expected at the absolute end of the 16MB space (`0xFFC000`), which will cause a **boot loop** (`rf_cal_size` error) because the SDK logic is expecting them at the 4MB mark.
- 
-  
  
 To successfully flash a Non-OTA open-sdk project on this board, force a 4MB size parameter during upload: To successfully flash a Non-OTA open-sdk project on this board, force a 4MB size parameter during upload:
  
 ```bash ```bash
- 
 esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash \ esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash \
- 
   -fm dio -fs 4MB \   -fm dio -fs 4MB \
- 
   0x00000 eagle.flash.bin \   0x00000 eagle.flash.bin \
- 
   0x10000 eagle.irom0text.bin \   0x10000 eagle.irom0text.bin \
- 
   0x3FC000 esp_init_data_default.bin \   0x3FC000 esp_init_data_default.bin \
- 
   0x3FF000 blank.bin   0x3FF000 blank.bin
- 
 ``` ```
  
esp/esp8266/open-sdk/flash-nonfota-firmware.txt · Last modified: by oscar