Raspberry Pi Pico W - firmware logs #9548
-
Hey everyone, there is a RP Pico W I am using with MicroPython and I am experiencing some issues running it as the main.py is not starting always reliably when running from a USB charger supply. I have elliminated other errors and made some logging in my setup. There is no stratup message printed by the device sometimes and the device doesn't seems to run until the next restart. I am using now the bellow firmware, but experienced this effect with previous versions too, while developing my software. Is there a way to dump some system level logs made by the firmware? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
You could try connecting a serial interface for off board logging, or just use the led to blink at certain stages of main.py. |
Beta Was this translation helpful? Give feedback.
-
@programer-a does this issue ever happen if you're running from a different power supply (e.g. USB connected to your computer?) Do you enable WiFi? At what point in startup does that happen? Do you see the issue if you don't enable WiFi? |
Beta Was this translation helpful? Give feedback.
-
Hey @jimmo,
Yes, I am using WiFi.
I have tried to disable the WiFi before once, because some older threads
suggested it had some similar effect on startup previously. There was a way
to turn logging on for the WiFi operations, but I don't remember where did
I see this. I will try to continue searching.
My time is a bit limited to work with this now, but I will try to check
this gradually. In docs of network and the WLAN class, I have found the
active("down") as an option to turn the interface off.
Thank you for your suggestion, I will try to eliminate the relationship
with WiFi if possible in tests.
I am usually using other power sources only for programming until now.
Sometimes I am experiencing connection issues via USB, but I had some
errors also after my main call I have found. To reproduce and then test.
will take me lots of time.
It there no way to see at least some feedback from the firmware about the
start up by creating a file or some other way?
|
Beta Was this translation helpful? Give feedback.
You could try connecting a serial interface for off board logging, or just use the led to blink at certain stages of main.py.
Under stable power conditions, main.py only refuses to start, if boot.py failed.
If power is not stable, anything can happen.