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:esp32: Add config allow MbedTLS heap and LVGL Frambuffer use SPI RAM #85979

Closed
wants to merge 53 commits into from

Conversation

phb98
Copy link

@phb98 phb98 commented Feb 19, 2025

Add 2 follow Config Symbol: ESP_SPIRAM_ALLOC_MBED_HEAP and ESP_SPIRAM_LVGL_FRAMEBUFFER to allow user place heavy-ram usage mbedtls heap and lvgl frame buffer to SPI ram.

Copy link

Hello @phb98, and thank you very much for your first pull request to the Zephyr project!
Our Continuous Integration pipeline will execute a series of checks on your Pull Request commit messages and code, and you are expected to address any failures by updating the PR. Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. If you haven't already, please make sure to review the project's Contributor Expectations and update (by amending and force-pushing the commits) your pull request if necessary.
If you are stuck or need help please join us on Discord and ask your question there. Additionally, you can escalate the review when applicable. 😊

@phb98 phb98 changed the title [soc:esp32]: Add Config symbol to allow MbedTLS heap and LVGL Frambuffer use SPI RAM soc:esp32: Add Config symbol to allow MbedTLS heap and LVGL Frambuffer use SPI RAM Feb 19, 2025
@phb98 phb98 changed the title soc:esp32: Add Config symbol to allow MbedTLS heap and LVGL Frambuffer use SPI RAM soc:esp32: Add config allow MbedTLS heap and LVGL Frambuffer use SPI RAM Feb 19, 2025
@@ -227,6 +245,7 @@ config SPIRAM_SPIWP_SD3_PIN
If burning a customized set of SPI flash pins in eFuse and using DIO or DOUT mode for flash, set this
value to the GPIO number of the SPIRAM WP pin.


Copy link
Collaborator

Choose a reason for hiding this comment

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

Please, remove the extra line

@wmrsouza
Copy link
Collaborator

wmrsouza commented Feb 19, 2025

Nice work @phb98!
Have you tested this functionality with lvgl or mbed_tls?

Copy link
Member

@uLipe uLipe left a comment

Choose a reason for hiding this comment

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

This PR is touching two different aspects, so please split into in two different commits that addresses the mbedtls and lvgl individually.

@phb98
Copy link
Author

phb98 commented Feb 20, 2025

@wmrsouza I've tested http_get TLS sample with psram and this new Mbed config enable. for LVGL currently i'm waiting for the hardware so i will test later.

panekmaciej and others added 15 commits February 20, 2025 13:28
Refactors the code in adin2111_offload_thread
to improve its readability. Adds code to read RX FIFO
in OA mode until it is empty.

Signed-off-by: Maciej Panek <[email protected]>
Calculate the EBO properly, so the total frame written to TX FIFO
does not exceed maximum Ethernet frame length.
Makes the TCP stack to work properly, otherwise packets > 1472 are dopped,
as they would be padded by 64 more bytes
and hence exceed maximum Ethernet frame size.

Signed-off-by: Maciej Panek <[email protected]>
This revert the idea of 3fa7d78 from zephyrproject-rtos#78845.

The 3rd level IRQ APIs won't compile when
CONFIG_3RD_LEVEL_INTERRUPT_BITS=0.

Updated testcases accordingly.

Signed-off-by: Yong Cong Sin <[email protected]>
Signed-off-by: Yong Cong Sin <[email protected]>
Errors were logged for some cases in zephyr_img_mgmt.c, but not all.
This commit adds error logs for all error cases.

Signed-off-by: Nick Brook <[email protected]>
Add empty file to support building with CONFIG_BUILD_ONLY_NO_BLOBS
option.

Signed-off-by: Jiawei Yang <[email protected]>
Added reference to nPM1300 anomaly 38 replacing generic "LDO bug"

Signed-off-by: Sergei Ovchinnikov <[email protected]>
Add the -imacros property for assembler language to compensate
for changes introduced in PR zephyrproject-rtos#84800.

Signed-off-by: Björn Bergman <[email protected]>
Sphinx documents should not appear in multiple toctrees.
Consolidate SMP Groups under SMP Protocol Specification.

Signed-off-by: Benjamin Cabé <[email protected]>
During the transition to STM32_CLOCK macro (in 57723cf), the `clocks`
property of peripherals requiring more than one bit to be set were
mistakenly modified. Commit 2c3294b
partially fixed these errors, but some nodes for the U5 series are still
wrong.

