printf not working.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-03 4:20 AM
Hi,
printf function not working in stm32cube_ide.
No error on ide but also no output on uart.
Please help!
Labels:
- Labels:
-
STM32Cube MCU Packages
-
STM32CubeIDE
This discussion is locked. Please start a new topic to ask your question.
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-03 4:22 AM
- See the syscalls.c file and define your output routine.
- 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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-03 4:44 AM
Can u please provide an example code where to edit?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-03 9:55 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-03 9:54 PM
Thanks alot!
Resolved.
