Skip to content

Wifi not initializing on Badger2040W #32

@christopherdoyle

Description

@christopherdoyle

I am getting the following error trying to initialize wifi network using .connect:

ampy.pyboard.PyboardError: ('exception', b'', b'Traceback (most recent call last):\r\n  File "<stdin>", line 19, in <module>\r\n  File "badger2040.py", line 264, in connect\r\n  File "uasyncio/core.py", line 1, in run_until_complete\r\n  File "uasyncio/core.py", line 1, in run_until_complete\r\n  File "uasyncio/core.py", line 1, in run_until_complete\r\n  File "network_manager.py", line 78, in client\r\nOSError: [Errno 1] EPERM\r\n')

I have tried this on 3 different wifi networks and with v0.0.1 and v0.0.2 of the firmware, and the firmware from the latest build.

The simplest example of the error is:

>>> import network
>>> wlan = network.WLAN(network.STA_IF)
>>> wlan.active(True)
>>> wlan.scan()
Traceback (most recent call last):   
  File "<stdin>", line 1, in <module>
OSError: [Errno 1] EPERM

I thought hardware issue, but then I flashed the latest stock rp2 pico-w firmware, and the same command works correctly and lists wifi networks. I am able to connect with wlan.connect and get an ip address.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions