mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
If the virtual-address pool is exhausted when reserving the unencrypted PSRAM carve-out (the warning at L388 may already have fired for the main mapping), esp_mmu_map_reserve_block_with_caps() returns an error rather than aborting. Convert the previous assert() into a logged fallback that disables the carve-out for this boot, mirroring the SPIRAM_ENC_EXEMPT_SIZE >= psram_available_size path. Also extend esp_psram_extram_test() to run the standard memory test on the carve-out region when CONFIG_SPIRAM_ENC_EXEMPT is enabled, so the unencrypted mapping is exercised on startup like the other PSRAM regions.