[quote:af0fa35529="Evert :-)"]Try something like this to see if the problem is maybe in the print, or are you using Rs485 or something like that?
[code:1:af0fa35529]
Print "Command: " ; Temp$ ; " end" 'Temp$ should be "START,2,3"
waitms 500
[/code:1:af0fa35529][/quote:af0fa35529]
Thanks to you too, Evert.
I'm not using RS485 or printing or inputting in that block of code, which fails consistently even without the debug print statements.
The only active interrupt is a Timer1 overflow interrupt service routine once per second which sets a flag only.
I'll try increasing the stack size to see if that helps.
↧