Worked just by changing <stdio.h> to "pico/printf.h", no changes to 'CMakeLists.txt' using 'stdlib' as the only library.#include "pico/printf"
Then in CMakeLists.txt add pico_printf to the linked libraries.
Do system libraries map to ".../pico/..." anyway ?
I also thought Pico SDK used its own 'printf' implementation rather than NewLib but not my field of expertise.
Statistics: Posted by hippy — Thu Jan 29, 2026 11:05 pm