WLAN functions do not work from core1 #11950
Unanswered
ayjaym
asked this question in
RP2040 / Pico
Replies: 1 comment 1 reply
-
I don't know if it's a hardware issue or older library problem, but other platforms running on the Raspberry Pi Pico W have reported only being able to access wifi functions from one core (ref: WiFi (Raspberry Pi Pico W) Support — Arduino-Pico 3.3.0 documentation). Can your project be implemented under asyncio? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've posted to raspberrypi.stackexchange.com with the details but in essence WLAN functionality doesn't appear to work when invoked from core1. (tested with Micropython 1.20.0). For example, configuring an AP hangs when the AP is enabled, but the exact same code works perfectly from core0. This is so even if the code is guarded by a lock. This is a bit of a showstopper as I had implemented rtpMIDI and want the message handling loop running in core1 so it can run concurrently with other activities on core0.
If you configure the AP from core0 and then set up a poll object bound to two UDP ports (for the rtpMIDI protocol) then passing the poll
object to core1 causes the poll to correctly timeout but no UDP datagrams are received. That code run entirely from core0 works fine. Again, guarding with a lock doesn't resolve the problem.
https://raspberrypi.stackexchange.com/questions/143640/unable-to-perform-any-wlan-related-operations-from-core1-on-pi-pico-with-micropy
Beta Was this translation helpful? Give feedback.
All reactions