PlatformIO Community

How to disable libc stdio on Atmel Sam, use EA prinf


I’m trying to use this printf implementation:, but I cant get the linker to prefer that version. It’s compiling fine, but calls to printf go to the libc printf that appears to be bundled with arm-none-eabi toolchain. I ran pio run --verbose, then ran the linker command with --verbose tacked on:
there is a notable -lc flag that I think is the culprit. Is there a way to disable this?


Yeah sorry, this was a dumb question. You need to keep libc around, and the library has aliased functions. namely: printf_() which works like a charm.
Sorry for the clutter!