Partition question with OTA and SD card config.

FRANCISCO2020
Posts: 21
Joined: Mon Sep 20, 2021 9:13 am

Partition question with OTA and SD card config.

Postby FRANCISCO2020 » Fri Nov 11, 2022 4:57 pm

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

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: Partition question with OTA and SD card config.

Postby chegewara » Tue Nov 15, 2022 10:49 am

You need 2 oat or factory + ota partitions, because you cant update partition which is currently running app.

FRANCISCO2020
Posts: 21
Joined: Mon Sep 20, 2021 9:13 am

Re: Partition question with OTA and SD card config.

Postby FRANCISCO2020 » Tue Nov 22, 2022 7:50 am

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?

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

Re: Partition question with OTA and SD card config.

Postby ESP_Sprite » Wed Nov 23, 2022 7:10 am

You can indeed OTA directly to the inactive partition instead.

FRANCISCO2020
Posts: 21
Joined: Mon Sep 20, 2021 9:13 am

Re: Partition question with OTA and SD card config.

Postby FRANCISCO2020 » Wed Nov 23, 2022 8:08 am

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.

Who is online

Users browsing this forum: No registered users and 52 guests