Search found 31 matches

by Peugot206
Sun Apr 17, 2022 3:26 pm
Forum: Programs, Libraries and Tools
Topic: Building MP firmware results in boot-loop ESP32
Replies: 13
Views: 6035

Building MP firmware results in boot-loop ESP32

Hello forum users, After a lot of trouble trying to figure out how to be able to build your micropython firmware (https://forum.micropython.org/viewtopic.php?f=15&t=12268) I was finally succesfull in building my own .bin file for the ESP32. I uploaded the .bin file via Thonny on my ESP32, but it res...
by Peugot206
Sun Apr 17, 2022 10:43 am
Forum: Programs, Libraries and Tools
Topic: How to freeze module for ESP32
Replies: 19
Views: 7941

Re: How to freeze module for ESP32

Edit: the custom build MP firmware .bin file for the ESP32 results in a boot-loop, I created a new thread here: viewtopic.php?f=15&t=12276, since the topic is different now.
by Peugot206
Sun Apr 17, 2022 10:16 am
Forum: Programs, Libraries and Tools
Topic: How to freeze module for ESP32
Replies: 19
Views: 7941

Re: How to freeze module for ESP32

I want to bake in the IR library for a test, it consists out of 2 folders:

ir_rx
-- file 1
-- file 2

ir_tx
-- file 1
-- file 2

Can I simply put the 'ir_rx' and 'ir_tx' in the /ports/esp32/modules/ folder and then run make, and from my main.py call

Code: Select all

import ir_rx.file_1
Or will that not work?
by Peugot206
Sun Apr 17, 2022 10:12 am
Forum: Programs, Libraries and Tools
Topic: How to freeze module for ESP32
Replies: 19
Views: 7941

Re: How to freeze module for ESP32

Ah, it was awhile ago when I tried this and since there has been a change to cmake. There have been some threads about the differences. I would expect the readme in /ports/esp32 to reflect the new make environment. It works!! I switched to the version in the ESP32 readme (even though I have been fo...
by Peugot206
Sun Apr 17, 2022 9:46 am
Forum: Programs, Libraries and Tools
Topic: How to freeze module for ESP32
Replies: 19
Views: 7941

Re: How to freeze module for ESP32

Is that related to 32bit versus 64bit? Uhm none I think, I always use the 64-bit, but the Ubuntu version was 16.04, and the latest is already 20.4 or something, so it was very outdated. I've now installed a fresh Ubuntu version, with the version 20.04, Python 3.8.10 installed on it. Built all the E...
by Peugot206
Sun Apr 17, 2022 8:40 am
Forum: Programs, Libraries and Tools
Topic: How to freeze module for ESP32
Replies: 19
Views: 7941

Re: How to freeze module for ESP32

Thanks davef for your help so far! I figured out my Ubuntu version is too old and thus does not allow users to upgrade to Python 3.7 anymore. I'm updating the latest Ubuntu version now (even though the tutorial I watched recommended an older one). And will re-do all the steps. I'm getting more of an...
by Peugot206
Sun Apr 17, 2022 8:11 am
Forum: Programs, Libraries and Tools
Topic: How to freeze module for ESP32
Replies: 19
Views: 7941

Re: How to freeze module for ESP32

Have you got folder called <esp> in /home? And in that esp-idf? Did you run install.sh? Yes I have, this should be the correct toolchain for the ESP32. Not being able to upgrade Python is a show-stopper. Can you upgrade anything? What happens if on the command line you put: Yes, updating works fine...
by Peugot206
Sat Apr 16, 2022 7:26 pm
Forum: Programs, Libraries and Tools
Topic: How to freeze module for ESP32
Replies: 19
Views: 7941

Re: How to freeze module for ESP32

Ok so I've been spending hours now trying to get it working, but I'm having a hard time. I've setup a VM with Ubuntu 16.04 (https://www.youtube.com/watch?v=jG7WBY_vmpE) following this guide it was recommended. I ran in many installation errors while trying to install the esp-open-sdk toolchain, so I...
by Peugot206
Sat Apr 16, 2022 9:53 am
Forum: Programs, Libraries and Tools
Topic: How to freeze module for ESP32
Replies: 19
Views: 7941

Re: How to freeze module for ESP32

Look for a tutorial for building Micropython from the source files. https://github.com/micropython/micropython/wiki/Getting-Started Check that your result actually works on the ESP32 then add the code you want to freeze to: micropython/ports/esp32/modules and re-build. There is probably a <clean> i...
by Peugot206
Fri Apr 15, 2022 5:49 pm
Forum: Programs, Libraries and Tools
Topic: How to freeze module for ESP32
Replies: 19
Views: 7941

How to freeze module for ESP32

Hello forum users, For some libraries I want to use, my ESP32 does not have enough heap memory available, so I need to freeze the module in order to store it in the ROM and thus save RAM. However, I see most tutorials point to this https://learn.adafruit.com/micropython-basics-loading-modules/frozen...