About the printf function of STM32

When I used the SPL library of STM32F103CC8, I found that the printf function could not be used normally, but it can be used in KEIL.

You might need to hook _write() function to transmit on the UART you want.

See microcontroller - How do I use the printf function on STM32? - Electrical Engineering Stack Exchange (stm32 hal code)


Thank you for your answer