printf retargeting
Wiring the C library's output functions to something that actually exists on the board, since there is no screen to print to.
On bare metal, printf compiles without complaint and writes nowhere. Newlib formats the string and then calls _write(), which the programmer is expected to supply; the default does nothing. Retargeting means writing that function — usually five lines that push each byte out over a UART, into ITM via SWO, or into a SEGGER RTT buffer. Keil's toolchain does the same thing through fputc().
Three things tend to surprise people. Newlib line-buffers stdout, so nothing appears until a newline arrives — setvbuf(stdout, NULL, _IONBF, 0) fixes that. Newlib-nano won't print floats without the linker flag -u _printf_float. And printf from an interrupt handler is both slow and non-reentrant, yielding the kind of bug that only shows up when you aren't debugging.