For some reason my Presto has just stopped connecting to the internet properly, it always seems to throw errors related to the CYW43 chip. It’s unusual because it was working fine but randomly stopped. I’ve re-installed the firmware and that hasn’t worked either. The usual error is “[CYW43] STALL(0;1-1): timeout” but there are other ones too. Any help would be much appreciated
I ran across a similar error with my Presto when I tried to create a network connection using C++.
I fixed my problem by using a slower clock speed; which in C++ was:-
set_sys_clock_khz(120000, true);
Hi unfortunately when I tried lowering the clock speed to 120MHz in micropython using machine.freq() that didn’t seem to work. I would edit the presto firmware to change that line which may solve it however I am not proficient enough in C++
I tried the following on a Pico W:-
import machine
machine.freq(120000000)
and it seemed to work ok.
Not sure what valid clock frequencies might work on the Pico 2, but it might be worth experimenting a bit.
I’m starting to think the chip on my Presto is faulty or has got damaged somehow because nothing seems to work, even the most simplest of things, if it involves WiFi has stopped working including for example just running this code, which worked ever since I got the presto up until now results in the chip stalling:
from presto import Presto
presto = Presto()
presto.connect()
[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
[CYW43] STALL(0;1-1): timeout
[CYW43] STALL(0;1-1): timeout
[CYW43] STALL(0;1-1): timeout
Here is a more interesting error sequence:
[CYW43] error: hdr mismatch 0300 ^ feff
[CYW43] error: hdr mismatch 0300 ^ feff
[CYW43] error: hdr mismatch 0300 ^ feff
[CYW43] error: hdr mismatch 0300 ^ feff
[CYW43] error: hdr mismatch 0300 ^ feff
[CYW43] error: hdr mismatch 0300 ^ feff
[CYW43] error: hdr mismatch 0d1c ^ fff7
[CYW43] error: hdr mismatch 0d1c ^ fff7
[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
[CYW43] STALL(0;1-1): timeout
[CYW43] STALL(0;1-1): timeout
[CYW43] STALL(0;1-1): timeout
Interestingly it seems that when the SD card is removed it starts with hdr mismatch
before stalling but with the SD card in it stalls from the beginning
This kind of error already popped up in a different context: Plasma 2350 W wifi problems - #18 by SirFico
It is a lengthy thread and it was solved by an up to date firmware. Which you already tried.
If you read through the thread you will see that one of the Pimoroni guys did not rule out a hardware problem either. So it might be best to drop a note to support, linking to this thread and ask them what to do.
The trick with the lower system-clock is not as simple as it sounds, since changing the system clock speed also needs a change in the PIO divisor (the CYW43 has a PIO connection). But I would say that @DivingIvan is maybe pointing in the right direction. Pimoroni support should check the clock speeds in their Presto firmware. Maybe they are just too high.
Okay I’ll contact support, thanks for your help 👍🏼