Restore `clocks` on affected devices in corresponding STM32U5 DTSI.

Fixes: 57723cf
Signed-off-by: Mathieu Choplain <[email protected]>
Add workaround to HFCLK start and stop in nrf54l. In future workaround
will be in nrfx driver.

Signed-off-by: Krzysztof Chruściński <[email protected]>
I2C_SAM0_TRANSFER_TIMEOUT should depend on I2C_SAM0.

Signed-off-by: Anas Nashif <[email protected]>
The current datasheet URL gives a 404. Update it to the correct location.

Signed-off-by: Johan Hedberg <[email protected]>
Fixed a few occurrences of non-inclusive language.

Signed-off-by: Benjamin Cabé <[email protected]>
As part of cleaning up usage of non-inclusive language in-tree,
I spotted an obsolete mention to a udev rule that ModemManager doesn't
use anymore. Drop it.
See commit 9639e52726854782508e35a75c6abf874bd9e608 in ModemManager
repo.

Signed-off-by: Benjamin Cabé <[email protected]>
use allowlist terminology

Signed-off-by: Benjamin Cabé <[email protected]>
kartben and others added 16 commits February 20, 2025 13:28
s/avaialble/available/

Signed-off-by: Benjamin Cabé <[email protected]>
s/opperation/operation/

Signed-off-by: Benjamin Cabé <[email protected]>
s/condfiguration/configuration/

Signed-off-by: Benjamin Cabé <[email protected]>
s/condfiguration/configuration/

Signed-off-by: Benjamin Cabé <[email protected]>
s/advertisment/advertisement/

Signed-off-by: Benjamin Cabé <[email protected]>
s/programing/programming/

Signed-off-by: Benjamin Cabé <[email protected]>
s/programing/programming/

Signed-off-by: Benjamin Cabé <[email protected]>
s/excactly/exactly/

Signed-off-by: Benjamin Cabé <[email protected]>
This warning no longer seems to be triggering, so we shouldn't disable
it.

Signed-off-by: Tom Hughes <[email protected]>
While it doesn't cause any issues, it's more consistent and makes future
commits which add handling for more exception types more readable.

Based on: 0df8240

Signed-off-by: Michael Zimmermann <[email protected]>
NOTE: Even though previous commits indicate, that this can only happen on
MacOS, that's actually not true. It happens on Linux as well.

The constructor of `psutil.Process` can throw an exception as well, so we
need to wrap the whole loop in another try, unfortunately.

Signed-off-by: Michael Zimmermann <[email protected]>
…erty

This commit removes the flexram,bank-spec property from dtsi files.
The property causes flexram to be dynamically configured based on
the configuration in flexram,bank-spec. This is a problem for 2 reasons:
1) The FlexRAM will always be dynamically reconfigured to default
fuse configuration. This is unnecessary if using default fuses.
2) If a user decides to program fuses. The FlexRAM will still be
reconfigured to the default fuse configuration.

Modify description in the binding to show how to use the property at:
dts/bindings/memory-controllers/nxp,flexram.yaml

Added board overlay to mimxrt1170_evk_cm7 magic_addr:
samples/boards/nxp/mimxrt1170_evk_cm7/magic_addr/boards

Signed-off-by: Jacob Wienecke <[email protected]>
No files use MS_TO_US except tests/kernel/interrupt/src/nested_irq.c.
While the macro is convenient, we should put it in a more central
location and use it everywhere if we want to use it rather than just in
interrupt_util.h. For now, remove it and replace the two usages to match
how code is written in the rest of Zephyr.

Signed-off-by: Tom Hughes <[email protected]>
This is a follow-up from a recent debate on Discord about whether
splitting up related groups of properties is OK. Record the consensus
outcome of the debate so this question is easier to answer next time.

Signed-off-by: Martí Bolívar <[email protected]>
@phb98 phb98 force-pushed the esp32_spiram_lvgl_mbed branch from 46556f0 to 14ab0d7 Compare February 20, 2025 06:45
@phb98
Copy link
Author

phb98 commented Feb 20, 2025

I messed up git. Let me close this PR for now :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: ESP32 Espressif ESP32
Projects
None yet
Development

Successfully merging this pull request may close these issues.