Page 1 of 1
ESP32 WROOM-32 with PSRAM Module
Posted: Sun Mar 21, 2021 1:42 pm
by petercipov
Hello,
I want to attach PSRAM memory LY68L6400SLIT with Espressif ESP32-WROOM-32 2.4GHz WiFi+Bluetooth chip. Iam using wroom adapter, I am using barebone chip. I assume that this is possible, as I have found tutorial online
http://blog.pagefault-limited.co.uk/lol ... pgrade-mod but got trouble an any connection I have tried did not work.
I have tried following combinations (memory chip -> esp chip):
CE -> d3
SIO1 -> io17
SIO2 -> d0
VSS -> gnd
VCC -> 3.3V
SIO3 -> cmd
SCLK -> CLK
SIO0 -> d1
chip boots but ps memory is undetected
CE -> io16 + 10K pul up resistor
SIO1 -> d0
SIO2 -> d3
VSS -> gnd
VCC -> 3.3V
SIO3 -> d2
SCLK -> io17
SIO0 -> d1
this combination crashes chip prior booting
I am looking for guidance what is the propper combination to connect memory chip via QPI interface.
Re: ESP32 WROOM-32 with PSRAM Module
Posted: Mon Mar 22, 2021 2:29 am
by ESP_Sprite
Suggest you look into the datasheet for the specific WROOM32 module you have. Some of them do not have the flash pins connected to the castellated pads.
Re: ESP32 WROOM-32 with PSRAM Module
Posted: Mon Mar 22, 2021 7:25 pm
by petercipov
Hello
I have removed metal chip case. I used multimeter to find which exact flash pins are connected to chip pins, I have found following
(flash PIN -> esp32 pin)
CE -> not connected to pin
SIO1 -> d0
SIO2 -> d3
VSS -> gnd
VCC -> 3.3V but no direct connection to pin
SIO3 -> d2
SCLK -> clk
SIO0 -> d1
I have used this combination already with CE and SCLK of PSRAM connected to io 16, 17. this crashes my esp32 chip.
Re: ESP32 WROOM-32 with PSRAM Module
Posted: Mon Mar 22, 2021 11:09 pm
by WiFive
Crashes how? Post the log
Re: ESP32 WROOM-32 with PSRAM Module
Posted: Sat Mar 27, 2021 5:22 pm
by petercipov
rst:0x10 (RTCWDT_RTC_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:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0xff2b0000,len:-1
1162 mmu set 00010000, pos 00010000
1162 mmu set 00020000, pos 00020000
1162 mmu set 00030000, pos 00030000
1162 mmu set 00040000, pos 00040000
1162 mmu set 00050000, pos 00050000
1162 mmu set 00060000, pos 00060000
1162 mmu set 00070000, pos 00070000
1162 mmu set 00080000, pos 00080000
1162 mmu set 00090000, pos 00090000
1162 mmu set 000a0000, pos 000a0000
1162 mmu set 000b0000, pos 000b0000
1162 mmu set 000c0000, pos 000c0000
ets Jun 8 2016 00:22:57
with configuration
(spiram -> esp32 pin)
CE -> gpio 16 + 10k pull up resictor
SIO1 -> d0
SIO2 -> d3
VSS -> gnd
VCC -> 3.3V
SIO3 -> d2
SCLK -> gpio
SIO0 -> d1
The output is very criptic for me Im unsere where is the problem.
Re: ESP32 WROOM-32 with PSRAM Module
Posted: Mon Mar 29, 2021 2:36 am
by ESP_Sprite
That is a very terse log... can you crank up the bootloader logging level a bit in e.g. menuconfig?
Re: ESP32 WROOM-32 with PSRAM Module
Posted: Mon Mar 29, 2021 4:20 am
by WiFive
ESP_Sprite wrote: ↑Mon Mar 29, 2021 2:36 am
That is a very terse log... can you crank up the bootloader logging level a bit in e.g. menuconfig?
That won't help because it doesn't finish loading the second stage bootloader from flash. Connecting the psram is probably messing up the spi signals.
Re: ESP32 WROOM-32 with PSRAM Module
Posted: Mon Mar 29, 2021 8:39 am
by ESP_Sprite
Was hoping to get at least some logging before the crash, but you're probably right.