Can't find Factory partition

Hicham
Posts: 8
Joined: Sun Feb 21, 2021 12:31 am

Can't find Factory partition

Postby Hicham » Fri Mar 05, 2021 2:58 pm

Hello guys, i am trying to find the APP factory partition but with out succes,
i got always NULL return partition not found

when i try to search the OTA partition i can find it .

Here its my Code in loup function

any help, thank you

Here its my Code in loup function

Code: Select all

  Serial.println("searching for partition");
  esp_partition_iterator_t pi = esp_partition_find(ESP_PARTITION_TYPE_APP,ESP_PARTITION_SUBTYPE_APP_FACTORY,NULL); // searching for the factory partition
  if(pi !=NULL)
  Serial.println("Partition Found");
  else Serial.println("Partition not found");
  delay(5000);

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

Re: Can't find Factory partition

Postby chegewara » Fri Mar 05, 2021 3:47 pm

Probably because arduino partition tables are without factory partition:
https://github.com/espressif/arduino-es ... partitions

Hicham
Posts: 8
Joined: Sun Feb 21, 2021 12:31 am

Re: Can't find Factory partition

Postby Hicham » Fri Mar 05, 2021 5:14 pm

chegewara wrote:
Fri Mar 05, 2021 3:47 pm
Probably because arduino partition tables are without factory partition:
https://github.com/espressif/arduino-es ... partitions
Yes thank you, i think this is the probelm, factory partition does not exist in the arduini partition

Who is online

Users browsing this forum: No registered users and 345 guests