Skip to main content
VKUMA.12
Associate III
October 3, 2022
Question

printf not working.

  • October 3, 2022
  • 2 replies
  • 1237 views

Hi,

printf function not working in stm32cube_ide.

No error on ide but also no output on uart.

Please help!

This topic has been closed for replies.

2 replies

gbm
Principal
October 3, 2022
  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
VKUMA.12
VKUMA.12Author
Associate III
October 3, 2022

Can u please provide an example code where to edit?

gbm
Principal
October 3, 2022

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
VKUMA.12
VKUMA.12Author
Associate III
October 4, 2022

Thanks alot!

Resolved.