Add Makefile targets for running the simulator
This commit is contained in:
14
Makefile
14
Makefile
@@ -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
1
simulate.gdbinit
Normal file
@@ -0,0 +1 @@
|
|||||||
|
target remote :1234
|
||||||
Reference in New Issue
Block a user