I also have a custom partition table file, that looks like this:
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, factory, 0x10000, 0x200000, encrypted
spiffs, data, spiffs, 0x210000,0x1F0000,
I've also tested it without the encrypted flag on the app0 section and it didn't work as well.
I'm doing all this one Platformio with Arduino and ESP-IDF working together, so I can configure things via Menuconfig, with the pertinent sections of it looking like the following:
I tested the usage mode both in Development *and* in Release, and both had the same issues.
To start the encryption process, I use the following command:
Code: Select all
.\env\scripts\python.exe -m espefuse --port COM82 --do-not-confirm --baud 115200 burn_key BLOCK_KEY0 key.bin XTS_AES_128_KEYCode: Select all
.\env\scripts\python.exe -m espsecure encrypt_flash_data -x --keyfile key.bin --address 0x1000 -o enc\bootloader.bin .pio\build\esp32dev\bootloader.bin
.\env\scripts\python.exe -m espsecure encrypt_flash_data -x --keyfile key.bin --address 0x8000 -o enc\partitions.bin .pio\build\esp32dev\partitions.bin
.\env\scripts\python.exe -m espsecure encrypt_flash_data -x --keyfile key.bin --address 0x10000 -o enc\firmware.bin .pio\build\esp32dev\firmware.binCode: Select all
.\env\scripts\python.exe -m esptool --chip esp32c3 --baud 230400 COM82 --before default_reset --after hard_reset write_flash --flash_mode qio --flash_freq 80m --flash_size detect 0x1000 enc\bootloader.bin 0x8000 enc\partitions.bin 0x10000 enc\firmware.binI'm honestly out of ideas at the moment, so any help is very appreciated, thank you very much in advance to anyone that takes the time to help me out