1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
define flash file demo.elf load end define restart run end define attach_swd mon swdp_scan attach 1 end define attach_jtag mon jtag_scan attach 1 end file demo.elf target extended-remote /dev/cu.usbmodem7FC181B1 set mem inaccessible-by-default off