PYBD SF6W WiFi Issues - [CYW43] HT not ready
So far seven of our PYBD SF6W devices have started to have problems with the wifi module. When setting the wifi module to be active(True) an error message is printed to the console and the wifi is unable to be used. I have 7 devices that now show this behaviour, that in the past have worked fine connecting to a wifi access point and downloading files over http.
I have run the same set of commands using rshell/repl on a number of versions of the firmware, including the latest unstable release. I found it produced extra output statements on the v1.12 firmware that might be more of a clue.
This issue is related to the forum post.
As well as the "[CYW43] HT not ready", messages I have also occasionally seen "[CYW43] F2 not ready".
Entering REPL. Use Control-X to exit.
>
MicroPython v1.12 on 2019-12-20; PYBD-SF6W with STM32F767IIK
Type "help()" for more information.
>>>
>>> import network
>>> sta_if = network.WLAN(network.STA_IF)
>>> sta_if.config(trace=1)
>>> sta_if.active()
False
>>> sta_if.active(True)
[CYW43] HT not ready
[CYW43] HT not ready
[CYW43] HT not ready
[CYW43] send_ethernet failed: -5
[CYW43] HT not ready
[CYW43] send_ethernet failed: -5
>>>
Entering REPL. Use Control-X to exit.
>
MicroPython v1.16-259-g86371781e on 2021-08-31; PYBD-SF6W with STM32F767IIK
Type "help()" for more information.
>>>
>>> import network
>>> sta_if = network.WLAN(network.STA_IF)
>>> sta_if.config(trace=1)
>>> sta_if.active()
False
>>> sta_if.active(True)
[CYW43] HT not ready
>>>
Is it possible that the firmware on the SoC WiFi chip has been corrupted? Is there a way to reflash this chip?
lib/cyw43-driver: Update driver to latest version v1.1.1.
Summary
Update cyw43-driver to the latest for the upcoming v1.28.0 release.
Includes a fix to STA teardown to deinit tcpip and clear itf_state.
TODO:
- still need to tag cyw43-driver at v1.1.1.
Testing
The new driver was tested previously when the fix was merged in cyw43-driver.
Also retested this PR on RPI_PICO2_W and PYBD_SF6 running all available WLAN tests in this repo.
Generative AI
I did not use generative AI tools when creating this PR.