We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I am using keil board (stm32).I wrote one program for reading data through uart by using rtx kernal for task switching . I am getting full data, if send byte by byte .If send one whole string iam getting only 64 bytes. plz suggest me what should i do to get whole string.
I AM SENDING GPS DATA TO THE CONTROLLER THROUGH UART. BAUD RATE IS 2400.GPS DATA IS ALMOST 72 BYTES.I KEPT ONE COUNTER IN UART INTERRUPT.IT IS SHOWING 72 .BUT DATA IS ONLY 64 BYTES.
void USART1_IRQHandler(void) {
if(USART_GetITStatus(USART1, USART_IT_RXNE) != RESET) { /* Read one byte from the receive data register */ str[Data_Len] = USART_ReceiveData(USART1); Data_Len++; if(str[Data_Len-1]=='\n') Data_Len=0;
}
Read the tips for posting messages (http://www.keil.com/forum/tips.asp), repair your caps lock key and try again...
HEY I WANT TELL U ONE THING ...I USED SAME CODE WITHOUT RTOS ,AT THAT TIME I GOT FULL DATA ..BUT WITH RTOS I AM NOT GETTING .
Sorry,
I am sending gps data to the controller through uart with a baud rate of 2400 only.
If i used same code without rtos, i am getting full data without any loss of data.But with rtos i am not getting full data .