From 9c45285d8aa0e75e31d2ffba2dc0ac2d49394745 Mon Sep 17 00:00:00 2001 From: ayabusa Date: Tue, 2 Apr 2024 16:57:22 +0200 Subject: [PATCH] added make flash --- numworks_port/Makefile | 6 +++++- numworks_port/README.md | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/numworks_port/Makefile b/numworks_port/Makefile index 1e1ca64..44faede 100644 --- a/numworks_port/Makefile +++ b/numworks_port/Makefile @@ -89,4 +89,8 @@ clean: rm -f $(BUILD_DIR)/*.o rm -f $(BUILD_DIR)/Laplace/*.o rm -f $(BUILD_DIR)/$(TARGET).elf - rm -f $(BUILD_DIR)/$(TARGET).bin \ No newline at end of file + rm -f $(BUILD_DIR)/$(TARGET).bin + +.PHONY: flash +flash: + dfu-util -a 0 -i 0 -s 0x90400000 -D build/main.bin \ No newline at end of file diff --git a/numworks_port/README.md b/numworks_port/README.md index ddcec10..7e8ef89 100644 --- a/numworks_port/README.md +++ b/numworks_port/README.md @@ -5,7 +5,7 @@ This is a bare metal os attempt on the numworks n0110 1. Download the arm-none-eabi toolchain 2. run ```make clean && make``` 3. the output file is located in build/main.bin -4. you can flash it to slot B using the Web DFU from TI Planet +4. you can flash it to slot B using the Web DFU from TI Planet, or by using the command ```make flash``` (unstable) 5. That's it ! ## TODO