Version 2.1 (Patched).Below is the verified procedure for patching a device identified as xyw58cdt9av7. This process assumes you have physical access to the PCB.
flashrom -p ft2232_spi -w patched_firmware.bin
Or via SWD:
openocd -f interface/stlink.cfg -f target/stm32f1x.cfg -c "flash write_image erase patched_firmware.bin 0x08000000"

