Diagnosing a Pico 2 W you cannot plug into
On the bench a Pico 2 W talks to you over USB. Installed in a box on a wall, it goes quiet, and a HardFault just looks like a reboot. Here is how to get the printf output, the faults and the numbers back from a device in the field.
printf becomes the log
With Pinscope linked into a Pico SDK 2.x project that uses FreeRTOS and lwIP, everything the firmware prints with printf goes to the dashboard as log lines, live and stored. No change to your logging code.
HardFaults, decoded
When the RP2350 hits a HardFault, Pinscope keeps the program counter, the link register and the code addresses it finds on the stack across the reset, and sends them when the device reconnects. Upload the ELF of the build and they are shown as functions and lines: an approximate call trace that is usually enough to find the cause. For a fault dump you captured by hand, the Cortex-M HardFault decoder explains every fault status bit.
Metrics and offline alerts
Free heap and its low-water mark, Wi-Fi signal, chip temperature, uptime and the stack left in the Pinscope task come as built-in metrics; add your own with one call. If a device stops reporting, you get an email or a webhook call.
Then fix it remotely
Updates use the RP2350's A/B partitions, so a new image that does not come up is replaced by the previous one. Remote access and OTA for the Pico 2 W covers the setup, and the Pico docs list the lwIP settings it needs.
Try it
Three devices are free, and no card is needed. Create an account, or read the guide for your platform: ESP32, Zephyr, Raspberry Pi Pico, Linux, ESP8266.
More
- Remote access to an ESP32 without TLS: what it measured and what it costs
- Serial monitor in the browser for ESP32 and Zephyr, with crash decoding
- Pinscope now runs on Zephyr, Raspberry Pi Pico, Linux and ESP8266
- Raspberry Pi Pico 2 W: remote access, logs and OTA over the internet
- CRA: reporting an exploited vulnerability in 24 hours
- VEX for firmware: not_affected justifications
- CRA support period: how long you update a device
- Particle alternatives for your own hardware
- Does the CRA apply to me? Small makers
- RED cybersecurity and EN 18031 for Wi-Fi devices
- Cortex-M HardFault decoder
- UF2 converter and inspector
- Memfault, Golioth, nRF Cloud and Pinscope compared
- The Cyber Resilience Act, for the devices you ship