Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using ESP32 PSRAM to create huge RGB Matrix Panel display #100

Closed
tsctrl opened this issue Mar 3, 2021 · 7 comments
Closed

Using ESP32 PSRAM to create huge RGB Matrix Panel display #100

tsctrl opened this issue Mar 3, 2021 · 7 comments
Labels
not an issue with library This library works as expected, but something else is the root cause, such as AdaFruitGFX

Comments

@tsctrl
Copy link

tsctrl commented Mar 3, 2021

Hi @mrfaptastic ,

sorry again to ask alot.

i would like to suggest capability to allocate ram usage to use ps ram on wrover module. seems like adding this is not a big change.

adding flags or variable to switch malloc to ps_malloc should suffice to have the capability and allow more option to run higher bit graphic on the wrover module.

thank you!

@mrcodetastic
Copy link
Owner

ESP32 doesn't support DMA from PSRAM

@mrcodetastic
Copy link
Owner

#55

@mrcodetastic mrcodetastic reopened this Mar 3, 2021
@mrcodetastic mrcodetastic added the not an issue with library This library works as expected, but something else is the root cause, such as AdaFruitGFX label Mar 3, 2021
@sheepov
Copy link

sheepov commented Apr 15, 2021

Hi,

Any issue using this ESP32-HUB75-MatrixPanel-I2S-DMA & PSRAM (wrover) ?
Do you have test the CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL ("Reserve this amount of bytes for data that specifically needs to be in DMA or internal memory") option ?
=> https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/kconfig.html#config-spiram-malloc-reserve-internal

I need more ram for my project..
thx for your work!

@mrcodetastic
Copy link
Owner

I don't understand what your question is.

@sheepov
Copy link

sheepov commented Apr 15, 2021

is it possible to use this lib & PSRAM?

see README.md, memory constraints => it is not possible
but using "CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL" may solve the problem?

test using this lib with PSRAM enable on wrover :
My program crash when i use this instruction :
if( not dma_display->begin(//mini esp prod
12, //r1,
14, //g1,
27, //b1,
22, //r2,
23, //g2,
2, //b2
15, //a
21, //b,
16, //c,
17, //d,
34, //e,
18, //lat,
19, //oe,
5 //clk
))
Serial.println("****** !KABOOM! Insufficient memory - allocation failed ***********");

=> no error msg but sometimes a weird character is printed : 13:40:00.630 -> l�⸮ ��

@sheepov
Copy link

sheepov commented Apr 16, 2021 via email

@mrcodetastic mrcodetastic changed the title Add support for psram on wrover module Using ESP32 PSRAM Jun 21, 2021
@mrcodetastic mrcodetastic changed the title Using ESP32 PSRAM Use ESP32 PSRAM Jun 21, 2021
@mrcodetastic mrcodetastic changed the title Use ESP32 PSRAM Using ESP32 PSRAM to create huge RGB Matrix Panel display Dec 20, 2021
@mrcodetastic
Copy link
Owner

PSRAM support is now available on ESP32-S3 only, but output throughput ('clock rate') is limited to 10Mhz due to hardware limitations.

20Mhz is available if you continue to use the limited SRAM - but then you face the same old problem of not being able to have a huge resolution..

In summary: There's not much benefit in using PSRAM as the low througput negates the value of having extra memory/possible chains of panels = flicker.

#343

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not an issue with library This library works as expected, but something else is the root cause, such as AdaFruitGFX
Projects
None yet
Development

No branches or pull requests

3 participants