Quail can be programmed via USB with the ST DFU bootloader, using e.g. dfu-util or pydfu.py.
To enter the bootloader press and release the Reset button while holding the
Boot button. Alternatively, you can use machine.bootloader()
from the
MicroPython REPL.
dfu-util --alt 0 -D firmware.dfu