mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
ESP32-C6/H2 bootloaders <= v5.2.1 configure and lock PMP entries 3-4 as their D-ROM region; a locked PMP entry cannot be reconfigured until CPU reset. Commit366e4ee944("Remove redundant PMP entry for ROM region") dropped the D-ROM entry, and commitd4167fea60(which also restructured C6/H2 PMP setup) then renumbered the regions down, placing the application IRAM/DRAM split on entries 3-4. On an already-deployed older bootloader those entries are locked, so IRAM never gains execute permission and the chip resets before app_main() (GitHub issue #18769). Restore the separate (redundant) D-ROM PMP entry on indices 3-4 so the application IRAM/DRAM split stays on entries 5-7, clear of the locked range. This keeps newer applications bootable on older bootloaders. Closes https://github.com/espressif/esp-idf/issues/18769