Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By GigAHerZ
#42392 Hi all!

I started to wonder, if it's possible to somehow set up a project in a way that it creates different bin files and not all of them are required to be flashed on chip all the time.

Flashing the whole firmware is somewhat slow. At the same time, i usually only change my user code and the firmware is pretty static.

So is it somehow possible to update the make file in a way that i don't always have to flash the whole firmware, when i only change the user code?

Thank you!
User avatar
By GigAHerZ
#42457
xtal wrote:nodeMCU - YES
Arduino - I don't know , but some burners allow sections to be burnt, so maybe?


Well, nodeMCU is interpreting LUA language.

But i'm more interested in pure C/C++ solutions. Not even arduino.
Sections can be burnt separately, it is already done by default to some extent. (0x0000 and 0x4000 if i remember correctly)

Biggest question is how to prepare the code and "make" file so eventually i have separate bin file only for user code (possibly some kind of split of 0x4000 bin file) which can be flashed without other bin files that contain the basic, "static" firmware, that doesn't usually change?