arduino / ArduinoCore-mbed

331 stars 199 forks source link

[Pi Pico W] Error building with WiFi library in PlatformIO #574

Closed jonathanlundstrom closed 1 year ago

jonathanlundstrom commented 1 year ago

Hi,

I've set up a basic project in PlatformIO that looks like this. I'm just trying to get Wi-Fi working, but every time I include WiFi.h my project refuses the build, spawning a host of errors that seem to be related to the library itself.

Attached is my project code, which I've reduced to almost nothing in order to debug:

#include <Arduino.h>
#include <WiFi.h>
#include <SPI.h>

char ssid[] = "SSID";
char pass[] = "PASSWORD";
char server[] = "example.com";

// int status = WL_IDLE_STATUS;

// WiFiClient client;

void setup() {
  Serial.begin(9600);

  /*if (WiFi.status() == WL_NO_SHIELD) {
    Serial.println("Communication with WiFi module failed!");
    // don't continue
    while (true);
  }*/
}

void loop() {
  Serial.println("Hello");
  delay(10000);
}

The errors below are some of the ones that appear when attempting a build in PlatformIO:

 *  Executing task in folder helleringen: platformio run --environment pico 

Processing pico (platform: raspberrypi; board: pico; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/raspberrypi/pico.html
PLATFORM: Raspberry Pi RP2040 (1.7.0) > Raspberry Pi Pico
HARDWARE: RP2040 133MHz, 264KB RAM, 2MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, jlink, raspberrypi-swd)
PACKAGES: 
 - framework-arduino-mbed @ 3.1.1 
 - tool-rp2040tools @ 1.0.2 
 - toolchain-gccarmnoneeabi @ 1.90201.191206 (9.2.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 38 compatible libraries
Scanning dependencies...
Dependency Graph
|-- SPI
|-- WiFi @ 1.0
|   |-- SocketWrapper @ 1.0
Building in release mode
Compiling .pio/build/pico/src/main.cpp.o
Compiling .pio/build/pico/lib394/SocketWrapper/MbedClient.cpp.o
Compiling .pio/build/pico/lib394/SocketWrapper/MbedSSLClient.cpp.o
Compiling .pio/build/pico/lib394/SocketWrapper/MbedServer.cpp.o
Compiling .pio/build/pico/lib394/SocketWrapper/MbedUdp.cpp.o
Compiling .pio/build/pico/lib394/SocketWrapper/SocketHelpers.cpp.o
Compiling .pio/build/pico/lib394/SocketWrapper/utility/http_parser/http_parser.c.o
Compiling .pio/build/pico/libde2/WiFi/WiFi.cpp.o
Compiling .pio/build/pico/libde2/WiFi/WiFiServer.cpp.o
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/utility/http_parser/http_parser.c: In function 'http_parser_execute':
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/utility/http_parser/http_parser.c:1817:31: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1817 |               parser->upgrade = 1;
      |               ~~~~~~~~~~~~~~~~^~~
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/utility/http_parser/http_parser.c:1819:13: note: here
 1819 |             case 1:
      |             ^~~~
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/utility/http_parser/http_parser.c: In function 'http_parser_parse_url':
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/utility/http_parser/http_parser.c:2376:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
 2376 |         found_at = 1;
      |         ~~~~~~~~~^~~
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/utility/http_parser/http_parser.c:2379:7: note: here
 2379 |       case s_req_server:
      |       ^~~~
In file included from /Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/MbedSSLClient.cpp:1:
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/MbedSSLClient.h:26:10: fatal error: QSPIFBlockDevice.h: No such file or directory

**************************************************************************
* Looking for QSPIFBlockDevice.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:QSPIFBlockDevice.h"
* Web  > https://registry.platformio.org/search?q=header:QSPIFBlockDevice.h
*
**************************************************************************

   26 | #include <QSPIFBlockDevice.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio/build/pico/lib394/SocketWrapper/MbedSSLClient.cpp.o] Error 1
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/MbedUdp.cpp: In member function 'virtual int arduino::MbedUDP::endPacket()':
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/MbedUdp.cpp:76:11: warning: variable length array 'buffer' is used [-Wvla]
   76 |   uint8_t buffer[size];
      |           ^~~~~~
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/MbedUdp.cpp:77:21: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare]
   77 |   for (int i = 0; i < size; i++) {
      |                   ~~^~~~~~
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/MbedUdp.cpp: In member function 'virtual size_t arduino::MbedUDP::write(const uint8_t*, size_t)':
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/MbedUdp.cpp:97:20: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare]
   97 |   for (int i = 0; i<size; i++) {
      |                   ~^~~~~
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/MbedClient.cpp: In member function 'virtual size_t arduino::MbedClient::write(const uint8_t*, size_t)':
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/MbedClient.cpp:216:17: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare]
  216 |   } while ((ret != size && ret == NSAPI_ERROR_WOULD_BLOCK) && connected());
      |             ~~~~^~~~~~~
