[已解决]ESP32-S3R2 如何配置开启PSRAM? 我开启PSRAM后 报错:找不到PSRAM芯片
Posted: Mon Mar 04, 2024 9:24 am
如题 ,esp-idf V4.4.6 ESP32-S3R2 配置开启PSRAM后,编译运行代码输出异常:
E (327) psram: PSRAM ID read error: 0x00ffffff, PSRAM chip not found or not supported, or wrong PSRAM line mode
E (330) spiram: SPI RAM enabled but initialization failed. Bailing out.
I (337) cpu_start: Failed to init external RAM; continuing without it.
PSRAM的配置如下所示,这个配置是什么地方有异常?
该如何正确配置才能启用PSRAM?
E (327) psram: PSRAM ID read error: 0x00ffffff, PSRAM chip not found or not supported, or wrong PSRAM line mode
E (330) spiram: SPI RAM enabled but initialization failed. Bailing out.
I (337) cpu_start: Failed to init external RAM; continuing without it.
PSRAM的配置如下所示,这个配置是什么地方有异常?
该如何正确配置才能启用PSRAM?
- CONFIG_ESP32S3_SPIRAM_SUPPORT=y
- #
- # SPI RAM config
- #
- CONFIG_SPIRAM_MODE_QUAD=y
- # CONFIG_SPIRAM_MODE_OCT is not set
- CONFIG_SPIRAM_TYPE_AUTO=y
- # CONFIG_SPIRAM_TYPE_ESPPSRAM16 is not set
- # CONFIG_SPIRAM_TYPE_ESPPSRAM32 is not set
- # CONFIG_SPIRAM_TYPE_ESPPSRAM64 is not set
- CONFIG_SPIRAM_SIZE=-1
- CONFIG_SPIRAM_CLK_IO=30
- CONFIG_SPIRAM_CS_IO=26
- # CONFIG_SPIRAM_FETCH_INSTRUCTIONS is not set
- # CONFIG_SPIRAM_RODATA is not set
- # CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY is not set
- # CONFIG_SPIRAM_SPEED_120M is not set
- CONFIG_SPIRAM_SPEED_80M=y
- # CONFIG_SPIRAM_SPEED_40M is not set
- CONFIG_SPIRAM=y
- CONFIG_SPIRAM_BOOT_INIT=y
- CONFIG_SPIRAM_IGNORE_NOTFOUND=y
- # CONFIG_SPIRAM_USE_MEMMAP is not set
- # CONFIG_SPIRAM_USE_CAPS_ALLOC is not set
- CONFIG_SPIRAM_USE_MALLOC=y
- CONFIG_SPIRAM_MEMTEST=y
- CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=16384
- # CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP is not set
- CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=32768
- # end of SPI RAM config