Trying to port an application from Arduino to RTOS, I alternate between arduinoespressif8266 and esp8266-rtos-sdk frameworks on my d1_mini.
When esptool is used with the arduinoespressif8266 framework, it clears all the flash memory including the data located at the end of flash memory.
RTOS expects to have _esp_init_datadefault.bin at the end of flash memory (address 0x3fc000 with 4Mb flash size) and won't boot if cleared.
The framework don't upload this file when uploading eagle.flash.bin and eagle.irom0text.bin considering it is static data and won't be erased.
Is there a way in platformio to prevent arduinoespressif8266 framework to erase the end of flash memory or in esp8266-rtos-sdk framework to systematically _upload esp_init_datadefault.bin with the application?
Copied from original issue: platformio/platformio-core#1366
From @freedib on February 15, 2018 4:2
Trying to port an application from Arduino to RTOS, I alternate between arduinoespressif8266 and esp8266-rtos-sdk frameworks on my d1_mini. When esptool is used with the arduinoespressif8266 framework, it clears all the flash memory including the data located at the end of flash memory. RTOS expects to have _esp_init_datadefault.bin at the end of flash memory (address 0x3fc000 with 4Mb flash size) and won't boot if cleared. The framework don't upload this file when uploading eagle.flash.bin and eagle.irom0text.bin considering it is static data and won't be erased. Is there a way in platformio to prevent arduinoespressif8266 framework to erase the end of flash memory or in esp8266-rtos-sdk framework to systematically _upload esp_init_datadefault.bin with the application?
Copied from original issue: platformio/platformio-core#1366