File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
ports/raspberrypi/supervisor Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 62
62
#include "src/rp2_common/hardware_sync/include/hardware/sync.h"
63
63
#include "src/rp2_common/hardware_timer/include/hardware/timer.h"
64
64
#if CIRCUITPY_CYW43
65
+ #include "py/mphal.h"
65
66
#include "pico/cyw43_arch.h"
66
67
#endif
67
68
#include "src/common/pico_time/include/pico/time.h"
@@ -143,6 +144,11 @@ safe_mode_t port_init(void) {
143
144
never_reset_pin_number (24 );
144
145
never_reset_pin_number (25 );
145
146
never_reset_pin_number (29 );
147
+ // A small number of samples of pico w need an additional delay before
148
+ // initializing the cyw43 chip. Delays inside cyw43_arch_init_with_country
149
+ // are intended to meet the power on timing requirements, but apparently
150
+ // are inadequate. We'll back off this long delay based on future testing.
151
+ mp_hal_delay_ms (1000 );
146
152
// Change this as a placeholder as to how to init with country code.
147
153
// Default country code is CYW43_COUNTRY_WORLDWIDE)
148
154
if (cyw43_arch_init_with_country (PICO_CYW43_ARCH_DEFAULT_COUNTRY_CODE )) {
You can’t perform that action at this time.
0 commit comments