This is quite amazing. Dumb question: is there a way to run it in QEMU?
Maybe, I'm not sure how you would connect a debugger to qemu, and you would have to emulate the ram and flash, but other than that is pretty standard arm cortex m0. The code is pretty generic too.