How do I disable printf in library?
Greetings!
I'm using this printf library: https://github.com/mpaland/printf
And would like to completely disable the printf in the C Libraries that come with STM32CubeIDE. I went as far as renaming my printf to DBG, but when I look in the map file there is still printf included from the library. Here is an example:
.text._vfprintf_r
0x000000000800dc4c 0x260 c:/st/stm32cubeide_1.7.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(lib_a-nano-vfprintf.o)
0x000000000800dc4c _vfprintf_r
0x000000000800dc4c _vfiprintf_r
.text._printf_common
0x000000000800deac 0xda c:/st/stm32cubeide_1.7.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(lib_a-nano-vfprintf_i.o)
0x000000000800deac _printf_common
*fill* 0x000000000800df86 0x2
.text._printf_i
0x000000000800df88 0x24c c:/st/stm32cubeide_1.7.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+dp/hard\libc_nano.a(lib_a-nano-vfprintf_i.o)
0x000000000800df88 _printf_i
Is there anyway to get rid of this extra code that I just do not want to use?
Thank you!
