ESP32 PSRAM support

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: ESP32 PSRAM support

Postby Ritesh » Thu Jun 27, 2019 5:53 am

Hello ESP32 SDK Team,

We are planning to use PSRAM into few of our products as per our requirements. I have gone through menu configuration and other stuffs related to PSRAM and i have few queries for same.

- Can it be possible to use External PSRAM only with bypassing internal RAM? or it is needed to have internal RAM along with external PSRAM for board boot up? Any changes required into boot-loader to do it if possible from stack side?
- Will it create any speed impact with respect to internal RAM while using external PSRAM?
- Is there any conflict with SPI Flash when using both together both SPI Flash and PSRAM?
- Can we detect the corruption when using this PSRAM? is there any indication or memory trace included into IDF for that?
- What are the implication with being used with feature enabled or disabled ? Like what if we increase the default size for malloc for ((16384) Maximum malloc() size, in bytes, to always put in internal memory (NEW))?


Would you please let me know that will it be OK if we go with ESP32 IDF 3.2 Stable Release for PSRAM? or let us know if any open issues into PSRAM which you are planning to fix into next release.
Regards,
Ritesh Prajapati

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: ESP32 PSRAM support

Postby Ritesh » Mon Jul 01, 2019 8:25 am

Hello ESP32 SDK Team or WiFive,

Can i get any update regarding same? I have posted comments into last week but still didn't get any feedback or reply for same.

Hope to get some positive feedback or reply form your end and let me know if need any more details regarding same.
Regards,
Ritesh Prajapati

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: ESP32 PSRAM support

Postby Ritesh » Tue Jul 02, 2019 7:22 am

Ritesh wrote:
Thu Jun 27, 2019 5:53 am
Hello ESP32 SDK Team,

We are planning to use PSRAM into few of our products as per our requirements. I have gone through menu configuration and other stuffs related to PSRAM and i have few queries for same.

- Can it be possible to use External PSRAM only with bypassing internal RAM? or it is needed to have internal RAM along with external PSRAM for board boot up? Any changes required into boot-loader to do it if possible from stack side?
- Will it create any speed impact with respect to internal RAM while using external PSRAM?
- Is there any conflict with SPI Flash when using both together both SPI Flash and PSRAM?
- Can we detect the corruption when using this PSRAM? is there any indication or memory trace included into IDF for that?
- What are the implication with being used with feature enabled or disabled ? Like what if we increase the default size for malloc for ((16384) Maximum malloc() size, in bytes, to always put in internal memory (NEW))?


Would you please let me know that will it be OK if we go with ESP32 IDF 3.2 Stable Release for PSRAM? or let us know if any open issues into PSRAM which you are planning to fix into next release.
Hello ESP_Sprite,

is it possible to get some feedback for queries which I have asked?
Regards,
Ritesh Prajapati

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

Re: ESP32 PSRAM support

Postby WiFive » Tue Jul 02, 2019 5:46 pm

No
No
No
Yes
Well you might run out of internal heap

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: ESP32 PSRAM support

Postby Ritesh » Wed Jul 03, 2019 4:11 am

WiFive wrote:
Tue Jul 02, 2019 5:46 pm
No
No
No
Yes
Well you might run out of internal heap
Hello,

Thanks for your response and valuable feedback regarding same.

- Can we detect the corruption when using this PSRAM? is there any indication or memory trace included into IDF for that? Answer is Yes.
Then Process to detect corruption is same as like internal RAM?

- - What are the implication with being used with feature enabled or disabled ? Like what if we increase the default size for malloc for ((16384) Maximum malloc() size, in bytes, to always put in internal memory (NEW))?
I have asked with respect to External Memory Limit as defined into menuconfig option mentioned for PSRAM
Regards,
Ritesh Prajapati

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

Re: ESP32 PSRAM support

Postby WiFive » Wed Jul 03, 2019 5:14 am

Yes
increase the default size for malloc for ((16384) Maximum malloc() size, in bytes, to always put in internal memory
That means put more stuff in internal memory so it will run out faster

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: ESP32 PSRAM support

Postby Ritesh » Wed Jul 03, 2019 5:28 am

WiFive wrote:
Wed Jul 03, 2019 5:14 am
Yes
increase the default size for malloc for ((16384) Maximum malloc() size, in bytes, to always put in internal memory
That means put more stuff in internal memory so it will run out faster
Ok. Thanks for clarifications and providing response for same.

I will check and let you know if any further query regarding PSRAM in development phase as well.

Again thanks a lot for same.
Regards,
Ritesh Prajapati

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

Re: ESP32 PSRAM support

Postby rudi ;-) » Tue Aug 15, 2023 2:39 pm

update
=======

in 2023 the psram theme continues :)

128Mbit, 256Mbit, 512Mbit


APMemory:
128_256_512.jpg
128_256_512.jpg (553.46 KiB) Viewed 7561 times

best wishes
rudi ;-)

edit: 18. Aug ' 23
update
======

128Mbit Psram + 256Mbit Flash successful
tw_05.png
tw_05.png (845.55 KiB) Viewed 7490 times
tw_06.png
tw_06.png (87.76 KiB) Viewed 7490 times
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: ESP32 PSRAM support

Postby Ritesh » Sun Aug 20, 2023 10:58 pm

rudi ;-) wrote:
Tue Aug 15, 2023 2:39 pm
update
=======

in 2023 the psram theme continues :)

128Mbit, 256Mbit, 512Mbit


APMemory:
128_256_512.jpg


best wishes
rudi ;-)

edit: 18. Aug ' 23
update
======

128Mbit Psram + 256Mbit Flash successful
tw_05.png
tw_06.png
Thanks Rudi for providing updates.
Regards,
Ritesh Prajapati

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

Re: ESP32 PSRAM support

Postby rudi ;-) » Sun Aug 20, 2023 11:33 pm

Ritesh wrote:
Sun Aug 20, 2023 10:58 pm

Thanks Rudi for providing updates.
you're welcome Ritesh :)


update: 20. Aug 2023
==================


successful 256Mbit ( 1V8 )

20. Aug Done.jpg
20. Aug Done.jpg (707.37 KiB) Viewed 7445 times
next step 512 Mbit

also next steps ( after summerbreak ~25. Sept 2k23 ) :
switch on Wifi and test wifi with more as 8 MB RAM
- cache and other specific test with 16MB, 32MB and 64MB PSRAM
- testing doom with this :)

( parallel test later also with up-to-date ESP-IDF Version )


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

Who is online

Users browsing this forum: Sang_Huynh and 181 guests