Page 1 of 1

Select which partition to boot

Posted: Mon Nov 06, 2017 10:10 am
by dhs2017
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?

Re: Select which partition to boot

Posted: Mon Nov 06, 2017 1:51 pm
by kurtzweber
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

Re: Select which partition to boot

Posted: Wed Nov 08, 2017 12:58 am
by dhs2017
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.