esp32p4: Implements PSRAM support for ESP32-P4#18754
Merged
acassis merged 3 commits intoapache:masterfrom Apr 18, 2026
Merged
Conversation
fdcavalcanti
previously approved these changes
Apr 17, 2026
simbit18
previously approved these changes
Apr 17, 2026
Contributor
|
Hi @tmedicci please fix |
06c82f8 to
4c3292c
Compare
Contributor
Author
Updated! Thanks @simbit18 |
acassis
reviewed
Apr 17, 2026
simbit18
previously approved these changes
Apr 17, 2026
fdcavalcanti
previously approved these changes
Apr 17, 2026
This commit implements the in-package PSRAM support for ESP32-P4. Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
This commit enables using ESP32-P4's PSRAM on Function-EV-Board. The in-chip PSRAM memory is added to the user heap and the internal memory is dedicated to a kernel heap. Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
This commit adds an entry for the ESP32-P4-Function-EV-Board's `psram_usrheap` defconfig on docs. Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
4c3292c to
29d9daf
Compare
fdcavalcanti
approved these changes
Apr 17, 2026
acassis
approved these changes
Apr 17, 2026
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the in-package PSRAM support for ESP32-P4.
Impact
Impact on user: Yes. Enable the use of the in-chip PSRAM on ESP32-P4.
Impact on build: No.
Impact on hardware: Yes. ESP32-P4.
Impact on documentation: Yes.
esp32p4-function-ev-board:psram_usrheapdefconfig properly documented.Impact on security: No.
Impact on compatibility: No.
Testing
Build
esp32p4-function-ev-board:psram_usrheapdefconfig, flash the firmware and run the testing commands below.Building
Running
Run the
freeandheapcommands on NSH.Results
freeShows both Kernel and User Heap:
heapExpect the test to complete successfully: