wipy 3 - boot.py is not executed at starstup
-
Hello, the boot.py is not run at boot, only when i click on Run button in pimakr.
Can you help me ?
-
It is 0.
It suddenly starts to work. So this one is solved for me.
Still thank you for code sniplets.
-
@artiom if you run the following commands:
from machine import Pin p=Pin("P12", Pin.IN) p.value()
What is returned? It should be 0.
-
uos.listdir("/flash")
['main.py', 'sys', 'lib', 'cert', 'boot.py', 'test.py', 'project.pymakr']It was downloaded then uploaded by Pymakr. So I expect it to be in the right place.
Firmware was updated today.
-
Its also important to make sure you have updated your WiPy 3.0 to the latest firmware. I faced similar issues that were fixed after updating.
-
@artiom Are you sure that boot.py is in the the directory /flash.
In the REPL prompt, issue the commans:import uos uos.listdir("/flash")
boot.py must be in the list returned by listdir()
-
I have the same issue. My P12 is not connected to anything.
-
@karlito is by chance P12, also called G28 or GPIO21, connected to 3.3V? In that case the execution of boot.py and main.py is skipped.
-
And main.py is not run too at boot