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