mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-26 10:18:31 +03:00
Makefile: 'make log' for debug dumps over serial
This commit is contained in:
@@ -179,6 +179,11 @@ $(foreach MEMORY, $(MEMORIES), $(eval $(call RULES,$(MEMORY))))
|
|||||||
program:
|
program:
|
||||||
openocd -f openocd/openocd.cfg -c "init" -c "halt" -c "flash write_bank 0 ./bin/project-flash.bin 0" -c "reset" -c "shutdown"
|
openocd -f openocd/openocd.cfg -c "init" -c "halt" -c "flash write_bank 0 ./bin/project-flash.bin 0" -c "reset" -c "shutdown"
|
||||||
|
|
||||||
|
SERIAL ?= /dev/ttyUSB0
|
||||||
|
log:
|
||||||
|
stty -F $(SERIAL) 115200
|
||||||
|
sed -u "s/\r//" $(SERIAL) | ts
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -fR $(OBJ)/*.o $(BIN)/*.bin $(BIN)/*.elf $(BIN)/*.elf.txt $(BIN)/*.map $(BIN)/*.lst
|
-rm -fR $(OBJ)/*.o $(BIN)/*.bin $(BIN)/*.elf $(BIN)/*.elf.txt $(BIN)/*.map $(BIN)/*.lst
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user