diff --git a/Makefile b/Makefile index 0ae19bb..002d056 100644 --- a/Makefile +++ b/Makefile @@ -64,11 +64,6 @@ flash: $(TARGET) -U lock:w:0xFF:m \ -U flash:w:$< -.PHONY: run -run: $(TARGET) - $(E) "[SIM] $<" - $(Q) $(SIM) -m $(MCU) -f $(FREQ) $< - .PHONY: clean clean: $(E) "[REM] $(TARGET)" @@ -90,6 +85,11 @@ check: $(E) "[CHK] Not implemented." $(Q) true +.PHONY: simulate +simulate: $(TARGET) + $(E) "[SIM] $<" + $(Q) $(SIM) -m $(MCU) -f $(FREQ) $< + .PHONY: listen listen: opt/tools/serial-listen $(E) "[RUN] $<" diff --git a/docs/README.md b/docs/README.md index 4434727..4550210 100644 --- a/docs/README.md +++ b/docs/README.md @@ -39,9 +39,12 @@ of these commands: Isolated unit tests allow you to verify all testable components are behaving as expected. Please note that most tests will be added later down the road, when the project -has reached a more mature state. +has reached a more mature state. There is also support for +testing on simulated hardware if you have +[simavr](https://github.com/buserror/simavr) installed. make check + make simulate You can listen on the serial debug interface by running the command below. This will also initialize all optional