I have got myself into a very confusing situation.
Partly I think my issue is that I have taken a lot of boilerplate code from other projects, without fully understanding the underlying usage.
I am having issues building and writing to my device, having had to change the settings of the location of the partition table in sdkconfig from 0x8000 to 0x10000.
I have the following settings
1. sdkconfig using custom partitions.csv
Code: Select all
#
# Partition Table
#
# CONFIG_PARTITION_TABLE_SINGLE_APP is not set
# CONFIG_PARTITION_TABLE_TWO_OTA is not set
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
CONFIG_PARTITION_TABLE_OFFSET=0x10000
CONFIG_PARTITION_TABLE_MD5=y
# end of Partition Table
Code: Select all
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x009000, 0x4000,
otadata, data, ota, 0x00D000, 0x2000,
phy_init, data, phy, 0x00F000, 0x1000,
factory, app, factory, 0x010000, 1M,
ota_0, app, ota_0, 0x110000, 1M,
ota_1, app, ota_1, 0x210000, 1M,
storage, data, spiffs, , 0xF0000,
Code: Select all
esptool.py \
--chip esp32 \
-p /dev/ttyUSB0 \
-b 460800 \
\
--before=default_reset \
--after=hard_reset write_flash \
--flash_mode dio \
--flash_freq 80m \
--flash_size 16MB \
\
0x00001000 build/bootloader/bootloader.bin \
0x00010000 build/partition_table/partition-table.bin \
0x00012000 build/ota_data_initial.bin \
0x00100000 build/Rosetta-FX.bin \
0x00400000 build/storage.bin