2023-08-01 08:38 AM
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%%"?
Solved! Go to Solution.
2023-08-01 08:48 AM
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
2023-08-01 08:48 AM
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
2023-08-01 09:06 AM - edited 2023-08-01 09:07 AM
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?
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.
2024-01-17 02:47 PM
Excellent, that did solve my problem.
2024-01-17 02:51 PM
The ST-LINK/V3 VCP being linked to USART1 (PA9 / PA10)