ESP32 WROOM-32 with PSRAM Module

petercipov
Posts: 3
Joined: Sun Mar 21, 2021 9:58 am

ESP32 WROOM-32 with PSRAM Module

Postby petercipov » Sun Mar 21, 2021 1:42 pm

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.
Attachments
Screen Shot 2021-03-21 at 14.27.11.png
memory module
Screen Shot 2021-03-21 at 14.27.11.png (70.75 KiB) Viewed 9420 times
New-Electrical-Socket-Programmer-Tool-ESP32-Adapter-Socket-For-ESP-WROOM-32-Module-Micro-USB-Type.jpg_q50.jpg
adapter
New-Electrical-Socket-Programmer-Tool-ESP32-Adapter-Socket-For-ESP-WROOM-32-Module-Micro-USB-Type.jpg_q50.jpg (98.06 KiB) Viewed 9420 times

ESP_Sprite
Posts: 9769
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 WROOM-32 with PSRAM Module

Postby ESP_Sprite » Mon Mar 22, 2021 2:29 am

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.

petercipov
Posts: 3
Joined: Sun Mar 21, 2021 9:58 am

Re: ESP32 WROOM-32 with PSRAM Module

Postby petercipov » Mon Mar 22, 2021 7:25 pm

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.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: ESP32 WROOM-32 with PSRAM Module

Postby WiFive » Mon Mar 22, 2021 11:09 pm

Crashes how? Post the log

petercipov
Posts: 3
Joined: Sun Mar 21, 2021 9:58 am

Re: ESP32 WROOM-32 with PSRAM Module

Postby petercipov » Sat Mar 27, 2021 5:22 pm

  1. rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
  2. configsip: 0, SPIWP:0xee
  3. clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
  4. mode:DIO, clock div:2
  5. load:0x3fff0018,len:4
  6. load:0x3fff001c,len:1044
  7. load:0xff2b0000,len:-1
  8. 1162 mmu set 00010000, pos 00010000
  9. 1162 mmu set 00020000, pos 00020000
  10. 1162 mmu set 00030000, pos 00030000
  11. 1162 mmu set 00040000, pos 00040000
  12. 1162 mmu set 00050000, pos 00050000
  13. 1162 mmu set 00060000, pos 00060000
  14. 1162 mmu set 00070000, pos 00070000
  15. 1162 mmu set 00080000, pos 00080000
  16. 1162 mmu set 00090000, pos 00090000
  17. 1162 mmu set 000a0000, pos 000a0000
  18. 1162 mmu set 000b0000, pos 000b0000
  19. 1162 mmu set 000c0000, pos 000c0000
  20. ets Jun  8 2016 00:22:57
  21.  
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.

ESP_Sprite
Posts: 9769
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 WROOM-32 with PSRAM Module

Postby ESP_Sprite » 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?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: ESP32 WROOM-32 with PSRAM Module

Postby WiFive » Mon Mar 29, 2021 4:20 am

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.

ESP_Sprite
Posts: 9769
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 WROOM-32 with PSRAM Module

Postby ESP_Sprite » Mon Mar 29, 2021 8:39 am

Was hoping to get at least some logging before the crash, but you're probably right.

Who is online

Users browsing this forum: nguyennamdsn and 75 guests