I added bluetooth to my code which increased the size of the overall code to ~1.5MB. I need factory, ota_0 and ota_1. Luckily my ESP32 module has 16 MB of flash which we special ordered from Analog Lamb. Other than changing the partition table and setting the flash to 16 MB, what else do I need to do to make the larger code work.
When I flash the ESP, the larger code flashed successfully but it seems that a portion of the code simply does not run. Are there other things that I'd need to adjust in the configuration?
16 MB Flash
Re: 16 MB Flash
If code is properly flashed with new partition table then it will run, if new partition table has not been taken into account (old partition table with too small partitions used) then you should see error message that no bootable partition found.
Now, if new partition table is used then most likely something is wrong in your code, if old partition table is used then please check if you changed it in menuconfig and you have no typo.
Now, if new partition table is used then most likely something is wrong in your code, if old partition table is used then please check if you changed it in menuconfig and you have no typo.
Re: 16 MB Flash
Here is the old partition table for the 4 MB flash:
# Name Type SubType Offset Size Flags
nvs data nvs 0x9000 16k
otadata data ota 0xd000 8k
phy_init data phy 0xf000 4k
factory app factory 0x10000 1280k
ota_0 app ota_0 1280k
ota_1 app ota_1 1280k
coredump data coredump 64k
reserved data 0xfe 128k
and here is the new one:
# Name Type SubType Offset Size Flags
nvs data nvs 0x9000 16k
otadata data ota 0xd000 8k
phy_init data phy 0xf000 4k
factory app factory 0x10000 2048k
ota_0 app ota_0 2048k
ota_1 app ota_1 2048k
coredump data coredump 64k
reserved data 0xfe 128k
Do you see anything wrong with the new one?
# Name Type SubType Offset Size Flags
nvs data nvs 0x9000 16k
otadata data ota 0xd000 8k
phy_init data phy 0xf000 4k
factory app factory 0x10000 1280k
ota_0 app ota_0 1280k
ota_1 app ota_1 1280k
coredump data coredump 64k
reserved data 0xfe 128k
and here is the new one:
# Name Type SubType Offset Size Flags
nvs data nvs 0x9000 16k
otadata data ota 0xd000 8k
phy_init data phy 0xf000 4k
factory app factory 0x10000 2048k
ota_0 app ota_0 2048k
ota_1 app ota_1 2048k
coredump data coredump 64k
reserved data 0xfe 128k
Do you see anything wrong with the new one?
Who is online
Users browsing this forum: sage1234 and 53 guests