Page 1 of 1

Partition question with OTA and SD card config.

Posted: Fri Nov 11, 2022 4:57 pm
by FRANCISCO2020
Hello friends, I have a question about how to configure the esp32 partition correctly.

My scenario:
4mb esp32
Current application of 800/900 kb
Use of SPIFFS 30/40 kb
1Gb SD card

Right now I do an OTA from an ftp server, download it to the SD card and then do the update from the sd to esp32.

Everything is correct and it works.

The question is: do I need to define OTA space in the esp32 partition or is it not necessary since the OTA space is supported by the SD card?

Could I use the Huge APP scheme and be able to continue doing OTA since the swap space is in the SD card?

All the best
Fran

Re: Partition question with OTA and SD card config.

Posted: Tue Nov 15, 2022 10:49 am
by chegewara
You need 2 oat or factory + ota partitions, because you cant update partition which is currently running app.

Re: Partition question with OTA and SD card config.

Posted: Tue Nov 22, 2022 7:50 am
by FRANCISCO2020
Thanks for your answer. Regarding what you say, then I don't see any benefit of doing "ota" on the sd and then transferring the bin to the esp. Is it correct?

Re: Partition question with OTA and SD card config.

Posted: Wed Nov 23, 2022 7:10 am
by ESP_Sprite
You can indeed OTA directly to the inactive partition instead.

Re: Partition question with OTA and SD card config.

Posted: Wed Nov 23, 2022 8:08 am
by FRANCISCO2020
Yes, it refers to a direct update on the esp, it's like I'm doing now, but I thought that using the sd card I could use more program space, using it as a bin swap container. but it seems that you can't and there is no benefit from doing it using the sd card.