Select which partition to boot

dhs2017
Posts: 40
Joined: Thu Mar 30, 2017 8:56 am

Select which partition to boot

Postby dhs2017 » Mon Nov 06, 2017 10:10 am

Let's say if I have two partition with two programs,

I want to choose which partition to boot based on a GPIO status during power up, can I do that?

kurtzweber
Posts: 64
Joined: Tue Jan 10, 2017 1:09 pm

Re: Select which partition to boot

Postby kurtzweber » Mon Nov 06, 2017 1:51 pm

Hi

The default bootloader has its own "logic":
http://esp-idf.readthedocs.io/en/latest ... ables.html

but you can develop a custom bootloader, give a look to the source code for the default one:
https://github.com/espressif/esp-idf/bl ... er_start.c

dhs2017
Posts: 40
Joined: Thu Mar 30, 2017 8:56 am

Re: Select which partition to boot

Postby dhs2017 » Wed Nov 08, 2017 12:58 am

kurtzweber wrote:Hi

The default bootloader has its own "logic":
http://esp-idf.readthedocs.io/en/latest ... ables.html

but you can develop a custom bootloader, give a look to the source code for the default one:
https://github.com/espressif/esp-idf/bl ... er_start.c
It seems it's a little complicate for me, I used the NVS and GPIO to set the boot routine finally.

Who is online

Users browsing this forum: No registered users and 94 guests