Yes you can, this is the "OTA" feature of the Esp.
In the SDK you have different bootloaders available. The bootloaders for OTA basivally consider the flash is split in two slots (called user1 and user2 by Espressif), and they will run one of the two applications according to a flag set in Eeprom. There even exist others bootloaders on the net like "rboot", that, if I remember, allows even more applications slots.
Each application is standalone and embeds all the library code it needs (no such thing like shared library).
For your question about IRAM, I'm not sure I understand, I would say the compiler/booloader already take care about loading the righ piece of code in IRAM on startup.Statistics: Posted by Pato — Tue Aug 07, 2018 3:21 pm
]]>