2021-04-28 01:43 AM
Hi All,
I don't managed to send char on USART3 with the attached project.
I was wondering if someone had already detected issue in using USART3
Thanks in advance
2021-04-28 02:38 AM
Where in the code are you transmitting and how?
What hardware are you using? Did you observe the Tx pin using oscilloscope?
Read out and check/post the relevant USART and GPIO registers content.
JW
2021-04-30 08:53 AM
Your code doesn't attempt to send anything. It initializes the peripheral but never uses it.
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_USART3_UART_Init();
/* USER CODE BEGIN 2 */
/* USER CODE END 2 */
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
}
Lots of examples out there to follow:
2021-05-04 11:57 PM
Hello,
Thanks for your feedback.
Indeed i attached the wrong file.
Anyway i found the issue. Indeed by setting Tx and Rx as output, i noticed that only Rx was OK.
By testing with another board it works.
Thanks again for your time.
gh_rcl