cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_UART_Receive_IT is not working

KaushikSTM32
Associate

Originally a reply in this thread - split as a separate question.


Hello 

My blocking mode is working with "HAL_UART_Receive(&huart4, temp, 1, 100);"

Nonblocking mode is not working

Can you suggest anything to check?

I have defined as said

 

/* USER CODE BEGIN 2 */

HAL_UART_Receive_IT(&huart4, temp, 1);

/* USER CODE END 2 */

 

and

 

/* USER CODE BEGIN 4 */

void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
{
  HAL_UART_Receive_IT(&huart4, temp, 1);
  HAL_UART_Transmit(&huart4, temp, 1, 100);
}

/* USER CODE END 4 */

 

34 REPLIES 34

Andrew Sir,

 

Apologies from my side and its been my pleasure for your valuable feedbacks.

Actual Problem is my BOOT mode pin it was not connected properly to the ground, somehow I got wrong short-link which has case but no short-link inside.

 

Things are working perfectly fine. Again thanks

Karl Sir,

 

Apologies from my side and its been my pleasure for your valuable feedbacks.

Actual Problem is my BOOT mode pin it was not connected properly to the ground, somehow I got wrong short-link which has case but no short-link inside.

 

Things are working perfectly fine. Again thanks

Saket Sir,

 

Apologies from my side and its been my pleasure for your valuable feedbacks.

Actual Problem is my BOOT mode pin it was not connected properly to the ground, somehow I got wrong short-link which has case but no short-link inside.

 

Things are working perfectly fine. Again thanks

@KaushikSTM32 everyone can see all replies - there's no need to repeat.

You can mention multiple users using @

Thanks