esp32/boards/sdkconfig.base: Disable MEMPROT_FEATURE to alloc from IRAM.

Dynamically generate/loaded native code (eg from @micropython.native or
native .mpy files) needs to be able allocate from IRAM, and the memory
protection feature must be disabled for that to work.  Disabling it is
needed to get native code working on ESP32-S2 and -C3.

Signed-off-by: Damien George <damien@micropython.org>
pull/7422/head
Damien George 2021-06-19 09:08:15 +10:00
rodzic 259d9b69fe
commit bbf9dd849a
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -29,6 +29,10 @@ CONFIG_ESP32_XTAL_FREQ_AUTO=y
# Power Management
CONFIG_PM_ENABLE=y
# Memory protection
# This is required to allow allocating IRAM
CONFIG_ESP_SYSTEM_MEMPROT_FEATURE=n
# FreeRTOS
CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=2
CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION=y