Hi,
I have looked below page for more understanding regarding configurations.
https://docs.espressif.com/projects/esp ... ram-config
So, Would anyone please suggest me like which configuration must be required and which configuration can be useful to use PSRAM without any issue?
Need help to start PSRAM support into ESP32 IDF 3.1
Re: Need help to start PSRAM support into ESP32 IDF 3.1
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: Need help to start PSRAM support into ESP32 IDF 3.1
Hi Espressif System Developer,
Any Update regarding last post in which I have sent couple of queries regarding configuration of PSRAM?
Any Update regarding last post in which I have sent couple of queries regarding configuration of PSRAM?
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: Need help to start PSRAM support into ESP32 IDF 3.1
I use this approach with heap_caps_malloc(size, MALLOC_CAP_SPIRAM)...
John A
I suppose that you could also integrate it to malloc. But I like the other because I know for sure that I'm getting it from PSRAM.Add external RAM to the capability allocator
Select this option by choosing “Make RAM allocatable using heap_caps_malloc(…, MALLOC_CAP_SPIRAM)” from CONFIG_SPIRAM_USE.
When enabled, memory is mapped to address 0x3F800000 but also added to the capabilities-based heap memory allocator using MALLOC_CAP_SPIRAM.
To allocate memory from external RAM, a program should call heap_caps_malloc(size, MALLOC_CAP_SPIRAM). After use, this memory can be freed by calling the normal free() function.
John A
Re: Need help to start PSRAM support into ESP32 IDF 3.1
Thanks for update regarding same. I will check it and let you know if need any further help for same.fly135 wrote: ↑Sat Mar 09, 2019 4:47 pmI use this approach with heap_caps_malloc(size, MALLOC_CAP_SPIRAM)...
I suppose that you could also integrate it to malloc. But I like the other because I know for sure that I'm getting it from PSRAM.Add external RAM to the capability allocator
Select this option by choosing “Make RAM allocatable using heap_caps_malloc(…, MALLOC_CAP_SPIRAM)” from CONFIG_SPIRAM_USE.
When enabled, memory is mapped to address 0x3F800000 but also added to the capabilities-based heap memory allocator using MALLOC_CAP_SPIRAM.
To allocate memory from external RAM, a program should call heap_caps_malloc(size, MALLOC_CAP_SPIRAM). After use, this memory can be freed by calling the normal free() function.
John A
Regards,
Ritesh Prajapati
Ritesh Prajapati
Who is online
Users browsing this forum: No registered users and 162 guests