I am using the K64f.
In my code I am reading the second UART on this board (pins D0 and D1) and printing the time it takes to read and process the data from this second UART to the USB debug serial port.
Here is the code:
no problem
int main()
{
pc.baud(57600);
printTime();
gps.SetRTC();
gps.RTCUpdated(&printTime);
while (true) {
perf.start();
gps.Update(); //does a while readable on the second UART
perf.stop();
float gpsSec = perf.read();
pc.printf("%f\n", gpsSec);
perf.reset();
}
}
Here is the result of the execution time:
Whens I change the line where it prints to the debug port from:
pc.printf("%f\n", gpsSec);
to:
pc.printf("%f, %f\n", gpsSec, 0.0);
This is now the result of the execution times...
Please could someone explain this, is this a bug, I have tried different baud speeds of the debug port, the UART the gps is attached to is at 9600 baud.
I am using the K64f.
In my code I am reading the second UART on this board (pins D0 and D1) and printing the time it takes to read and process the data from this second UART to the USB debug serial port.
Here is the code:
no problem
Here is the result of the execution time:
Whens I change the line where it prints to the debug port from:
to:
This is now the result of the execution times...
Please could someone explain this, is this a bug, I have tried different baud speeds of the debug port, the UART the gps is attached to is at 9600 baud.