Skip to main content
Visitor II
August 1, 2023
Solved

STM32H747I-DISCO Virtual Com via USART to arduino

  • August 1, 2023
  • 2 replies
  • 2348 views

if I configure the USART and use HAL_UART_Transmit. The UART to USB bridge is taken care of by the ST-Link chip.

Could i use the VCP on the board is on PA9/PA10(pin D14 and pin D15 to rx and tx to arduino) and use digital.read on arduino to get the information of char[] like tipo "%s %.0f%%"?

wjian2_0-1690904059020.png

 

 

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    No, D14/D15 are ball numbers on the BGA, not pins on the Arduino rail connection.

    To use D0/D1 serial you'd need to use UART8 (PJ8 / PJ9), and then actively forward the traffic too/from the ST-LINK VCP connection

    h747i_disco_arduino_hdr_001.jpg

    2 replies

    Graduate II
    August 1, 2023

    No, D14/D15 are ball numbers on the BGA, not pins on the Arduino rail connection.

    To use D0/D1 serial you'd need to use UART8 (PJ8 / PJ9), and then actively forward the traffic too/from the ST-LINK VCP connection

    h747i_disco_arduino_hdr_001.jpg

    Graduate II
    January 17, 2024

    The ST-LINK/V3 VCP being linked to USART1 (PA9 / PA10)

    Technical Moderator
    August 1, 2023

    Hello @wjian.2,

    VCP is linked to an instance of USART and physically mapped Pins. Otherwise, you may use another board as VCP.

    You may need to check the user manual for the instance linked to the virtual com port. Also, you need to refer to the datasheet to configure the related mapped pins. 

    Is that somehow clear?

    In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
    Explorer II
    January 17, 2024

    Excellent, that did solve my problem.