Sorry for not getting back to you sooner, the school holidays are just starting here in the UK, and the last week of school before the break is always busier than you anticipate.
Anyway, first a little background⦠what weād like to do is create the simplest script that fails, but we also want to be open minded. Itās possible (probable even) that the bug has nothing to do with i2c, my vote is either a race condition or memory corruption in either the Teletype or the TXo firmware.
So, what Iād like to do is starting removing bits of script / functionality until we stop getting lock ups.
This is the order of operations Iād like you to follow if possible (all based on the CRASHTEST script you posted).
-
Make sure that CRASHTEST as is still fails.
-
Remove all the cables from the TXo to the Teletype. Does the Teletype still lock up?
-
Remove the contents of scripts 1-4 and test:
#M
X SUB 320 RSH PARAM 6
L 1 8 : TO.TR.M I MUL I X
#I
L 1 8 : TO.TR.M.ACT I 1
M 50
M.ACT 1
- Test with just 1
TO.TR.M.ACT
#M
X SUB 320 RSH PARAM 6
TO.TR.M 1 MUL 1 X
#I
TO.TR.M.ACT 1 1
M 50
M.ACT 1
- Remove
PARAM:
#M
TO.TR.M 1 <what's a sensible value here?>
#I
TO.TR.M.ACT 1 1
M 50
M.ACT 1
Can you do those and report back please?