OCD = @echo "set OCD in project makefile" OCD-jlink := openocd -f interface/jlink.cfg -f target/stm32f7x.cfg OCD-vsllink := openocd -f interface/vsllink.cfg -c "transport select jtag" -f target/stm32f7x.cfg OCD-arm-usb-ocd := openocd -f interface/ftdi/olimex-arm-usb-ocd.cfg -f target/stm32f7x.cfg OCD-stlink := openocd -f interface/stlink-v2.cfg -c "transport select hla_swd" -f target/stm32f7x.cfg OCD-discovery := openocd -f board/stm32f7discovery.cfg OCD-nucleo := openocd -f interface/stlink-v2-1.cfg -c "transport select hla_swd" -f target/stm32f7x.cfg OCD_RESET = $(OCD) -c init -c "reset run" -c shutdown OCD_FLASH = $(OCD) -c init -c "reset halt" \ -c "flash write_image erase "$(BIN)" 0x08000000" \ -c "reset run" \ -c shutdown OCD_ZFLASH = $(OCD) -c init -c "reset halt" \ -c "flash write_image erase "$(BINZ)" $(ZSTRT)" \ -c "reset run" \ -c shutdown OCD_FFLASH = $(OCD) -c init -c "reset halt" \ -c "flash write_image erase "$(BIN)" $(FSTRT)" \ -c "reset run" \ -c shutdown #OCD_GDB = $(OCD) -c "{stm32f7x}.cpu configure -rtos auto;" OCD_GDB = $(OCD)