okay I really can't get much simpler than this:
GHI_SerialRead(device, &size);
while(size)
{
while(BusyUSART());
gps_data_buffer[0-size+128]=GHI_GetC();
size--;
}
bigsize=strlen((char*)gps_data_buffer);
var32=strlen((char*)gps_data_buffer);
GHI_MountFATFileSystem(SD_DEVICE);
GHI_OpenFile(FILE_HANDLE_0, file_name, FILE_WRITE_MODE);
GHI_WriteFile(FILE_HANDLE_0, gps_data_buffer, bigsize, &var32);
GHI_CloseFile(FILE_HANDLE_0);
It successfully logs the data in the buffer in the first cycle and then stops reading data, WHY?!?!?!?
When I step through the code, it looks normal to me but it won't read any more data after the first cycle. It reads the data continuoulsly with no problem if I comment out the writecommand. What is the conflict between this serial read routine and the write file cycle?

?
Please help...