• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Missing BOOT.PY for an ESP32 when using upycraft

Q&A Forum › Missing BOOT.PY for an ESP32 when using upycraft
0 Vote Up Vote Down
Ryanb100 asked 6 years ago
6 Answers
0 Vote Up Vote Down
Ryanb100 answered 6 years ago

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

0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

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:

  1. Go to File > New. A new file should open
  2. 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

0 Vote Up Vote Down
Ryanb100 answered 6 years ago

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

0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Great!
Then let me know how you did.
Regards,
Sara

0 Vote Up Vote Down
Ryanb100 answered 6 years ago

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

0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

That’s great!
Thank you for your kind words.
I’ll mark this question as resolved.
If you need further help, just open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.