usart receive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-08 2:15 AM
USART receive is not providing the output please check and reply me asap
selected USART2 made it to asynchronous also enabled global interrupt
code lines that i have added
uint8_t txbuf[10]="hello ";
uint8_t rxbuf[10];
while (1)
{
/* USER CODE END WHILE */
HAL_UART_Receive(&huart2, rxbuf, sizeof(rxbuf), 100);
/* USER CODE BEGIN 3 */
}
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
{
HAL_UART_Transmit(&huart2, rxbuf, sizeof(rxbuf), 100);
}
- Labels:
-
ST boards
-
STM32G4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-10 12:54 AM
@Tesla DeLorean can you please tell it in simple words or modify the code which you think is not correct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-10 7:50 AM
What is connected to your UART tx pin?
TimerCallback tutorial! | UART and DMA Idle tutorial!
If you find my solution useful, please click the Accept as Solution so others see the solution.

- « Previous
-
- 1
- 2
- Next »