In file included from src/main.cpp:2:
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.h:203:3: error: 'WiFiAccessPoint' does not name a type
  203 |   WiFiAccessPoint* ap_list = nullptr;
      |   ^~~~~~~~~~~~~~~
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.h:207:16: error: expected ';' at end of member declaration
  207 |   static void* handleAPEvents(whd_interface_t ifp, const whd_event_header_t* event_header, const uint8_t* event_data, void* handler_user_data);
      |                ^~~~~~~~~~~~~~
      |                              ;
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.h:207:46: error: expected ')' before 'ifp'
  207 |   static void* handleAPEvents(whd_interface_t ifp, const whd_event_header_t* event_header, const uint8_t* event_data, void* handler_user_data);
      |                              ~               ^~~~
      |                                              )
In file included from /Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:1:
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.h:203:3: error: 'WiFiAccessPoint' does not name a type
  203 |   WiFiAccessPoint* ap_list = nullptr;
      |   ^~~~~~~~~~~~~~~
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.h:207:16: error: expected ';' at end of member declaration
  207 |   static void* handleAPEvents(whd_interface_t ifp, const whd_event_header_t* event_header, const uint8_t* event_data, void* handler_user_data);
      |                ^~~~~~~~~~~~~~
      |                              ;
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.h:207:46: error: expected ')' before 'ifp'
  207 |   static void* handleAPEvents(whd_interface_t ifp, const whd_event_header_t* event_header, const uint8_t* event_data, void* handler_user_data);
      |                              ~               ^~~~
      |                                              )
