Wilbert

Good snooping. The glitch is causing your firmware NOT to see the ST sequence. So, you go on waiting till you catch it .... and guess what -- it doesnt come again!

A better technique would be to
1. Wait for byte1=S
2. Wait for byte2=T
3. Process packet

I hope you can fix this yourself.

Jerson