Skip to main content
VNava
Associate III
Oct 1, 2020 9:29 AM UTC
Solved

NUCLEO L432KC. How to print on TeraTerm using printf function?

Hi!

My name is Vincenzo.

I'm studying the board L432KC and I can't understand why using the HAL_UART_Transmit function I can transmit data on the terminal, while using the printf function nothing appears. Is there any preliminary operation to do?

Thanks in advance for your support!

Vincenzo

This topic has been closed for replies.
VNava
VNavaBest answer
Associate III
Oct 6, 2020 9:04 AM UTC

Hi Mohamed,

yes, sure!

I followed the strategy described in chapter 8 of the Carmine Noviello's book (Mastering STM32 - paragraph 8.6 I/O Retargeting).

This strategy is also summarized in this article: https://shawnhymel.com/1873/how-to-use-printf-on-stm32/

I hope this has been useful to you.

Thanks.

3 replies

VNava
VNavaAuthor
Associate III
Oct 1, 2020 9:37 AM UTC

I solved. Thank you anyway

Mohamed Aymen HZAMI
ST Employee
Oct 6, 2020 8:17 AM UTC

Hello @Community member​ ,

Can you please tell us how you solved your problem ?

Thanks and Best Regards,

Mohamed Aymen.

VNava
VNavaAuthorBest answer
Associate III
Oct 6, 2020 9:04 AM UTC

Hi Mohamed,

yes, sure!

I followed the strategy described in chapter 8 of the Carmine Noviello's book (Mastering STM32 - paragraph 8.6 I/O Retargeting).

This strategy is also summarized in this article: https://shawnhymel.com/1873/how-to-use-printf-on-stm32/

I hope this has been useful to you.

Thanks.