However, when I enable Flash Encryption via menuconfig, build and upload it, I get this error on first upload:
Code: Select all
rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:6912
ho 0 tail 12 room 4
load:0x40078000,len:16340
load:0x40080400,len:4460
entry 0x4008069c
E (60) flash_parts: partition 0 invalid magic number 0xa02
E (60) boot: Failed to verify partition table
E (62) boot: load partition table error!
ets Jun 8 2016 00:22:57
Code: Select all
# Name, Type, SubType, Offset, Size, Flags
# Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap,,,,
nvs,data,nvs,,16K,
otadata,data,ota,,8K,
phy_init,data,phy,,4K,
factory,app,factory,,1M,
ota_0,app,ota_0,,1M,
ota_1,app,ota_1,,1M,
platform.ini is as follows:
Code: Select all
[env:esp32dev]
platform = https://github.com/platformio/platform-espressif32.git
board = esp32dev
framework = arduino
espidf
monitor_speed = 115200
monitor_filters = direct
board_build.partitions = partitions.csv
build_flags =
-I include
-I include/util
-D CONFIG_PARTITION_TABLE_OFFSET=0x10000
platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#idf-release/v4.0
lib_deps = ArduinoJson
I have run pio run -t erase and pio run -t clean before the uploads.
Any idea what I’m missing?
Thanks