Unable to perform a soft reset
Posted: Sat Apr 03, 2021 6:01 pm
Hi. I'm trying out my ESP32 board and I noticed that the soft_reset function (in the machine module) does not work.
I have a boot.py file that looks like this:
My ESP32 does not want to soft reboot. Basically, nothing happens. The "Hello World!" string is printed and that's it.
The function does work if I type it in manually into the REPL.
Could someone please explain why it's not working? I'm kinda confused. I'm using the official build from MicroPython's website (GENERIC_SPIRAM).
I have a boot.py file that looks like this:
Code: Select all
import machine
print("Hello World!")
machine.soft_reset()
Code: Select all
Hello World!
MicroPython v1.14 on 2021-02-02; ESP32 module (spiram) with ESP32
Type "help()" for more information.
>>>
Code: Select all
>>> machine.soft_reset()
MPY: soft reboot
Hello World!
MicroPython v1.14 on 2021-02-02; ESP32 module (spiram) with ESP32
Type "help()" for more information.
>>>