Fix stuff

This commit is contained in:
2021-05-06 23:57:55 +02:00
parent ecd2d92b52
commit 684dbbd882
8 changed files with 415 additions and 163 deletions

View File

@ -1,20 +1,20 @@
[tasks.build]
description = "Build the executable"
command = "cargo"
args = ["build"]
args = ["build", "--release"]
[tasks.objcopy]
decsription = "Transform the binary for upload"
description = "Transform the binary for upload"
command = "arm-none-eabi-objcopy"
args = [
"-O", "binary",
"target/thumbv6m-none-eabi/debug/neowatch",
"target/thumbv6m-none-eabi/debug/neowatch.bin",
"target/thumbv6m-none-eabi/release/neowatch",
"target/thumbv6m-none-eabi/release/neowatch.bin",
]
dependencies = ["build"]
[tasks.wait_for_tty]
decsription = "Wait for serial port to be available for upload"
description = "Wait for serial port to be available for upload"
script = [
'''
#!/bin/sh
@ -32,7 +32,7 @@ done
disabled = true
[tasks.upload]
decsription = "Upload the program to the device"
description = "Upload the program to the device"
command = "bossac"
args = [
"--info",
@ -42,7 +42,7 @@ args = [
"--erase",
"--write",
"--verify",
"target/thumbv6m-none-eabi/debug/neowatch.bin",
"target/thumbv6m-none-eabi/release/neowatch.bin",
"--reset",
]
dependencies = ["objcopy", "wait_for_tty"]