Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Jan 31, 2024

We used to default to malloc() using SPIRAM but it disables dynamic WiFi TX buffers. The increased static buffer allocation prevents MBEDTLS from allocating everything it needs. So, switch the IDF to SPIRAM through caps_alloc only. This is pretty much what we do in CP8 except we no longer need to explicitly give the IDF SPIRAM memory to use.

Fixes #8682 (again)

We used to default to `malloc()` using SPIRAM but it disables
dynamic WiFi TX buffers. The increased static buffer allocation
prevents MBEDTLS from allocating everything it needs. So, switch
the IDF to SPIRAM through caps_alloc only. This is pretty much what
we do in CP8 except we no longer need to explicitly give the IDF
SPIRAM memory to use.

Fixes micropython#8682 (again)
@tannewt tannewt added this to the 9.0.0 milestone Jan 31, 2024
@tannewt tannewt requested a review from jepler January 31, 2024 20:59
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

Thanks! I did not test.

@dhalbert dhalbert merged commit 7ba62bb into adafruit:main Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

espidf memory error with 9.0 alpha.5
2 participants