enesbcs / mpyeasy

mPyEasy - Easy MultiSensor device based on ESP32 & MicroPython
GNU Affero General Public License v3.0
12 stars 0 forks source link

How to enable PSRAM on ESP32-WROVER-B #8

Closed henkiejan1 closed 3 years ago

henkiejan1 commented 3 years ago

Hi,

I want as you suggested enable PSRAM for my ESP32 WROVER-B module with 8MB PSRAM. But i don't understand how to enable. I tried to set PSRAM-CS to GPIO16 and PSRAM-CLK to GPIO17 but it did not detected anything.

Could you help me please?

Thank you!

enesbcs commented 3 years ago

PSRAM is automatically enabled if exists on the board, as support is compiled into mPyEasy firmware. Please double check your module type. Some chinese sellers sells WROOM modules as WROVER... but it will not have PSRAM.

You can try it yourself flashing pure PSRAM enabled micropython on your board:

https://micropython.org/resources/firmware/esp32spiram-idf3-20210202-v1.14.bin

Than executing these two commands in REPL (with Thonny):

import gc
gc.mem_free()

If it is saying ~110kb free RAM, you have no PSRAM at all.

henkiejan1 commented 3 years ago

It says: >>> gc.mem_free() 4096864

So it has PSRAM i think?

enesbcs commented 3 years ago

Yes, it has! And what do you see on the system info page, when you are using mPyEasy?

henkiejan1 commented 3 years ago

Not supported. Also in the start log. But with version 0.5 it works. So maybe a bug in 0.6?

enesbcs commented 3 years ago

It is possible, I'd used another micropython core for 0.6. I will compile the next mpyeasy against latest micropython 1.14.

enesbcs commented 3 years ago

mPyEasy 1.007 added to releases https://github.com/enesbcs/mpyeasy/releases Tested with TTGO WROVER module with 4MB PSRAM.

henkiejan1 commented 3 years ago

New version works also! :)

enesbcs commented 3 years ago

Closed as solved