espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
13.31k stars 7.35k forks source link

how more partitions #4526

Closed hzhh110 closed 3 years ago

hzhh110 commented 3 years ago

[env:nodemcu-32s] platform = espressif32 ; board = esp32cam board = nodemcu-32s

; board = ttgo-t-watch framework = arduino lib_deps = AliyunMqttArduino,ArduinoJson,NTPClient,ESPiLight,lsatan/SmartRC-CC1101-Driver-Lib @ ^2.5.2 ; lib_deps = AliyunMqttArduino ; lib_deps = 551,64,6100 ; upload_flags = ; --port=3232 build_flags = -D MQTT_MAX_PACKET_SIZE=1024 -D MQTT_KEEPALIVE=60

board_build.partitions = esp32cam2.csv

 Name | Type | SubType | Offset | Size | Flags

-- | -- | -- | -- | -- | -- nvs | data | nvs | 0x9000 | 0x5000 |   otadata | data | ota | 0xe000 | 0x2000 |   app0 | app | ota_0 | 0x10000 | 0x1E0000 |   app1 | app | ota_1 | 0x1F0000 | 0x1E0000 |   spiffs | data | spiffs | 0x3D0000 | 0x30000 |  

if I user

 Name | Type | SubType | Offset | Size | Flags

-- | -- | -- | -- | -- | -- nvs | data | nvs | 0x2000 | 0xc000 |   otadata | data | ota | 0xe000 | 0x2000 |   app0 | app | ota_0 | 0x10000 | 0x1E0000 |   app1 | app | ota_1 | 0x1F0000 | 0x1E0000 |   spiffs | data | spiffs | 0x3D0000 | 0x30000 |  

CSV Error: First partition offset 0x2000 overlaps end of partition table 0x9000

chegewara commented 3 years ago

Partition table ends at offset 0x9000, so you cant put any partition in there.

hzhh110 commented 3 years ago

Can nvs be bigger? How to set it?

chegewara commented 3 years ago

Few ways to do it:

hzhh110 commented 3 years ago

 Name | Type | SubType | Offset | Size | Flags

-- | -- | -- | -- | -- | -- nvs | data | nvs | 0x9000 | 0x10000 |   otadata | data | ota | 0x19000 | 0x2000 |   app0 | app | ota_0 | 0x1b000 | 0x1E0000 |   app1 | app | ota_1 | 0x1Fb000 | 0x1E0000 |   spiffs | data | spiffs | 0x3Db000 | 0x25000 |  

hzhh110 commented 3 years ago

Partition app0 invalid: Offset 0x1b000 is not aligned to 0x10000 Compiling .pio/build/nodemcu-32s/libc6c/Update/Updater.cpp.o Compiling .pio/build/nodemcu-32s/lib7cd/WiFi/ETH.cpp.o *** [.pio/build/nodemcu-32s/partitions.bin] Error 2

chegewara commented 3 years ago

Partition app0 invalid: Offset 0x1b000 is not aligned to 0x10000 app0 offset = 0x20000 or 0x30000 or 0x40000 etc, but try to leave all offsets empty (space).

lbernstone commented 3 years ago

lmgtfy: https://www.google.com/?q=convert+hexadecimal+decimal

stale[bot] commented 3 years ago

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.