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

I’m trying to use this printf implementation: GitHub - mpaland/printf: Tiny, fast, non-dependent and fully loaded printf implementation for embedded systems. Extensive test suite passing., 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:
Why the libc? · GitHub
there is a notable -lc flag that I think is the culprit. Is there a way to disable this?
Thanks
Tim

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!
Tim

1 Like