Wifi on Pico W board doesn't work when the system frequency is too high, the program remains in an infinite loop #2590
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If you need to apply a fix in Alternatively, CC @earlephilhower, we could activate the We would have to add that probably in https://github.com/earlephilhower/arduino-pico/blob/master/tools/libpico/CMakeLists.txt#L49-L59. |
Beta Was this translation helpful? Give feedback.
I've managed to successfully recompile libpico with
CYW43_PIO_CLOCK_DIV_DYNAMIC=1
and addcyw43_set_pio_clock_divisor(4, 0); // div by 4.0
intopicow_init.cpp
before thecyw43_arch_init_with_country()
, and my example WiFi scan sketch with a Pico clocked at 260MHz went from crashing after printing the clock speed to working successfully and scanning the WiFi networks.I could not test 275 MHz or 300 MHz because at that speed, the USB connection crashed / was not established.
Example PlatformIO project: https://github.com/maxgerhardt/pio-overclocked-picow-test
The arduino-pico fork: https://github.com/maxgerhardt/arduino-pico/tree/overclocked_wifi