Skip to content

Wifi on Pico W board doesn't work when the system frequency is too high, the program remains in an infinite loop #2590

Answered by maxgerhardt
klug27 asked this question in Q&A
Discussion options

You must be logged in to vote

I've managed to successfully recompile libpico with CYW43_PIO_CLOCK_DIV_DYNAMIC=1 and add cyw43_set_pio_clock_divisor(4, 0); // div by 4.0 into picow_init.cpp before the cyw43_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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@maxgerhardt
Comment options

@maxgerhardt
Comment options

Answer selected by klug27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants