File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,17 +169,26 @@ from-scratch: all flash.jlink flash-softdevice
169169 $(MAKE_BUILD_FOLDER)
170170 $(JLINK) $(OUTPUT_PATH)flash.jlink
171171
172- startdebug: debug-gdbinit
172+ startdebug: startdebug.jlink
173+
174+ startdebug.jlink: debug-gdbinit.jlink
173175 $(TERMINAL) "$(JLINKGDBSERVER) -port $(GDB_PORT_NUMBER)"
174176 sleep 1
175177 $(TERMINAL) "$(GDB) $(ELF)"
176178
179+ startdebug.stlinkv2: debug-gdbinit.stlinkv2
180+ $(GDB) $(ELF)
181+
177182startrtt:
178183 $(TERMINAL) "JLinkExe -device nrf51822 -if swd -speed 1000 -AutoConnect 1"
179184 sleep 1
180185 $(TERMINAL) "$(JLINKRTTCLIENT)"
181186
182- debug-gdbinit:
187+ debug-gdbinit.jlink :
183188 printf "target remote localhost:$(GDB_PORT_NUMBER)\nload\nmon reset\nbreak main\n" > .gdbinit
184189
190+ debug-gdbinit.stlinkv2:
191+ printf "target remote | $(OPENOCD) -c 'gdb_port pipe; log_output openocd.log'" > .gdbinit
192+
193+
185194.PHONY: flash flash-softdevice erase-all startdebug test-softdevice flash.jlink
You can’t perform that action at this time.
0 commit comments