2019-01-18 06:12 PM
Hello, I'm using the STM32L476RG and trying to receive data via UART.
When I use the following code:
int main(void){
...
HAL_UART_Receive_IT(&huart4, data_RX,20);
....
}
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart){
printf("\nMessage received is: %s",data_RX);
}
This works just fine if ONLY the message received is 20 characters long.
But not if the message is for example 15. I know that when my data_Rx is full, it then will be printed.
I was wondering if anyone came across this problem and was successful implementing a solution. I tried some of the codes I found on the internet, but lot of them where really confusing.
Sorry if this topic was already discuss.
Any help would be awesome!
Thank you.
Solved! Go to Solution.
2020-01-14 06:39 AM
@Emm1592 , could you please share the code? Thank you
2020-07-13 01:10 PM
Can I get a copy of your code ?
2021-02-06 09:04 AM
Could you please share the code? Thank you.
2021-02-19 09:08 PM
@Emm1592 could you please share the code?
I am doing the same with stm32f030cctc and quectel m66.
2021-03-06 02:28 AM
@Emm1592 could I get your code too,please? I am facing the same problem.