Skip to main content
VNava
Associate III
October 1, 2020
Solved

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

  • October 1, 2020
  • 3 replies
  • 1476 views

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.
Best answer by VNava

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
October 1, 2020

I solved. Thank you anyway

Mohamed Aymen HZAMI
ST Employee
October 6, 2020

Hello @Community member​ ,

Can you please tell us how you solved your problem ?

Thanks and Best Regards,

Mohamed Aymen.

VNava
VNavaAuthorBest answer
Associate III
October 6, 2020

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.