ricardgb commented on PR #19250:
URL: https://github.com/apache/nuttx/pull/19250#issuecomment-4895713322
## Build and runtime testing
Tested on real Raspberry Pi Pico 2 W hardware.
- **Host:** Ubuntu 24.04
- **Toolchain:** `arm-none-eabi-gcc` 13.2.1
- **Target:** Raspberry Pi Pico 2 W (RP2350 + Infineon CYW43439), non-SMP
- **Config:** `raspberrypi-pico-2-w:telnet` (WiFi station + telnet server)
### Build
```console
$ export PICO_SDK_PATH=<path-to-pico-sdk> # supplies the CYW43439
firmware blob
$ ./tools/configure.sh raspberrypi-pico-2-w:telnet
$ make -j"$(nproc)"
[...]
$ ls -l nuttx.uf2
# nuttx.uf2 produced (~946 KB)
```
Before building, network credentials were set with `make menuconfig`
(Application Configuration -> Network Utilities -> Network initialization ->
WAPI
Configuration: SSID `<your-ssid>`, passphrase `<your-passphrase>`); the
shipped
defconfig carries only placeholders. Build completed with no errors and
produced a flashable `nuttx.uf2`.
### Flash
Written over USB in BOOTSEL mass-storage mode:
- Entered BOOTSEL (`reboot 3` from a running image, or hold BOOTSEL on
power-up).
The board enumerated as the RP2350 bootrom device (`2e8a:000f`, "RP2350"
mass-storage volume).
- Copied `nuttx.uf2` onto the mounted volume; the board accepted the image
and
rebooted automatically.
### Runtime (Wi-Fi + telnet)
After reboot the board brought up WiFi station mode, associated with the
access
point, and obtained a DHCP lease. The NSH shell was then reached over the
network via telnet:
```console
$ telnet 192.168.0.43
NuttShell (NSH) NuttX-12.13.0
nsh> uname -a
NuttX 12.13.0 <commit> <date> arm raspberrypi-pico-2-w
```
`ifconfig` confirmed `wlan0` up with the CYW43439's Broadcom MAC and a
DHCP-assigned address:
```console
nsh> ifconfig
lo Link encap:Local Loopback at RUNNING mtu 1518
inet addr:127.0.0.1 DRaddr:127.0.0.1 Mask:255.0.0.0
wlan0 Link encap:Ethernet HWaddr 88:a2:9e:xx:xx:xx at RUNNING mtu 576
inet addr:192.168.0.43 DRaddr:192.168.0.1 Mask:255.255.255.0
```
The interface stayed associated and the telnet/NSH session was responsive
(standard builtins such as `uname`, `ifconfig`, `ps`, `free` available).
> **Note on the WiFi firmware:** the CYW43439 firmware/CLM blob is **not**
> bundled with NuttX -- it is fetched from the Pico SDK at build time (via
> `PICO_SDK_PATH`, or `CONFIG_CYW43439_FIRMWARE_BIN_PATH`). If the blob is
> absent the build still succeeds using a dummy placeholder, but an image
built
> that way will boot and reach NSH yet **will not associate** to an access
> point. The runtime results above are from an image built with the real
blob.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]