1 week, 3 days ago.

Sending Data to TX pin Using UART

Hello all! I am trying to send some data to a printer module. I use a STM32F407 Discovery board. using cubeMX, I defined pins PA10, PA9 and PA8 as USART1_RX, USART1_TX, USART1_CK respectively. but I have a question: when I use HAL_UART_Transmit(), does it send data to pin PA9 as it is the the TX pin?

all answers are appreciated in advance!

Comment on this question

1 Answer

1 week, 1 day ago.

Hi Ala,

I can't find your board STM32F407 Discovery from supported boards. The another question is HAL_UART_Transmit() function - I can't find the function from the Mbed OS API documentation. So some more information is needed to be able to help: - What is the board type when you compile your STM32F407 Discovery? - HAL_UART_Transmit() function - Are you using Mbed OS 2 or 5

Thanks, Pekka


You need to log in to post a question