Bootloader service

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MiEl_3261856
Level 2
Level 2
First like given

In the OTA example the Bootloader service is disabled by default, and it is necessary to use the SW2 button.

How can I change this service to be always enabled or maybe change the trigger to something else so I do

not have to use any physical buttons to perform the OTA.

Thanks

0 Likes
1 Solution
Anonymous
Not applicable

You should be able to modify either the bootloader or the code in the application to either have the bootloader service always available, or to immediately enable it upon bootup/new image boot.

View solution in original post

0 Likes
3 Replies
Anonymous
Not applicable

In the example, the button triggers the bootloader with an interrupt, change the code to call the code in the interrupt when you want to switch to bootloader mode. (IIRC it is using an ISR to trigger from the button, and changing the ISR to be fired by something else should work).

0 Likes

And if I want that the bootloader service will be Always enable?

0 Likes
Anonymous
Not applicable

You should be able to modify either the bootloader or the code in the application to either have the bootloader service always available, or to immediately enable it upon bootup/new image boot.

0 Likes