I have repeatedly mentioned the problem of TinyG taking off on its own after a job is cancelled in CoolTerm. It turns out that neither TinyG nor CoolTerm are malfunctioning. It's the documentation that is incomplete.
CoolTerm isn't at fault. When cancelled in the middle of a run, CoolTerm simply stops transmitting. That's why clearing the CoolTerm buffer does not help. The problem is partial commands that have already been sent to TinyG.
Here is how to stop crashing when cancelling a job being sent with CoolTerm.
1. Press "cancel" in the CoolTerm progress dialog. (The CNC machine will continue moving, because TinyG is still processing commands in its buffer.)
2. In CoolTerm, press the exclamation point (!). This halts TinyG.
3. In CoolTerm, press the percent key (%). This clears TinyG's input buffer. TinyG will not take off on its own when you enter additional commands.
If these instructions had been in the documentation, it would have saved me a huge amount of time and materials in the past three months.
I can't actually guarantee this solves the problem, but since I started doing this, I have not had a crash. I hope this info helps someone else.
Tom King
[email redacted]