16MB flash custom firmware problem
Posted: Tue Jul 05, 2022 3:02 pm
I had built firmware for esp32 16Mb flash memory with a custom partition, as mentioned below.
There are no error messages during building or flashing the firmware, but on Thonny IDE it is showing storage space of 1.9MB instead of 14Mb.
If I use the partition other than the one mentioned above it either gives the following error at boot
Or it prints the following statement on shell in a loop in Thonny.
I used the following links to build the firmware
https://github.com/micropython/micropyt ... of-content
https://stackoverflow.com/questions/674 ... 2#69277852
Can you suggest to me what I am doing wrong? Why after increasing the Factory (App) partition, it is still showing 1.9Mb on Thonny?
Code: Select all
# Notes: the offset of the partition table itself is set in
# $IDF_PATH/components/partition_table/Kconfig.projbuild.
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x6000,
phy_init, data, phy, 0xf000, 0x1000,
factory, app, factory, 0x10000, 0xE00000,
vfs, data, fat, 0xE10000, 0x1F0000,
There are no error messages during building or flashing the firmware, but on Thonny IDE it is showing storage space of 1.9MB instead of 14Mb.
If I use the partition other than the one mentioned above it either gives the following error at boot
Code: Select all
Performing initial setup
Traceback (most recent call last):
File "_boot.py", line 11, in <module>
File "inisetup.py", line 36, in setup
OSError: (-258, 'ESP_ERR_INVALID_ARG'
Code: Select all
The filesystem appears to be corrupted. If you had important data there, you may want to make a flash snapshot to try to recover it. Otherwise, perform factory reprogramming of MicroPython firmware (completely erase flash, followed by firmware programming).
https://github.com/micropython/micropyt ... of-content
https://stackoverflow.com/questions/674 ... 2#69277852
Can you suggest to me what I am doing wrong? Why after increasing the Factory (App) partition, it is still showing 1.9Mb on Thonny?