Boot program

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
chipxx
Posts: 14
Joined: Mon Oct 21, 2019 8:55 am

Boot program

Post by chipxx » Mon Oct 21, 2019 8:57 am

Hi all,when sent blink program, in micropython on esp32, at restart the blink does not work.
With Arduino when I program it to restart it it keeps the program and it works. How can I do that?
Thank you :cry:
ric

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

Re: Boot program

Post by jimmo » Mon Oct 21, 2019 10:21 am

Hi,

How are you sending your blink program to the board? Using the REPL?

If so, this answer might be useful to you -- viewtopic.php?f=16&t=7117

chipxx
Posts: 14
Joined: Mon Oct 21, 2019 8:55 am

Re: Boot program

Post by chipxx » Mon Oct 21, 2019 11:16 am

Hi Jimmo, I use uPyCraft.

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

Re: Boot program

Post by jimmo » Mon Oct 21, 2019 11:46 am

When you click the Run button in uPyCraft, it just runs the code on the device without saving it anywhere. This is super useful for getting your program working but if you want it to run automatically on boot you need to copy your code to the device's filesystem and have it run from main.py. (You can copy files to/from the device using uPyCraft)

chipxx
Posts: 14
Joined: Mon Oct 21, 2019 8:55 am

Re: Boot program

Post by chipxx » Mon Oct 21, 2019 11:59 am

Great! It's working. I'm trying to use also MU ide and I think it's better besides being faster. :)

Post Reply