Skip to content
Discussion options

You must be logged in to vote

@pavelgolikov The micropython heap is does not take up the full SRAM because we need to leave some behind for the Espressif IDF (e.g. for the WiFi and BLE stacks, as well as things like SSL and socket buffers). There's some history here...

The summary of the heuristic we use is that we ask the IDF for the largest contiguous free region, and then use half of that.

So what you're seeing here is that due to memory usage by the IDF leading to fragmentation, the size of the largest contiguous region is different.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@pavelgolikov
Comment options

@jimmo
Comment options

@pavelgolikov
Comment options

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