multiple App binaries
Posted: Fri Oct 06, 2023 6:20 am
by shyam@saiagrotel.in
Hello Friends.
The devices I am using for below problem statements are:
ESP32 16MB WROOM32
ESP32S3 16MB WROOM
I want to keep two Binaries , let us say App1.bin and App2.bin in application area.
So the primary bootloader jumps to App1.bin by default.
The App1.bin logic then at a particular condition lets suppose on a GPIO press should then jump to App2.bin.
At a further place in time, I would like to do a Fota only on App2.bin location , so in a way App1.bin acts as a secondary bootloader running on top of the primary bootloader(that comes by default with ESP32).
I have written such application on different MCU's but am short of ideas for ESP32.
I would really appreciate any help or guidance offered by you.
Thanks.
Please let me know if I need to frame/post the question in a different format, as I am new to this group.
Thanks again!
Re: multiple App binaries
Posted: Fri Oct 06, 2023 5:40 pm
by MicroController
In fact, a normal ESP application already includes a second-stage bootloader. And you can modify or replace the default second-stage bootloader to your needs:
https://docs.espressif.com/projects/esp ... bootloader
Re: multiple App binaries
Posted: Wed Oct 18, 2023 6:21 am
by shyam@saiagrotel.in
Thank you for your help!
I had the following information:
The development of the BootLoader is very limited, you cannot use operating system related components such as freertos, and heap manager features such as malloc, etc. so it is not recommended that you add too many features to the BootLoader.
But I really want to use a few extra components and Frrertos API's in my secondary botloader.
Can I Still use it?