Skip to main content
This topic has been closed for replies.
Best answer by mƎALLEm

Please refer to the thread I provided to you (there is an example of printf attached): https://community.st.com/t5/stm32-mcus-embedded-software/how-to-use-printf/m-p/736985#M56462

F429-DISCO is using USART1 connected to VCP:

From the user manual of the board:

SofLit_1-1731409358224.png

From F429-DISCO schematics:

SofLit_0-1731409235084.png

Hope it helps.

 

5 replies

Technical Moderator
November 12, 2024

The attachments are not helpful. Normally you need to share your code and attach your ioc file.

Meanwhile, you can use this example already running on STM32F429ZI-Nucleo board:

https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM32F429ZI-Nucleo/Examples/UART/UART_Printf

Hope it helps.

Graduate II
November 12, 2024

Given that I am using the STM32F429ZIT6 DISCOVERY KIT connected to the PC via USB, from the received messages I didn’t understand whether I should use USART3 or USART1. I tried following the instructions, but it doesn’t work.

Ok, the code in main.c is very simple:

/* Infinite loop */
 /* USER CODE BEGIN WHILE */
 while (1)
 {
 if(HAL_GPIO_ReadPin(Pulsante_on_board_GPIO_Port, Pulsante_on_board_Pin))
 {
 stato = !stato;
 HAL_Delay(250);
 }

 HAL_GPIO_WritePin(Led_on_board_LD3_GPIO_Port, Led_on_board_LD3_Pin, stato);

 if(HAL_UART_Transmit(&huart3, (const uint8_t *)"TEST ", 6, 100) !=HAL_OK)
		 Error_Handler();
 HAL_Delay(500);
 /* USER CODE END WHILE */

 /* USER CODE BEGIN 3 */
 }

 

mƎALLEmAnswer
Technical Moderator
November 12, 2024

Please refer to the thread I provided to you (there is an example of printf attached): https://community.st.com/t5/stm32-mcus-embedded-software/how-to-use-printf/m-p/736985#M56462

F429-DISCO is using USART1 connected to VCP:

From the user manual of the board:

SofLit_1-1731409358224.png

From F429-DISCO schematics:

SofLit_0-1731409235084.png

Hope it helps.

 

Super User
November 12, 2024
Technical Moderator
November 12, 2024

I noticed you are using F429 disco board that it is using USART1.

See the example I attached in this thread.

As stated by @Andrew Neil you need to share the code + provide which HW you are using, ST board? Custom board? this prevents us to provide you wrong answers.

 

Technical Moderator
November 12, 2024

Hello @Emanuele78 , did you mistakenly accept the wrong comment as solution ?

Super User
November 12, 2024

Is this a new board?

Because older revisions (B01) of it did not have the VCP capability.

Revision should be displayed on a sticker on the bottom of the board.

JW

Super User
November 20, 2024

@waclawek.jan wrote:

older revisions (B01) of it did not have the VCP capability.


I guess that's why it's not shown on the block diagram - it was just copied without being updated?