added make flash

This commit is contained in:
ayabusa 2024-04-02 16:57:22 +02:00
parent d3d586b6d2
commit 9c45285d8a
2 changed files with 6 additions and 2 deletions

View File

@ -89,4 +89,8 @@ clean:
rm -f $(BUILD_DIR)/*.o rm -f $(BUILD_DIR)/*.o
rm -f $(BUILD_DIR)/Laplace/*.o rm -f $(BUILD_DIR)/Laplace/*.o
rm -f $(BUILD_DIR)/$(TARGET).elf rm -f $(BUILD_DIR)/$(TARGET).elf
rm -f $(BUILD_DIR)/$(TARGET).bin rm -f $(BUILD_DIR)/$(TARGET).bin
.PHONY: flash
flash:
dfu-util -a 0 -i 0 -s 0x90400000 -D build/main.bin

View File

@ -5,7 +5,7 @@ This is a bare metal os attempt on the numworks n0110
1. Download the arm-none-eabi toolchain 1. Download the arm-none-eabi toolchain
2. run ```make clean && make``` 2. run ```make clean && make```
3. the output file is located in build/main.bin 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 ! 5. That's it !
## TODO ## TODO