HAL_UART_Receive_IT not working
Hi all i'm implementing a serial communication between my evaluation board and my PC
i managed to send data from my board and read it via PuTTY.
but when i run HAL_UART_Receive_IT and send messages via PuTTY it doesnt trigger the
"HAL_UART_RxCpltCallback" Function
im using NUCLEO H743ZI2
and USART3 baud rate: 115200
Interrupt is enabled for USART3
This is my code (just the important stuff):
Thanks! :)
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
{
char str[100];
strcpy(str, "hi hi\n\r");
HAL_UART_Transmit(&huart3, (uint8_t*)str, strlen(str), 1000);
}
int main(void)
{
char str[100];
strcpy(str, "hello hello\n\r");
HAL_UART_Transmit(&huart3, (uint8_t*)str, strlen(str), 1000);
HAL_UART_Receive_IT(&huart3, rx_data, 6);
while (1){}
}