spiram: SPI SRAM memory test fail

lys23926635
Posts: 9
Joined: Tue Apr 21, 2020 4:46 am

spiram: SPI SRAM memory test fail

Postby lys23926635 » Tue Jul 14, 2020 1:29 am

I am using the ESP32-PICO-KIT board to plug the PSRAM of 8M, and IO is

connected as follows:

psram_pin2(SO/SIO1):-->esp32 gpio17
psram_pin3(SIO2):-->esp32 gpio7
psram_pin4:-->gnd
psram_pin5(SI/SIO0):-->esp32 gpio8
psram_pin6(SCLK):-->esp32 gpio6
psram_pin7(SIO3):-->esp32 gpio11

The modified pin definition in the spiram_psram.c file is as follows:

#define PSRAM_SPIQ_SD0_IO 17
#define PSRAM_SPID_SD1_IO 8
#define PSRAM_SPIWP_SD3_IO 7
#define PSRAM_SPIHD_SD2_IO 11

idf version:
v3.3.2-270-gf4333c8e3

the example:hello_world

open SPI ram support in menuconfig and configure CS to gpio10

log:
I (221) boot: Loaded app from partition at offset 0x10000
I (221) boot: Disabling RNG early entropy source...
I (222) psram:This chip is ESP32-PICO
I (251) spiram: Found 64MBit SPI RAM device
I (259) spiram: SPI RAM mode: flash 40m sram 40m
I (265) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (272) cpu_start: Pro cpu up.
I (276) cpu_start: Application information:
I (280) cpu_start: Project name: esp-idf
I (285) cpu_start: App version: 1
I (290) cpu_start: Compile time: Jul 13 2020 19:39:43
I (296) cpu_start: ELF file SHA256: f4ac9b655859d1b3...
I (302) cpu_start: ESP-IDF: v3.3.2-270-gf4333c8e3
I (308) cpu_start: Starting app cpu, entry point is 0x40081200
0x40081200: call_start_cpu1 at /home/szth/esp/esp-

idf/components/esp32/cpu_start.c:268

I (295) cpu_start: App cpu up.
E (1210) spiram: SPI SRAM memory test fail. 50461/131072 writes failed,

first @ 3F800040

E (1211) cpu_start: External RAM failed memory test!
abort() was called at PC 0x4008143a on core 0

It seems that PSRAM has been detected, but why does the test fail? Can someone help me? Thank you

lys23926635
Posts: 9
Joined: Tue Apr 21, 2020 4:46 am

Re: spiram: SPI SRAM memory test fail

Postby lys23926635 » Tue Jul 14, 2020 1:32 am

Supplementary notes:
psram_pin1(CS):-->esp32 gpio10
psram_pin8(VCC):-->3V3

Who is online

Users browsing this forum: Yahoo [Bot] and 124 guests