ESP32 DevKit - Frozen code

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Jurkylius
Posts: 7
Joined: Fri Oct 02, 2020 11:46 am

ESP32 DevKit - Frozen code

Post by Jurkylius » Fri Oct 02, 2020 11:55 am

Hello,
I have one big problem. I have working code but if I want doing anything else as writing or reading json files ESP give me Memory error.
I try using minimal code but for all sensors and sending data via uart have using many memory.
I think about frozen code because I need use many lists and cant using standart allocated buffers.
Have someone tutorial how create frozen code of micropython? My project is almoust done but if I save many data to file or reading data from sd card program will fall.

Many thanks for answers

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: ESP32 DevKit - Frozen code

Post by jimmo » Tue Oct 20, 2020 12:54 pm

Jurkylius wrote:
Fri Oct 02, 2020 11:55 am
Have someone tutorial how create frozen code of micropython? My project is almoust done but if I save many data to file or reading data from sd card program will fall.
https://github.com/peterhinch/micropyth ... -manifests

The simplest way is to make your own board definition and compile MicroPython using that board definition. The TinyPico is a good example https://github.com/micropython/micropyt ... s/TINYPICO

Note that the board definition folder doesn't have to be inside the MicroPython repo.

Post Reply