How to use BOOTLOADER functions outside of BOOTLOADER

ThomasSt
Posts: 2
Joined: Thu Jun 06, 2024 6:19 am

How to use BOOTLOADER functions outside of BOOTLOADER

Postby ThomasSt » Fri Jun 07, 2024 12:22 pm

Hi all

I want to use Bootloader functions outside of the bootloader, means I want to use the function
bootloader_load_image_no_verify() in another application.

How can I do that?

I found out that I have to define the BOOTLOADER_BUILD macro.
Then I had to fix some linker problems.
Now my application aborts during startup in the do_multicore_settings() function.

ESP_Sprite
Posts: 9727
Joined: Thu Nov 26, 2015 4:08 am

Re: How to use BOOTLOADER functions outside of BOOTLOADER

Postby ESP_Sprite » Sat Jun 08, 2024 1:29 am

You can't. Specifically that function will (iirc) reconfigure the memory mapping, and your application is using that. It probably also wants to reconfigure memory protection, and that's generally locked until a reset. Suggest you reboot the app into the bootloader instead, then add whatever functionality you require to said bootloader.

Who is online

Users browsing this forum: **txf** and 115 guests