ESP32 PSRAM support

User avatar
rudi ;-)
Posts: 1209
Joined: Fri Nov 13, 2015 3:25 pm

Re: ESP32 PSRAM support

Postby rudi ;-) » Mon Aug 14, 2017 12:25 pm

nice news with 1.2 and 1.5 winbond's NOR Low Voltage Memories

lowpower.jpg
lowpower.jpg (33.59 KiB) Viewed 1200 times


25Q80NENIG.jpg
25Q80NENIG.jpg (89.02 KiB) Viewed 1201 times


Winbond’s New Low-Voltage NOR Flash Memories Designed Around ESP32 comes to the market in the form of a module as soon as possible.

we have then a new ESP32 that can regulate 1.2V and 1.5V from intern regulator? 1.8V ? and 3.3V ? or new Low Voltage ESP32?
how we work this out with pSRAM 1.8V or comes 1.2V and 1.5V other in 2018 ?

we was happy to find working 1.8V(3.3V) pSRAM and in 2018 we start again with searching and waiting? :roll:
we started allready in time with 1.8V ...

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

frankie.zeng
Posts: 15
Joined: Mon Aug 21, 2017 12:54 am

Re: ESP32 PSRAM support

Postby frankie.zeng » Fri Oct 27, 2017 4:53 am

why i can't find the xtensa-1.22.x-ext_ram_patch branch。
how can i get this.
tks!

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

Re: ESP32 PSRAM support

Postby WiFive » Fri Oct 27, 2017 6:08 am

It is in master branch now

hopkinskong
Posts: 3
Joined: Sat Oct 28, 2017 4:10 pm

Re: ESP32 PSRAM support

Postby hopkinskong » Sun Oct 29, 2017 6:36 pm

WiFive wrote:It is in master branch now


So do I need to compile the xtensa toolchain on Windows for pSRAM support now?
Or it is already in xtensa-esp32-elf-win32-1.22.0-73-ge28a011-5.2.0.zip // esp32_win32_msys2_environment_and_toolchain-20170918.zip ?

How about esp-idf? Do I need to checkout the feature/psram_malloc branch now? Or I can already use pSRAM with master branch? (I can see SPI RAM option in menuconfig with master branch already).

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

Re: ESP32 PSRAM support

Postby ESP_Sprite » Mon Oct 30, 2017 5:52 pm

You should be able to use all the (latest) vanilla toolchain and esp-idf branches to use psram. Support is in mainstream now, and the specific psram branches have been deprecated.

hgptamn
Posts: 26
Joined: Mon Oct 16, 2017 4:47 pm

Re: ESP32 PSRAM support

Postby hgptamn » Wed Feb 14, 2018 11:45 am

To all newbies out there (me included) testing pSRAM compatibility with their boards, here's what I did to get it working.

First of all make sure you're on the latest ESP-IDF verison. I'm on ESP-IDF v3.1-dev-380-gca3faa61 2nd stage bootloader as of testing this.

Second of all do you see SPI SRAM (sPRAM) tests being done during the startup sequence of the ESP32 like in the image bellow?
SPRAM-check.png
SPRAM-check.png (94.32 KiB) Viewed 472 times

If yes, then the problem might be within your code.
If no, it means that your start-up sequence output looks something like in the image bellow, with the SPI SRAM checks missing.
Missing-SPRAM-check.png
Missing-SPRAM-check.png (19.89 KiB) Viewed 472 times


If so, what I did to fix the problem was simply to go in the sdkconfig file in the root directory of your project, look for:
CONFIG_SPIRAM_SUPPORT=
and set it to:
CONFIG_SPIRAM_SUPPORT=y

For some reason, on my setup this feature was missing from make menuconfig. It only appeared after I've manually modified the sdkconfig file. Once configured in the sdkconfig file you should be able to see SPI RAM config options under make menuconfig ---> Component config ---> ESP32-specific ----> Support for external, SPI-connected RAM -----> SPI RAM config

The code that I've been using for testing the sPRAM can be found bellow under spram.rar
Fortunately it is stable at 80MHz flash and sPRAM :D
Attachments
spram.rar
(13.49 MiB) Downloaded 30 times

Who is online

Users browsing this forum: ginodecock and 2 guests