memory partition in ESP32 for both ota and spiffs
Posted: Thu Dec 20, 2018 12:58 pm
by shiva_esp
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............
Re: memory partition in ESP32 for both ota and spiffs
Posted: Thu Dec 20, 2018 3:21 pm
by fly135
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,
Re: memory partition in ESP32 for both ota and spiffs
Posted: Thu Dec 27, 2018 8:36 am
by amruta
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,
Re: memory partition in ESP32 for both ota and spiffs
Posted: Thu Dec 27, 2018 7:33 pm
by fly135
The partitions are not updatable over OTA.
GPIO gives Multiple Interrupt events for single interrupt ...
Posted: Fri Jan 04, 2019 11:53 am
by shiva_esp
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...!