make clean
make
openocd -f jlink.cfg -f stm32f0x.cfg
or using default openocd script files
openocd -f interface/jlink.cfg -f target/stm32f0x.cfg
or using auto script
./script/run_openocd.sh
arm-none-linux-gnueabi-gdb
target remote 127.0.0.1:3333
monitor halt
monitor flash write_image erase build/mini_pm.elf
monitor reset
or using script
arm-none-line-gnueabi-gdb
source script/gdb_download.gdb
or using makefile command
make download
make debug
dfu-convert -b 0x08000000:build/mini_pm.bin build/mini_pm.dfu
dfu-util -a 0 -D build/mini_pm.dfu