Hi friends, I came across a problem with my UART communication.My codes are below.
if I use
rx_buffer = (uint8_t*)calloc(3,sizeof(uint8_t));
HAL_UART_Receive_IT(&huart1,&rx_data,1); and rx_buffer = (uint8_t*)realloc(rx_buffer,sizeof(uint8_t));
program…