The driver doesn't seem to be able to handle NULL (zero) bytes reliably - there is some kind of lockup/crash (it's difficult to debug with the tools I have). It's a lot more troublesome if you are reading and writing rapidly.
This is particularly more troublesome for larger pieces of code - where calling SerialUSB.refresh() at regular intervals does not help.
Admittedly I don't understand the driver enough to hunt down the bug exactly. Willing to work with somebody to track this bug down.
The driver doesn't seem to be able to handle NULL (zero) bytes reliably - there is some kind of lockup/crash (it's difficult to debug with the tools I have). It's a lot more troublesome if you are reading and writing rapidly.
This is particularly more troublesome for larger pieces of code - where calling
SerialUSB.refresh()
at regular intervals does not help.Admittedly I don't understand the driver enough to hunt down the bug exactly. Willing to work with somebody to track this bug down.