Now to the problem, i have gotten myself one of these newer ESP32-P4NRW32 + C6 lcds that sport mipi dsi lcds, i have made sure to be able to run the project successfully on it unencrypted, all was running well and most imortantly fps is super impressive compared to the previous lcd, so far no issues whatsoever, then i did my usual encryption enablement thing and (sad violin) it just started boot looping.
Now no matter how i flash it just outputs invalid header: 0x02000613 to console.
What i tried:
1. Pre-encrypting wiht the same key all the necessary binaries: bootloader.bin, partitions.bin, firmware.bin and flashing see below for all the commands i run:
pre-encrypting binaries
Code: Select all
.\espsecure.exe encrypt-flash-data --keyfile .\esp32p4_dev_enc_key.bin --address 0x0 --output .\bootloader-enc.bin .\bootloader.bin
.\espsecure.exe encrypt-flash-data --keyfile .\esp32p4_dev_enc_key.bin --address 0x8000 --output .\partitions-enc.bin .\partitions.bin
.\espsecure.exe encrypt-flash-data --keyfile .\esp32p4_dev_enc_key.bin --address 0x10000 --output .\esp32p4-lcd\firmware-enc.bin .\esp32p4-lcd\firmware.bin
Code: Select all
.\esptool.exe -p COM13 -b 1152000 --before=default-reset --after=hard-reset write-flash 0x0 .\bootloader-enc.bin 0x8000 .\partitions-enc.bin 0x10000 .\firmware-enc.bin
Code: Select all
invalid header: 0x02000613
invalid header: 0x02000613
invalid header: 0x02000613
invalid header: 0x02000613
invalid header: 0x02000613
invalid header: 0x02000613
invalid header: 0x02000613
invalid header: 0x02000613
invalid header: 0x02000613
invalid header: 0x02000613
Code: Select all
.\esptool.exe -p COM13 -b 1152000 --before=default-reset --after=hard-reset write-flash --encrypt 0x0 .\bootloader.bin 0x8000 .\partitions.bin 0x10000 .\firmware.binCode: Select all
invalid header: 0x02000613
invalid header: 0x02000613
invalid header: 0x02000613
invalid header: 0x02000613
invalid header: 0x02000613
invalid header: 0x02000613
invalid header: 0x02000613
invalid header: 0x02000613
invalid header: 0x02000613
invalid header: 0x02000613
Any help will be much appreciated!