Page 1 of 1

psram: PSRAM ID read error: 0xffffffff

Posted: Sun Feb 11, 2024 7:15 pm
by Maverik
<r>Hi everyone,<br/>
I'm trying to use a psram but I get the following error<br/>
<br/>
psram: PSRAM ID read error: 0xffffffff<br/>
<br/>
this is my setup<br/>
<br/>
CHIP: ESP32 WROOM 32<br/>
<br/>
PSRAM: W25Q64 64Mbit<br/>
<br/>
I connected the CS pin of the PSRAM to pin 16 of the esp32 and the DO to 19, the DI to 23 and the CLK to 17<br/>
<br/>
this is the configuration of my platformio.ini
<CODEBOX codebox="c" file="Untitled.c"><s>
  1. </s>
  2. <br/>
  3. ; PlatformIO Project Configuration File<br/>
  4. ;<br/>
  5. ;   Build options: build flags, source filter<br/>
  6. ;   Upload options: custom upload port, speed and extra flags<br/>
  7. ;   Library options: dependencies, extra library storages<br/>
  8. ;   Advanced options: extra scripting<br/>
  9. ;<br/>
  10. ; Please visit documentation for the other options and examples<br/>
  11. ; https://docs.platformio.org/page/projectconf.html<br/>
  12. <br/>
  13. [env:esp32doit-devkit-v1]<br/>
  14. platform = espressif32<br/>
  15. board = esp32dev ;esp32dev<br/>
  16. framework = arduino<br/>
  17. monitor_speed = 115200<br/>
  18. upload_port = /dev/cu.usbserial-0001<br/>
  19. monitor_port = /dev/cu.usbserial-0001<br/>
  20. upload_speed = 921600<br/>
  21. board_build.flash_mode = qio<br/>
  22. board_build.f_flash = 40000000L<br/>
  23. board_build.partitions = huge_app.csv<br/>
  24. lib_deps = <br/>
  25.     ArduinoJson<br/>
  26.     TFT_eSPI<br/>
  27.     lvgl/lvgl@^8.3.9<br/>
  28.     https://github.com/me-no-dev/ESPAsyncWebServer.git<br/>
  29.     https://github.com/esphome/ESP32-audioI2S.git<br/>
  30. build_flags = <br/>
  31.     -DCORE_DEBUG_LEVEL=5<br/>
  32.     -DBOARD_HAS_PSRAM<br/>
  33.     -mfix-esp32-psram-cache-issue<br/>
  34.     -D USER_SETUP_LOADED<br/>
  35.     -D ILI9341_DRIVER<br/>
  36.     -D TFT_MOSI=23<br/>
  37.     -D TFT_SCLK=18<br/>
  38.     -D TFT_CS=15<br/>
  39.     -D TFT_DC=2<br/>
  40.     -D TFT_RST=4<br/>
  41.     -D TOUCH_CS=21<br/>
  42.     -D LOAD_GLCD<br/>
  43.     -D LOAD_FONT2<br/>
  44.     -D LOAD_FONT4<br/>
  45.     -D LOAD_FONT6<br/>
  46.     -D LOAD_FONT7<br/>
  47.     -D LOAD_FONT8<br/>
  48.     -D LOAD_GFXFF<br/>
  49.     -D SMOOTH_FONT<br/>
  50.     -D ESP32<br/>
  51.     -I src<br/>
  52. monitor_filters = <br/>
  53.     esp32_exception_decoder<br/>
  54.     default<br/>
  55. board_build.mcu = esp32<br/>
  56.  
  57. <e>
</e></CODEBOX></r>

Re: psram: PSRAM ID read error: 0xffffffff

Posted: Mon Feb 12, 2024 1:47 am
by ESP_Sprite
Maverik wrote:
Sun Feb 11, 2024 7:15 pm
PSRAM: W25Q64 64Mbit<br/>
That is not PSRAM, that is a NOR flash chip.
I connected the CS pin of the PSRAM to pin 16 of the esp32 and the DO to 19, the DI to 23 and the CLK to 17
You need more and different connections than that. You'd probably be best off looking at a module with PSRAM (e.g. the ESP32-WROVER-E) to see how you would connect that. But note you'll need an actual PSRAM chip for that, not the NOR flash chipyou have now.

Re: psram: PSRAM ID read error: 0xffffffff

Posted: Mon Feb 12, 2024 7:25 am
by Maverik
ah ok ok thanks can you help me find a psram chip I think it was this one :(

Re: psram: PSRAM ID read error: 0xffffffff

Posted: Tue Feb 13, 2024 1:47 am
by ESP_Sprite
Honestly, the easiest way to get PSRAM working is to buy a module with it integrated, e.g. the ESP32-WROVER-E module.