set WORKAREASIZE 0xffff source [find interface/usb2jtag_mb.cfg] source [find target/stm32.cfg] source [find cpu/arm/cortex_m3.tcl] source [find chip/st/stm32/stm32.tcl] #reset_config srst_only reset_config trst_and_srst #jtag_khz 100 #stm32x mass_erase 0 stm32.cpu configure -event reset-init { halt flash probe 0 #stm32x mass_erase 0 } #gdb_flash_program enable init reset init