cancel
Showing results for 
Search instead for 
Did you mean: 

printf not working.

VKUMA.12
Associate II

Hi,

printf function not working in stm32cube_ide.

No error on ide but also no output on uart.

Please help!

4 REPLIES 4
gbm
Lead III
  1. See the syscalls.c file and define your output routine.
  2. Make sure to put \n at the end of format string.
My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

Can u please provide an example code where to edit?

gbm
Lead III

Dozens of related tutorial are available - just look for them. Try something like "STM32CubeIDE printf redirection".

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

Thanks alot!

Resolved.