How to "printf" on STM32F746-DISCO ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-16 3:36 AM
I followed the step on the following video without the configuration of SD card. (I don't need it)
https://www.youtube.com/watch?v=4f-leBIJkRY​
Whenever transmitting 10 characters, the program broke bown on 11-th character as below:
printf("12345678901234567890\r\n");
--------------------------------------------------------
1234567890
So how should I modify the code to "printf" correctly?
I tried the code on NUCLEO-F746ZG, it did very well.
- Labels:
-
STM32F7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-16 4:35 AM
Do you use Keil uVision?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-16 4:45 AM
Don't see data loss here, plumbing is pretty simple, need to furnish a character output function.
Not aware of any 10 character limitations, you'll need to chase it to ground using usual debugging techniques.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-16 6:00 PM
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-16 6:26 PM
Okay, I will use debugger to find out the source of the problem.​
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-16 7:43 PM
My problem is solved.
When create a new stm32 project on STM32CubeIDE, and ask user whether initialize all peripherals with their default mode? Click "No".
