memory partition in ESP32 for both ota and spiffs

shiva_esp
Posts: 2
Joined: Thu Dec 20, 2018 4:30 am

memory partition in ESP32 for both ota and spiffs

Postby shiva_esp » Thu Dec 20, 2018 12:58 pm

Hi...
in make menu config--->partition table
either we can select Custom partition table CSV or Factory app, two OTA definitions options.Both we cant select.

But i want to store some data in file and also want to update firmware using OTA.
how can i do this HELP me............

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: memory partition in ESP32 for both ota and spiffs

Postby fly135 » Thu Dec 20, 2018 3:21 pm

Create your own CSV file and select it. Here's an example of factory, OTA and spiffs on an 8MB flash.

# Name, Type, SubType, Offset, Size, Flags
# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
nvs, data, nvs, 0x9000, 0x4000
otadata, data, ota, 0xd000, 0x2000
phy_init, data, phy, 0xf000, 0x1000,
factory, app, factory, 0x10000, 2M,
storage, data, spiffs, , 0xF0000,
ota_0, 0, ota_0, 0x400000, 2M,
ota_1, 0, ota_1, 0x600000, 2M,

amruta
Posts: 18
Joined: Mon Aug 21, 2017 10:03 am

Re: memory partition in ESP32 for both ota and spiffs

Postby amruta » Thu Dec 27, 2018 8:36 am

Hello @fly135

I am using ESP32 4MB flash with both OTA and SPIFFS. Its working as expected.
However, the old application didn't have SPIFFS. So, both partition.bin and application.bin needs to be flashed on device. This is not possible with OTA.
Do you have any solution on how to update partition table over OTA ?

Code: Select all

# Partition table only with OTA feature
# nvs,      data, nvs,     0x9000,  0x4000
# otadata,  data, ota,     0xd000,  0x2000
# phy_init, data, phy,     0xf000,  0x1000
# factory,  app,  factory, 0x10000,  1M
# ota_0,    app,  ota_0,   ,         1M
# ota_1,    app,  ota_1,   ,         1M

# Partition table with both OTA and SPIFFS features
nvs,      data, nvs,     0x9000,  0x4000,
otadata,  data, ota,     0xd000,  0x2000,
phy_init, data, phy,     0xf000,  0x1000,
factory,  app,  ota_0,   0x10000, 1M,
ota_1,    app,  ota_1,   ,        1M,
storage,  data, spiffs,  ,        0xf0000, 


User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: memory partition in ESP32 for both ota and spiffs

Postby fly135 » Thu Dec 27, 2018 7:33 pm

The partitions are not updatable over OTA.

shiva_esp
Posts: 2
Joined: Thu Dec 20, 2018 4:30 am

GPIO gives Multiple Interrupt events for single interrupt ...

Postby shiva_esp » Fri Jan 04, 2019 11:53 am

Hello,
I am using gpio 35 pin has intrupt pin.
Can anyone have idea why I am getting multiple times interrupt event for single interrupt generation.? Push button is used to generate interrupt.
My configurations are as below:
int_type: GPIO_INTR_NEGEDGE,
pull_up: GPIO_PULLUP_ENABLE,
pull_down: GPIO_PULLDOWN_DISABLE.


share me if is thare any code...!

Who is online

Users browsing this forum: MicroController and 115 guests