Hi..,
Ds code not working receive NULL value kindly help me I'm using STM32H750VB
/* USER CODE END WHILE */ HAL_UART_Transmit(&huart2,recdata,sizeof(recdata),1000); HAL_Delay(100); HAL_UART_Receive(&huart2,recdata,sizeof(recdata),1000); /* USER CODE BEGIN 3 */
Does it return errors?
These are blocking functions, the receive runs AFTER the transmit, and not going to capture data you put on the wire in the PAST
How are you testing it?
Does the transmit work?
What debugging have you done on your hardware?
Have you tried provided examples on known-good hardware?