Yes, you can detect the error at least - but obviously you can't stop it overflowing.
To test, you can do something like t=getTime()+10;while (getTime()<t); while uploading to RAM - so forcing the code (which executes on upload) to pause for 10 seconds - then you need to send lots (1k?) of data after that.
I actually hit this issue yesterday, so the absolute latest builds of Espruino (and 2v05+ when released) will now have XON/XOFF flow control built in.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, you can detect the error at least - but obviously you can't stop it overflowing.
To test, you can do something like
t=getTime()+10;while (getTime()<t);
while uploading to RAM - so forcing the code (which executes on upload) to pause for 10 seconds - then you need to send lots (1k?) of data after that.I actually hit this issue yesterday, so the absolute latest builds of Espruino (and 2v05+ when released) will now have XON/XOFF flow control built in.