File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -169,17 +169,26 @@ from-scratch: all flash.jlink flash-softdevice
169
169
$(MAKE_BUILD_FOLDER)
170
170
$(JLINK) $(OUTPUT_PATH)flash.jlink
171
171
172
- startdebug: debug-gdbinit
172
+ startdebug: startdebug.jlink
173
+
174
+ startdebug.jlink: debug-gdbinit.jlink
173
175
$(TERMINAL) "$(JLINKGDBSERVER) -port $(GDB_PORT_NUMBER)"
174
176
sleep 1
175
177
$(TERMINAL) "$(GDB) $(ELF)"
176
178
179
+ startdebug.stlinkv2: debug-gdbinit.stlinkv2
180
+ $(GDB) $(ELF)
181
+
177
182
startrtt:
178
183
$(TERMINAL) "JLinkExe -device nrf51822 -if swd -speed 1000 -AutoConnect 1"
179
184
sleep 1
180
185
$(TERMINAL) "$(JLINKRTTCLIENT)"
181
186
182
- debug-gdbinit:
187
+ debug-gdbinit.jlink :
183
188
printf "target remote localhost:$(GDB_PORT_NUMBER)\nload\nmon reset\nbreak main\n" > .gdbinit
184
189
190
+ debug-gdbinit.stlinkv2:
191
+ printf "target remote | $(OPENOCD) -c 'gdb_port pipe; log_output openocd.log'" > .gdbinit
192
+
193
+
185
194
.PHONY: flash flash-softdevice erase-all startdebug test-softdevice flash.jlink
You can’t perform that action at this time.
0 commit comments