Hi All
i am new to the ESP32 and I wanted to use microPython to program it. My problem is that after the basic blinking led program which worked fine, when I open Upycraft the boot.py file is missing. any help on how to recreate it, what I am doing wrong on whether Upycraft is the best tool for a programmer new to the ESP32
many thanks in advance
Hi.
That is very weird. Because when you flash your ESP32 with MicroPython firmware, it automatically creates a boot.py file and unless you delete it yourself, it won’t be deleted.
If you flash your ESP32 with MicroPython again, it will create the boot.py file.
Alternatively, you can create the boot.py file yourself. To do that, follow the next steps:
- Go to File > New. A new file should open
- Copy the following code to the boot.py file (this is the code that comes by default on the boot.py
# This file is executed on every boot (including wake-boot from deepsleep) #import esp< #esp.osdebug(None) import uos, machine #uos.dupterm(None, 1) # disable REPL on UART(0) import gc #import webrepl #webrepl.start() gc.collect()
3. Save that file as boot.py
4. Click the “Upload/Run” button to upload the boot.py file
Some of our readers had a hard time using uPyCraft IDE. For that reason, we provide instructions on using an alternative IDE: Thonny IDE.
Instructions for Thonny IDE are included in the MicroPython ebook version 1.1 on page 312.
I hope this helps.
Let me know if you need any more help.
Regards,
Sara
Hi Sara
Many thanks for the quick response, I have installed Thonny and I will work with that and see how i get on
Thanks
Brendan
Hi Sara
Thonny seems to work, I have used esptool.py to flash the firmware and am working my way through the book
Congratulations on some great courses by the way
I want to work on programming over WiFi next
Thanks
Brendan