Need help to start PSRAM support into ESP32 IDF 3.1

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

Need help to start PSRAM support into ESP32 IDF 3.1

Postby Ritesh » Tue Mar 05, 2019 4:45 pm

Hi Espressif SDK Developees,

We are working on ESP32 IDF 3.1 and now we need to add support for PSRAM as per our project requirements.

So, Would you please let me know steps to include with example for that?
Regards,
Ritesh Prajapati

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: Need help to start PSRAM support into ESP32 IDF 3.1

Postby fly135 » Tue Mar 05, 2019 9:44 pm

make menuconfig
component config
esp32-specific
Enable "support for ext connected spi ram"

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

Re: Need help to start PSRAM support into ESP32 IDF 3.1

Postby Ritesh » Wed Mar 06, 2019 4:35 am

fly135 wrote:
Tue Mar 05, 2019 9:44 pm
make menuconfig
component config
esp32-specific
Enable "support for ext connected spi ram"
Yes. But would you please let me know few more details like what I need means which toolchain i need to PSRAM support with examples as well?
Regards,
Ritesh Prajapati

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Need help to start PSRAM support into ESP32 IDF 3.1

Postby ESP_Angus » Wed Mar 06, 2019 6:22 am

Same toolchain. If the build system gives you no warnings about "unsupported toolchain version", you're good to go.

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

Re: Need help to start PSRAM support into ESP32 IDF 3.1

Postby Ritesh » Wed Mar 06, 2019 8:31 am

ESP_Angus wrote:
Wed Mar 06, 2019 6:22 am
Same toolchain. If the build system gives you no warnings about "unsupported toolchain version", you're good to go.
Thanks for providing updates regarding same. Apart from that toolchain, Do we need to take care any other stuffs while starting to work for PSRAM?
Regards,
Ritesh Prajapati

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: Need help to start PSRAM support into ESP32 IDF 3.1

Postby fly135 » Wed Mar 06, 2019 4:15 pm

Ritesh wrote:
Wed Mar 06, 2019 8:31 am
ESP_Angus wrote:
Wed Mar 06, 2019 6:22 am
Same toolchain. If the build system gives you no warnings about "unsupported toolchain version", you're good to go.
Thanks for providing updates regarding same. Apart from that toolchain, Do we need to take care any other stuffs while starting to work for PSRAM?
Nope, just enable it. Print the heap size before and after enabling to see that you have the increased ram. The PSRAM appears as storage available on the heap. See the docs on the heap.

https://docs.espressif.com/projects/esp ... alloc.html

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

Re: Need help to start PSRAM support into ESP32 IDF 3.1

Postby Ritesh » Wed Mar 06, 2019 4:39 pm

fly135 wrote:
Wed Mar 06, 2019 4:15 pm
Ritesh wrote:
Wed Mar 06, 2019 8:31 am
ESP_Angus wrote:
Wed Mar 06, 2019 6:22 am
Same toolchain. If the build system gives you no warnings about "unsupported toolchain version", you're good to go.
Thanks for providing updates regarding same. Apart from that toolchain, Do we need to take care any other stuffs while starting to work for PSRAM?
Nope, just enable it. Print the heap size before and after enabling to see that you have the increased ram. The PSRAM appears as storage available on the heap. See the docs on the heap.

https://docs.espressif.com/projects/esp ... alloc.html
Thanks for providing details for that. So, Heap will be increased with 4 MB after enabling support for that. Correct?
Regards,
Ritesh Prajapati

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: Need help to start PSRAM support into ESP32 IDF 3.1

Postby fly135 » Wed Mar 06, 2019 6:09 pm

Ritesh wrote:
Wed Mar 06, 2019 4:39 pm
Thanks for providing details for that. So, Heap will be increased with 4 MB after enabling support for that. Correct?
Yes

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

Re: Need help to start PSRAM support into ESP32 IDF 3.1

Postby Ritesh » Thu Mar 07, 2019 6:08 am

fly135 wrote:
Wed Mar 06, 2019 6:09 pm
Ritesh wrote:
Wed Mar 06, 2019 4:39 pm
Thanks for providing details for that. So, Heap will be increased with 4 MB after enabling support for that. Correct?
Yes
Thanks a lot for providing support for that.
Regards,
Ritesh Prajapati

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

Re: Need help to start PSRAM support into ESP32 IDF 3.1

Postby Ritesh » Thu Mar 07, 2019 6:21 pm

Hi,

There are some conditions mentioned into hardware section to use PARAM like below.
The ESP-PSRAM32 chip is an 1.8V device, and can only be used in parallel with an 1.8V flash part. Make sure to either set the MTDI pin to a high signal level on bootup, or program the fuses in the ESP32 to always use a VDD_SIO level of 1.8V. Not doing this risks damaging the PSRAM and/or flash chip.
So, Would you please let me know what I need to take while using PSRAM along with flash memory?

Do I need to configure anything into EFUSE or any registers for that?
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: Google [Bot] and 140 guests