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

soc: xtensa: esp32s3: add support for SPIRAM #59770

Merged
merged 3 commits into from
Jul 26, 2023

Conversation

LucasTambor
Copy link
Collaborator

Add support for external PSRAM for esp32s3.
Test esp32s3 for cache coexistence. Update test documentation.
Add section to allocate memory of WiFi and NET stack in SPIRAM

uLipe
uLipe previously approved these changes Jun 26, 2023
@zephyrbot
Copy link
Collaborator

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
hal_espressif zephyrproject-rtos/hal_espressif@9531c1c zephyrproject-rtos/hal_espressif@623bfce zephyrproject-rtos/[email protected]

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@LucasTambor LucasTambor requested a review from uLipe June 27, 2023 10:46
sylvioalves
sylvioalves previously approved these changes Jul 3, 2023
@@ -18,3 +18,6 @@ config HEAP_MEM_POOL_SIZE
choice BT_HCI_BUS_TYPE
default BT_ESP32 if BT
endchoice

config ESP_SPIRAM
default y

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think SPIRAM should be enabled in the application code rather on board level.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be great if if would be selected automatically based on devicetree node corresponding to SPIRAM.

@marekmatej
Copy link

Could we please wait until #58454 gets merged?

marekmatej
marekmatej previously approved these changes Jul 6, 2023
@marekmatej marekmatej added the DNM This PR should not be merged (Do Not Merge) label Jul 6, 2023
@marekmatej marekmatej removed the DNM This PR should not be merged (Do Not Merge) label Jul 25, 2023
@LucasTambor LucasTambor dismissed stale reviews from marekmatej and sylvioalves via d007997 July 25, 2023 19:10
@LucasTambor LucasTambor force-pushed the feature/s3_spiram branch 2 times, most recently from d007997 to d54676b Compare July 25, 2023 19:13

.. code-block:: console

west build -b esp32_devkitc_wrover tests/boards/espressif_esp32/cache_coex
west flash --esp-device /dev/ttyUSB0
west build -b <board> tests/boards/espressif_esp32/cache_coex

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea :)

. = ALIGN(0x10000);
. = ALIGN(4);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This alignment was previously wrong / just arbitrary?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was arbitrary, for testing purposes. Ended up forgetting to put it on the first commit. Thanks for pointing it out

Add support for external PSRAM for esp32s3.

Signed-off-by: Lucas Tamborrino <[email protected]>
Test esp32s3 for cache coexistence. Update test documentation.

Signed-off-by: Lucas Tamborrino <[email protected]>
Add section to allocate memory of WiFi and NET stack in SPIRAM

Signed-off-by: Lucas Tamborrino <[email protected]>
@carlescufi carlescufi merged commit 47515f4 into zephyrproject-rtos:main Jul 26, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants