I did make some changes in Git, so they should be in the latest builds - glad it's working.
It appears I might have hit a bug in GCC. Sometimes it was randomly choosing to re-order accesses to the USB hardware registers (even though they were volatile). I posted on StackOverflow about it, but nobody seems to have a clue :)
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.
I did make some changes in Git, so they should be in the latest builds - glad it's working.
It appears I might have hit a bug in GCC. Sometimes it was randomly choosing to re-order accesses to the USB hardware registers (even though they were volatile). I posted on StackOverflow about it, but nobody seems to have a clue :)