Solved
storing GPS data in a buffer via USART1 on STM32L072CZ
Posted on November 23, 2017 at 12:01
Hello everyone, I am using STM32L072CZ board to get data from GPS on USART1 but when I try to store it onto a buffer, I am losing data bytes. I am putting a small code snippet here, not the final version but somewhere what I am trying to do
for(int i=0;i<500;i++)
{
buffer[i]=USART1->RDR;
}
for(int i=0;i<500;i++)
{
LPUART1->TDR=buffer[i];
}
I am losing most of my data during this process. Please help.
#stm32l0-stm32l0-discovery #gps #usart1-commun #serial-port #communication