In file included from /Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFiServer.h:20,
                 from /Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFiServer.cpp:1:
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.h:203:3: error: 'WiFiAccessPoint' does not name a type
  203 |   WiFiAccessPoint* ap_list = nullptr;
      |   ^~~~~~~~~~~~~~~
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.h:207:16: error: expected ';' at end of member declaration
  207 |   static void* handleAPEvents(whd_interface_t ifp, const whd_event_header_t* event_header, const uint8_t* event_data, void* handler_user_data);
      |                ^~~~~~~~~~~~~~
      |                              ;
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.h:207:46: error: expected ')' before 'ifp'
  207 |   static void* handleAPEvents(whd_interface_t ifp, const whd_event_header_t* event_header, const uint8_t* event_data, void* handler_user_data);
      |                              ~               ^~~~
      |                                              )
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp: In member function 'bool arduino::WiFiClass::isVisible(const char*)':
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:7:17: error: 'ap_list' was not declared in this scope; did you mean 'va_list'?
    7 |     if (strncmp(ap_list[i].get_ssid(), ssid, SSID_MAX_LENGTH) == 0) {
      |                 ^~~~~~~
      |                 va_list
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp: In member function 'int arduino::WiFiClass::begin(const char*, const char*)':
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:27:61: error: 'ap_list' was not declared in this scope; did you mean 'va_list'?
   27 |   nsapi_error_t result = wifi_if->connect(ssid, passphrase, ap_list[connected_ap].get_security());
      |                                                             ^~~~~~~
      |                                                             va_list
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp: In member function 'int arduino::WiFiClass::beginAP(const char*, const char*, uint8_t)':
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:52:3: error: 'WhdSoftAPInterface' was not declared in this scope
   52 |   WhdSoftAPInterface* softAPInterface = static_cast<WhdSoftAPInterface*>(_softAP);
      |   ^~~~~~~~~~~~~~~~~~
*** [.pio/build/pico/src/main.cpp.o] Error 1
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:52:23: error: 'softAPInterface' was not declared in this scope; did you mean 'PPPInterface'?
   52 |   WhdSoftAPInterface* softAPInterface = static_cast<WhdSoftAPInterface*>(_softAP);
      |                       ^~~~~~~~~~~~~~~
      |                       PPPInterface
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:52:53: error: 'WhdSoftAPInterface' does not name a type
   52 |   WhdSoftAPInterface* softAPInterface = static_cast<WhdSoftAPInterface*>(_softAP);
      |                                                     ^~~~~~~~~~~~~~~~~~
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:52:71: error: expected '>' before '*' token
   52 |   WhdSoftAPInterface* softAPInterface = static_cast<WhdSoftAPInterface*>(_softAP);
      |                                                                       ^
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:52:71: error: expected '(' before '*' token
   52 |   WhdSoftAPInterface* softAPInterface = static_cast<WhdSoftAPInterface*>(_softAP);
      |                                                                       ^
      |                                                                       (
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:52:72: error: expected primary-expression before '>' token
   52 |   WhdSoftAPInterface* softAPInterface = static_cast<WhdSoftAPInterface*>(_softAP);
      |                                                                        ^
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:52:82: error: expected ')' before ';' token
   52 |   WhdSoftAPInterface* softAPInterface = static_cast<WhdSoftAPInterface*>(_softAP);
      |                                                                                  ^
      |                                                                                  )
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp: At global scope:
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:71:42: error: 'whd_interface_t' was not declared in this scope; did you mean 'ticker_interface_t'?
   71 | void* arduino::WiFiClass::handleAPEvents(whd_interface_t ifp, const whd_event_header_t* event_header, const uint8_t* event_data, void* handler_user_data) {
      |                                          ^~~~~~~~~~~~~~~
      |                                          ticker_interface_t
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:71:63: error: expected primary-expression before 'const'
   71 | void* arduino::WiFiClass::handleAPEvents(whd_interface_t ifp, const whd_event_header_t* event_header, const uint8_t* event_data, void* handler_user_data) {
      |                                                               ^~~~~
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:71:103: error: expected primary-expression before 'const'
   71 | void* arduino::WiFiClass::handleAPEvents(whd_interface_t ifp, const whd_event_header_t* event_header, const uint8_t* event_data, void* handler_user_data) {
      |                                                                                                       ^~~~~
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:71:130: error: expected primary-expression before 'void'
   71 | void* arduino::WiFiClass::handleAPEvents(whd_interface_t ifp, const whd_event_header_t* event_header, const uint8_t* event_data, void* handler_user_data) {
      |                                                                                                                                  ^~~~
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:71:153: error: expression list treated as compound expression in initializer [-fpermissive]
   71 | void* arduino::WiFiClass::handleAPEvents(whd_interface_t ifp, const whd_event_header_t* event_header, const uint8_t* event_data, void* handler_user_data) {
      |                                                                                                                                                         ^
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp: In member function 'int arduino::WiFiClass::disconnect()':
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:113:5: error: 'WhdSoftAPInterface' was not declared in this scope
  113 |     WhdSoftAPInterface* softAPInterface = static_cast<WhdSoftAPInterface*>(_softAP);
      |     ^~~~~~~~~~~~~~~~~~
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:113:25: error: 'softAPInterface' was not declared in this scope; did you mean 'PPPInterface'?
  113 |     WhdSoftAPInterface* softAPInterface = static_cast<WhdSoftAPInterface*>(_softAP);
      |                         ^~~~~~~~~~~~~~~
      |                         PPPInterface
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:113:55: error: 'WhdSoftAPInterface' does not name a type
  113 |     WhdSoftAPInterface* softAPInterface = static_cast<WhdSoftAPInterface*>(_softAP);
      |                                                       ^~~~~~~~~~~~~~~~~~
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:113:73: error: expected '>' before '*' token
  113 |     WhdSoftAPInterface* softAPInterface = static_cast<WhdSoftAPInterface*>(_softAP);
      |                                                                         ^
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:113:73: error: expected '(' before '*' token
  113 |     WhdSoftAPInterface* softAPInterface = static_cast<WhdSoftAPInterface*>(_softAP);
      |                                                                         ^
      |                                                                         (
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:113:74: error: expected primary-expression before '>' token
  113 |     WhdSoftAPInterface* softAPInterface = static_cast<WhdSoftAPInterface*>(_softAP);
      |                                                                          ^
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:113:84: error: expected ')' before ';' token
  113 |     WhdSoftAPInterface* softAPInterface = static_cast<WhdSoftAPInterface*>(_softAP);
      |                                                                                    ^
      |                                                                                    )
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp: In member function 'int8_t arduino::WiFiClass::scanNetworks()':
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:163:7: error: 'ap_list' was not declared in this scope; did you mean 'va_list'?
  163 |   if (ap_list == nullptr) {
      |       ^~~~~~~
      |       va_list
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:166:24: error: 'ap_list' was not declared in this scope; did you mean 'va_list'?
  166 |   return wifi_if->scan(ap_list, count);
      |                        ^~~~~~~
      |                        va_list
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp: In member function 'char* arduino::WiFiClass::SSID(uint8_t)':
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:170:17: error: 'ap_list' was not declared in this scope; did you mean 'va_list'?
  170 |   return (char*)ap_list[networkItem].get_ssid();
      |                 ^~~~~~~
      |                 va_list
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp: In member function 'int32_t arduino::WiFiClass::RSSI(uint8_t)':
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:174:10: error: 'ap_list' was not declared in this scope; did you mean 'va_list'?
  174 |   return ap_list[networkItem].get_rssi();
      |          ^~~~~~~
      |          va_list
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp: In member function 'uint8_t arduino::WiFiClass::encryptionType(uint8_t)':
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:178:19: error: 'ap_list' was not declared in this scope; did you mean 'va_list'?
  178 |   return sec2enum(ap_list[networkItem].get_security());
      |                   ^~~~~~~
      |                   va_list
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp: In member function 'uint8_t arduino::WiFiClass::encryptionType()':
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:190:19: error: 'ap_list' was not declared in this scope; did you mean 'va_list'?
  190 |   return sec2enum(ap_list[connected_ap].get_security());
      |                   ^~~~~~~
      |                   va_list
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp: In member function 'uint8_t* arduino::WiFiClass::BSSID(unsigned char*)':
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:194:34: error: 'ap_list' was not declared in this scope; did you mean 'va_list'?
  194 |   const uint8_t* reverse_bssid = ap_list[connected_ap].get_bssid();
      |                                  ^~~~~~~
      |                                  va_list
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp: In member function 'virtual NetworkInterface* arduino::WiFiClass::getNetwork()':
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:203:12: error: cannot convert 'EMACInterface*' to 'NetworkInterface*' in return
  203 |     return _softAP;
      |            ^~~~~~~
      |            |
      |            EMACInterface*
In file included from /Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/SocketWrapper/src/SocketHelpers.h:21,
                 from /Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.h:27,
                 from /Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:1:
/Users/jonathan/.platformio/packages/framework-arduino-mbed/cores/arduino/mbed/connectivity/netsocket/include/netsocket/NetworkInterface.h:39:7: note: class type 'EMACInterface' is incomplete
   39 | class EMACInterface;
      |       ^~~~~~~~~~~~~
*** [.pio/build/pico/libde2/WiFi/WiFiServer.cpp.o] Error 1
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp: At global scope:
/Users/jonathan/.platformio/packages/framework-arduino-mbed/libraries/WiFi/src/WiFi.cpp:143:16: warning: 'uint8_t sec2enum(nsapi_security_t)' defined but not used [-Wunused-function]
  143 | static uint8_t sec2enum(nsapi_security_t sec) {
      |                ^~~~~~~~
*** [.pio/build/pico/libde2/WiFi/WiFi.cpp.o] Error 1
================================================================================== [FAILED] Took 2.98 seconds ==================================================================================

 *  The terminal process "platformio 'run', '--environment', 'pico'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

Is the Wi-Fi library not compatible in some way, or have I missed something critical on my end?

Thank you!

facchinm commented 1 year ago

Hi @jonathanlundstrom , Pico W is not yet supported in this core, while it is in https://github.com/earlephilhower/arduino-pico . If you want to use WiFi, please use that core, otherwise you can use the W as if it was a normal pico with this one.

lu7did commented 1 year ago

Hello,

Going back to this thread I wonder if there is any plan for a future support for the W version of the pico board. As said previously Earle's core support it (nicely I would say) which brings lots of Arduino libraries back and make them readily available. At the same time mbed does the same with manyfold other libraries. Unfortunately, the common map between both cores is uneven. Therefore if you want to work with USB UAC2 and Wifi you're fried, Earle'es core doesn't support UAC2 and would unlikely will according to him and mbed doesn't support WiFi and it's not clear when it will. It's clear that support a core is far from trivial and the effort needed is gruesome, therefore the priority has to be tight, but perhaps the notion of an entire board to be allowed in is an important consideration to set the priorities high.

Thanks! Pedro.