Skip to content

ENOMEM on request('post'...) with 1.21.0 version #12788

Answered by jimmo
abegines asked this question in ESP32
Discussion options

You must be logged in to vote

I think what's going on here is a variation on #8940 and we hoped would be improved in v1.21 by the changes described in https://github.com/orgs/micropython/discussions/12316

The high-level issue is that on ESP32, the RAM is available to us and TLS (mbedtls) as disjoint regions of contiguous RAM. The old behavior was that MicroPython would allocate the largest such region and leave everything else for the IDF (wifi, ssl, socket buffers, etc). Different IDF versions resulted in a different memory layout as their internal allocations and data structures moved around (this is one major reason for differences in v1.21).

The problem we have now is that MicroPython can actually allocate more RA…

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@abegines
Comment options

@dpgeorge
Comment options

@projectgus
Comment options

@dpgeorge
Comment options

Answer selected by abegines
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@bobveringa
Comment options

Comment options

You must be logged in to vote
1 reply
@projectgus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
6 participants