Add Makefile targets for running the simulator

This commit is contained in:
Jake Goulding
2020-07-25 07:36:10 -04:00
parent d061f2fcf1
commit d9916f69e4
2 changed files with 15 additions and 0 deletions

View File

@@ -22,3 +22,17 @@ program: ${HEX}
.PHONY: connect-terminal .PHONY: connect-terminal
connect-terminal: connect-terminal:
picocom ${SERIAL_PORT} picocom ${SERIAL_PORT}
.PHONY: simulate-avr
simulate-avr: ${COMPILED}
simavr \
-m atmega328p \
-f 16000000 \
-g \
-v -v -v -v -v -v -v \
$<
.PHONY: simulate-gdb
simulate-gdb: ${COMPILED}
avr-gdb -x simulate.gdbinit -tui $<

1
simulate.gdbinit Normal file
View File

@@ -0,0 +1 @@
target remote :1234