xtensa/esp32: Tasks use PSRAM as stack can do SPI flash read/write/erase/map/unmap

This commit is contained in:
Dong Heng
2023-02-24 10:36:20 +08:00
committed by Alan Carvalho de Assis
parent d1113110f3
commit 663b4c4f34
3 changed files with 363 additions and 76 deletions
+10
View File
@@ -1811,6 +1811,16 @@ config ESP32_SPIFLASH_DEBUG
Enable this option, read and write of SPI Flash
will show input arguments and result.
config ESP32_SPI_FLASH_SUPPORT_PSRAM_STACK
bool "Support PSRAM As Task Stack"
default n
depends on ESP32_SPIRAM
select SCHED_LPWORK
---help---
Enable this option, Tasks which use PSRAM as stack
can do SPI Flash read/write/erase/map/unmap.
Otherwise, it may cause exception.
if ESP32_APP_FORMAT_LEGACY
comment "Partition Table Configuration"
File diff suppressed because it is too large Load Diff
@@ -20,8 +20,10 @@ CONFIG_ARCH_XTENSA=y
CONFIG_BOARD_LOOPSPERMSEC=16717
CONFIG_BUILTIN=y
CONFIG_DEV_ZERO=y
CONFIG_ESP32_SPIFLASH=y
CONFIG_ESP32_SPIRAM=y
CONFIG_ESP32_SPIRAM_USER_HEAP=y
CONFIG_ESP32_SPI_FLASH_SUPPORT_PSRAM_STACK=y
CONFIG_ESP32_UART0=y
CONFIG_FS_PROCFS=y
CONFIG_HAVE_CXX=y