Heartbeat LED
An LED the firmware blinks at a steady rate to show that it's still alive.
It's the cheapest diagnostic there is: one GPIO, one resistor, one LED. If it blinks steadily, the program is running. If it's stuck on or off, something has hung — and you can see that across a server room or through an enclosure window without plugging anything in. Linux ships a ready-made heartbeat LED trigger that double-blinks at a rate that follows system load.
Where the blink happens matters. Do it in a timer interrupt and it carries on cheerfully even when the main program is stuck in an infinite loop, because the interrupts keep coming. Do it from the lowest-priority task or the main loop and it shows instead that the whole system is keeping up — the same reasoning that decides where to kick the watchdog.