digistump / DigistumpArduino

Files to add Digistump support (Digispark, Pro, DigiX) to Arduino 1.6.X (1.6.5+)
932 stars 377 forks source link

Cannot Write NULL Reliably #137

Open danielbarry opened 3 years ago

danielbarry commented 3 years ago

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.

ArminJo commented 3 years ago

Please have a look here https://github.com/nerdralph/micronucleus-firmware/tree/asm/firmware and then close this issue, since this repo is abandoned 😞 .