7 years, 9 months ago.

printf on nucleo F030

Is printf() a UART based communication? If yes, what pins on STM32F030R8T6 does it use?

1 Answer

7 years, 9 months ago.

printf() without a specified target (e.g. serialport.printf() ) will output to standard output. On the F030 that is defined as being UART2 on PA_2 and PA_3.

Unless you've changed the baud rate on that uart the default will be 9600. 8 bits, no parity.

Accepted Answer

Thanks for the answer. It was indeed on PA_2 and PA_3. However nucleo makers didn't attach it to GPIO headers directly it seems. Looks like they have given solder bridges and I was probing those headers without connecting the solder bridge. BTW are you Andy Aka from electrical_SE?

posted by Manish Kumar 22 Jul 2016

No, not me. Although you're the second person to ask that in the last two weeks.

posted by Andy A 22 Jul 2016