main.py completes with repl but not with reset or cold boot #10362
-
I have discovered some unexpected behaviour of the RP2040 after a hardware reset.
Note, if I reduce the sleep() duration to 0.4 seconds, all is well.
The RP2040 is on a Waveshare RP2040-Zero and the micropython installed is MicroPython v1.19.1-724-gfb7d21153 on 2022-12-01; Raspberry Pi Pico with RP2040 The nearest similar discussion I could find was on an archive but that seemed to concern boards without auto-reset. I also saw mention of something similar if the i2c clock is set too high, but that is probably irrelevant. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I've tested this on a SeeedStudio XIOA RP2040 module which also has a single neopixel though on GPIO 12. And it works as expected whatever the sleep period. Have you tried using an external LED? At least check that it's not a problem with neopixel. With an issue like this the minimal case will help to isolate the problem. |
Beta Was this translation helpful? Give feedback.
-
I am not sure this is related, but we found on a number of boards that the xtal clock does not stabilize as quickly as the default delay for this. I PR'd a fix for this, raspberrypi/pico-sdk#457, which we apply to all Adafruit boards (added |
Beta Was this translation helpful? Give feedback.
I've tested this on a SeeedStudio XIOA RP2040 module which also has a single neopixel though on GPIO 12. And it works as expected whatever the sleep period.
Have you tried using an external LED? At least check that it's not a problem with neopixel. With an issue like this the minimal case will help to isolate the problem.