multiple App binaries

User avatar
shyam@saiagrotel.in
Posts: 2
Joined: Fri Oct 06, 2023 6:03 am

multiple App binaries

Postby shyam@saiagrotel.in » Fri Oct 06, 2023 6:20 am

  1. Hello Friends.
  2.  The devices I am using for below problem statements are:
  3. ESP32 16MB WROOM32
  4. ESP32S3 16MB WROOM
  5. I want to keep two Binaries , let us say App1.bin and App2.bin in application area.
  6.  
  7. So the primary bootloader jumps to  App1.bin by default.
  8.  
  9. The App1.bin logic then at a particular condition lets suppose on a GPIO press should then jump to App2.bin.
  10.  
  11. 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).
  12.  
  13. I have written such application on different MCU's but am short of ideas for ESP32.
  14.  
  15.  
  16.  
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!

MicroController
Posts: 1707
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: multiple App binaries

Postby MicroController » Fri Oct 06, 2023 5:40 pm

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

User avatar
shyam@saiagrotel.in
Posts: 2
Joined: Fri Oct 06, 2023 6:03 am

Re: multiple App binaries

Postby shyam@saiagrotel.in » Wed Oct 18, 2023 6:21 am

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?

Who is online

Users browsing this forum: Google [Bot] and 100 guests