pico-sdk icon indicating copy to clipboard operation
pico-sdk copied to clipboard

Unable to build pico_cyw43_arch with CYW43_LWIP=0

Open JohnForecast opened this issue 2 months ago • 2 comments

I'm trying to build an application which reads and writes raw packets over Wifi. I build with library pico_cyw43_arch_poll and define CYW43_LWIP=0 so there will be no IP stack present.

cyw43_arch_wifi_connect_bssid_until() calls cyw43_tcpip_link_status() to check if link has been established but cyw43_tcpip_link_status() is only compiled if CYW43_LWIP=1

Seems like cyw43_tcpip_link_status() should be a weak definition which just calls cyw43_wifi_link_status() like the other cyw43_tcpip_... routines in cyw43_driver.c

John.

JohnForecast avatar Oct 17 '25 00:10 JohnForecast

The driver could probably do better here. The other functions start with cyw43_cb* and the docs make it clear that they "must be provided by the network stack interface". It might be better to fix the issue there rather than just work around the issue in the SDK.

peterharperuk avatar Oct 17 '25 09:10 peterharperuk

ping @dpgeorge

lurch avatar Oct 17 '25 10:10 lurch