ESP32-WROOM32U fail to read PSRAM64H memory successfully

janet chung
Posts: 3
Joined: Wed May 12, 2021 9:02 am

ESP32-WROOM32U fail to read PSRAM64H memory successfully

Postby janet chung » Thu May 13, 2021 7:55 am

Hello,
i am the newbie about PSRAM and ESP32WROOM32U, Because there is no extra memory in module, I want to add psram64H. My chip is revision 1 (not v0 and v3), so my module could workaround . i refer esp32 official website step by step.https://docs.espressif.com/projects/esp ... l-ram.html
i run esp idf example code himem main.c
However, i always fail to read the memory correctly. I can be sure that my connection is successful because it said PSRAM initialized. and read 80195 times successfully (In other word, 46871 times read memory fail) . I don't know which step I did wrong . Could someone give me some advice?? Thank in advanced.

The following are my settings and results.
1. Pin assignment (QPI mode funcution ,refer picture website) https://ibb.co/JCVrhbq

PSRAM - WROOM32
-------------------------
#CE (1) - GPIO16
SO/SIO1 (2) - SD0
SIO2 (3) - SD3
VSS (4) - GND
SI/SIO0 (5) - SD1
SCLK (6) - GPIO17
SIO3 (7) - SD2
VDD (8) - 3.3v (GND- 10Ω - 3.3v )

2. sdkconfig

Code: Select all

CONFIG_ESP32_SPIRAM_SUPPORT=y
CONFIG_SPIRAM_BOOT_INIT=y
CONFIG_SPIRAM_IGNORE_NOTFOUND=n
CONFIG_SPIRAM_USE_MALLOC=y
CONFIG_SPIRAM_TYPE_AUTO=y
CONFIG_SPIRAM_SIZE=-1
CONFIG_SPIRAM_SPEED_40M=y
CONFIG_SPIRAM_MEMTEST=y
CONFIG_SPIRAM_CACHE_WORKAROUND=y
CONFIG_SPIRAM_BANKSWITCH_ENABLE=y
CONFIG_SPIRAM_BANKSWITCH_RESERVE=4
3. output

Code: Select all

esptool.py v3.1-dev
Serial port COM12
Connecting........_
Chip is ESP32-D0WD (revision 1)
Features: WiFi, BT, Dual Core, Coding Scheme None
Crystal is 40MHz
MAC: 30:ae:a4:9d:79:94
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0220
Compressed 25232 bytes to 15455...
Wrote 25232 bytes (15455 compressed) at 0x00001000 in 1.8 seconds (effective 113.2 kbit/s)...
Hash of data verified.
Compressed 222544 bytes to 108369...
Wrote 222544 bytes (108369 compressed) at 0x00010000 in 9.8 seconds (effective 180.8 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.2 seconds (effective 152.8 kbit/s)...
Hash of data verified.

Code: Select all

ELF file SHA256: 3a99a7fb01611bfa

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6720
load:0x40078000,len:14700
load:0x40080400,len:3728
0x40080400: _init at ??:?

entry 0x40080678
I (27) boot: ESP-IDF v4.4-dev-744-g1cb31e509-dirty 2nd stage bootloader
I (27) boot: compile time 15:03:42
I (28) boot: chip revision: 1
I (32) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (39) boot.esp32: SPI Speed      : 40MHz
I (44) boot.esp32: SPI Mode       : DIO
I (48) boot.esp32: SPI Flash Size : 4MB
I (53) boot: Enabling RNG early entropy source...
I (58) boot: Partition Table:
I (62) boot: ## Label            Usage          Type ST Offset   Length
I (69) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (76) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (84) boot:  2 factory          factory app      00 00 00010000 00100000
I (91) boot: End of partition table
I (96) boot_comm: chip revision: 1, min. application chip revision: 0
I (103) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=0b66ch ( 46700) map
I (129) esp_image: segment 1: paddr=0001b694 vaddr=3ffb0000 size=02aa8h ( 10920) load
I (134) esp_image: segment 2: paddr=0001e144 vaddr=40080000 size=01ed4h (  7892) load
I (139) esp_image: segment 3: paddr=00020020 vaddr=400d0020 size=1959ch (103836) map
I (184) esp_image: segment 4: paddr=000395c4 vaddr=40081ed4 size=0cf4ch ( 53068) load
I (207) esp_image: segment 5: paddr=00046518 vaddr=50000000 size=00010h (    16) load
I (216) boot: Loaded app from partition at offset 0x10000
I (216) boot: Disabling RNG early entropy source...
I (229) psram: This chip is ESP32-D0WD
I (231) spiram: Found 64MBit SPI RAM device
I (231) spiram: SPI RAM mode: flash 40m sram 40m
I (235) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (242) cpu_start: Pro cpu up.
I (246) cpu_start: Starting app cpu, entry point is 0x4008121c
0x4008121c: call_start_cpu1 at D:/Esp32/esp-idf/components/esp_system/port/cpu_start.c:158
I (239) cpu_start: App cpu up.
E (1108) spiram: SPI SRAM memory test fail. 46781/126976 writes failed, first @ 3F800040
E (1108) cpu_start: External RAM failed memory test!

Who is online

Users browsing this forum: No registered users and 50 guests