Debug trick?
My firmware works in ping pong mode, but still has problems otherwise. I am trying to figure out what the problem is.
Looking at the uart_rx buffer it looks like it did the last command and the head and tail pointers are the same so that it finished all commands to that point. What I am not sure about is whether the acknowledge "ok" from the firmware is truly in response to the last command that was performed before it halted. I am wondering if I could add a Delay by using Dwell time G4 command that would allow the previous commands to finish and catch up. If there is a mismatch in the acknowledge and in fact I lost a command acknowledge causing the host to halt and wait, then perhaps the halt would ensure this didnt happen?? Another possibility would be to add the line number to "ok" if I can figure out a way and if this additional number didn't cause a problem with the Host? It would be simpler to echo back the command being performed with the OK, but its unlikely that this would be displayed by the host?? Does any of this make sense?
Comments