set debug xml
target remote localhost:3333
monitor halt
monitor flash probe 0
monitor stm32x mass_erase 0
monitor flash write_image out/image.bin
monitor reset halt
monitor soft_reset_halt
thbreak main
continue