AnsweredAssumed Answered

storing GPS data in a buffer via USART1 on STM32L072CZ

Question asked by SARTHAK KELAPURE on Nov 23, 2017
Latest reply on Nov 23, 2017 by Andrew Neil

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.

Outcomes