sidestep
[mTask.git] / int / com / pj / oocd-stm32f7xx.mk
1 OCD = @echo "set OCD in project makefile"
2
3 OCD-jlink := openocd -f interface/jlink.cfg -f target/stm32f7x.cfg
4 OCD-vsllink := openocd -f interface/vsllink.cfg -c "transport select jtag" -f target/stm32f7x.cfg
5 OCD-arm-usb-ocd := openocd -f interface/ftdi/olimex-arm-usb-ocd.cfg -f target/stm32f7x.cfg
6 OCD-stlink := openocd -f interface/stlink-v2.cfg -c "transport select hla_swd" -f target/stm32f7x.cfg
7 OCD-discovery := openocd -f board/stm32f7discovery.cfg
8 OCD-nucleo := openocd -f interface/stlink-v2-1.cfg -c "transport select hla_swd" -f target/stm32f7x.cfg
9
10 OCD_RESET = $(OCD) -c init -c "reset run" -c shutdown
11 OCD_FLASH = $(OCD) -c init -c "reset halt" \
12 -c "flash write_image erase "$(BIN)" 0x08000000" \
13 -c "reset run" \
14 -c shutdown
15
16 OCD_ZFLASH = $(OCD) -c init -c "reset halt" \
17 -c "flash write_image erase "$(BINZ)" $(ZSTRT)" \
18 -c "reset run" \
19 -c shutdown
20
21 OCD_FFLASH = $(OCD) -c init -c "reset halt" \
22 -c "flash write_image erase "$(BIN)" $(FSTRT)" \
23 -c "reset run" \
24 -c shutdown
25
26 #OCD_GDB = $(OCD) -c "{stm32f7x}.cpu configure -rtos auto;"
27 OCD_GDB = $(OCD)