Xyw58cdt9av7 Manual Patched Here
Using a hex editor, navigate to each offset and modify the bytes as shown above. Alternatively, apply a pre-made patch file with:
openocd -f interface/stlink.cfg -f target/stm32f1x.cfg -c "flash write_image erase patched_firmware.bin 0x08000000" xyw58cdt9av7 manual patched