Skip to content

Wifi Unknown Error 0x0101 after flashing a new version of micropython. #17285

Answered by frazzmatazz
frazzmatazz asked this question in ESP32
Discussion options

You must be logged in to vote

Ah, thank you. I was running out of memory I think. Triggered by a combo of micropython update and updating screen/font code, with too many fonts in ram.

I'm using the SSD1309 library with xglcd_font and 4 fonts of varying sizes, which on disk occupy 128K so must take lots of ram. I have it working now after substituting the largest font, but I think I'll have to restructure the code to load the largest 2 fonts as the user changes settings, rather than load all into memory and change which variable it points to. 😆

gc.memfree() is now showing between 45k and 82k free in the main loop with gc.enable(). Is that ok?

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by frazzmatazz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
3 participants