cancel
Showing results for 
Search instead for 
Did you mean: 

How to "printf" on STM32F746-DISCO ?

Ellaine
Associate II

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.

5 REPLIES 5

Do you use Keil uVision?

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

STM32CubeIDE

Okay, I will use debugger to find out the source of the problem.​

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".