I am trying to read UART and to hold on rx_data array. when I send "AT" to rf module it returns "OK" , but on my code I cannot receive anything from UART. and help appreciated
uint8_t tx_data[2] = "AT"; uint8_t rx_data[10]; HAL_Delay(1000); while (1) { HAL_UART_Transmit (&huart1, tx_data, sizeof(rx_data) , 250); HAL_Delay(500); HAL_UART_Receive(&huart1,rx_data, 20,1000); HAL_GPIO_TogglePin (GPIOA, LED_Pin); HAL_Delay(...