# Presto - WiFi fails to connect

**URL:** <https://forums.pimoroni.com/t/presto-wifi-fails-to-connect/27638>\
**Category:** Support\
**Created:** [April 16, 2025, 2:48pm UTC](https://forums.pimoroni.com/t/presto-wifi-fails-to-connect/27638 "2025-04-16T14:48:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DivingIvan](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@DivingIvan](https://forums.pimoroni.com/u/DivingIvan)\
**Post date:** [April 16, 2025, 2:48pm UTC](https://forums.pimoroni.com/t/presto-wifi-fails-to-connect/27638/1 "2025-04-16T14:48:19Z")

</div>

I’ve been having problems getting the WiFi on the Presto to connect using the cwy43\_driver from the SDK.

cyw43\_arch\_init() seems to work fine, as does cyw43\_arch\_enable\_sta\_mode(). However, cyw43\_arch\_wifi\_connect\_timeout\_ms() fails every time.

I’ve tried running the same code on a Pico 2W, and it works without a problem.

I’d really appreciate any guidance/help that anyone can offer.

The following is the output I’m getting in the Visual Studio serial monitor:-

---- Opened the serial port /dev/ttyACM0 ----  
Wi-Fi init ok  
Version: 7.95.49 (2271bb6 CY) CRC: b7a28ef3 Date: Mon 2021-11-29 22:50:27 PST Ucode Ver: 1043.2162 FWID 01-c51d9400  
[CYW43] error: hdr mismatch 0100 ^ ffff  
[CYW43] error: hdr mismatch 0100 ^ ffff  
[CYW43] error: hdr mismatch 040e ^ fffb  
[CYW43] Bus error condition detected 0x2002  
[CYW43] do\_ioctl(2, 263, 1008): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] CLM load failed  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
Warning. No mac in otp. Generating mac from board id  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
cyw43 loaded ok, mac 00:00:00:00:00:00  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
clmver  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
Wi-Fi enabled  
…  
Connecting to Wi-Fi…  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
[CYW43] STALL(0;1-1): timeout  
connect status: joining  
failed to connect.

---

<div class="post-metadata">

**Author:** ![DivingIvan](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@DivingIvan](https://forums.pimoroni.com/u/DivingIvan)\
**Post date:** [April 17, 2025, 8:09am UTC](https://forums.pimoroni.com/t/presto-wifi-fails-to-connect/27638/2 "2025-04-17T08:09:44Z")

</div>

I’ve done a bit more digging of my own, and am beginning to wonder whether this problem may simply be caused by my choice of PICO\_BOARD.

I’d used the presto-boilerplate project code as a model for the project I’m working on, and this has a PICO\_BOARD setting of pimoroni\_pico\_plus2\_rp2350. The problem with this is that it didn’t build the cyw43 drivers, so I had changed PICO\_BOARD to pico2\_w. However, having looked deeper into the Pico SDK I have found a possible PICO\_BOARD setting of pimoroni\_pico\_plus2\_w\_rp2350, so I am going to give this a try to see if it makes a difference.

Unfortunately I won’t be able to check this today, but I’ll report back as soon as I get the chance to try it out.

---

<div class="post-metadata">

**Author:** ![DivingIvan](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@DivingIvan](https://forums.pimoroni.com/u/DivingIvan)\
**Post date:** [April 20, 2025, 1:26pm UTC](https://forums.pimoroni.com/t/presto-wifi-fails-to-connect/27638/3 "2025-04-20T13:26:37Z")

</div>

Update. I have tried setting PICO\_BOARD to pimoroni\_pico\_plus2\_rp2350, but this makes no difference to the problem that I have been getting. I am still getting the CYW43 hdr mismatch and CYW43 stall messages, and the WiFi fails to connect every time I try it.

I’m not sure what else I can try in order to get this working, and am actually wondering whether it might be a hardware fault. Any suggestions would be gratefully received.

---

<div class="post-metadata">

**Author:** ![DivingIvan](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@DivingIvan](https://forums.pimoroni.com/u/DivingIvan)\
**Post date:** [April 21, 2025, 5:11pm UTC](https://forums.pimoroni.com/t/presto-wifi-fails-to-connect/27638/4 "2025-04-21T17:11:43Z")

</div>

Further update - SOLVED:

The Presto Boilerplate project, on which my project is based, had the line:-

```
set_sys_clock_khz(240000, true);

```

at the beginning of the main program code. I experimented with changing the frequency.

I have found that using a frequency value of 120000 causes my problem to go away. I’ve yet to see if this might cause me other issues, but for now I have at least got the WiFi to connect successfully.
