Skip to content

Commit

Permalink
README and vs code update
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Sep 30, 2024
1 parent 1dec2d2 commit 1a0254a
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 29 deletions.
6 changes: 3 additions & 3 deletions flashloader/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VA416xx Flashloader Application
VA108xx Flashloader Application
========

This flashloader shows a minimal example for a self-updatable Rust software which exposes
Expand Down Expand Up @@ -31,7 +31,7 @@ pip install -r requirements.txt
to install all required dependencies.

After that, it is recommended to use `./image-load.py -h` to get an overview of some options.
The flash loader uses the UART0 interface of the VA416xx board to perform CCSDS based
The flash loader uses the UART0 with the Pins PA8 (RX) and PA9 (TX) interface of the VA108xx to perform CCSDS based
communication. The Python image loader application will search for a file named `loader.toml` and
use the `serial_port` key to determine the serial port to use for serial communication.

Expand All @@ -51,7 +51,7 @@ You can use
cd flashloader/slot-a-blinky
cargo build --release
cd ../..
./image-loader.py -t a ./slot-a-blinky/target/thumbv7em-none-eabihf/release/slot-a-blinky
./image-loader.py -t a ./slot-a-blinky/target/thumbv6m-none-eabi/release/slot-a-blinky
```

to build the slot A sample application and upload it to a running flash loader application
Expand Down
8 changes: 4 additions & 4 deletions vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
"device": "Cortex-M0",
"svdFile": "./va108xx/svd/va108xx.svd.patched",
"preLaunchTask": "blinky-hal",
"executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/examples/adxl343-accelerometer",
"executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/examples/blinky",
"interface": "jtag",
"runToEntryPoint": "main",
},
Expand Down Expand Up @@ -460,7 +460,7 @@
"device": "Cortex-M0",
"svdFile": "./va108xx/svd/va108xx.svd.patched",
"preLaunchTask": "bootloader",
"executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/bootloader",
"executable": "${workspaceFolder}/target/thumbv6m-none-eabi/release/bootloader",
"interface": "jtag",
"runToEntryPoint": "main",
"rttConfig": {
Expand All @@ -484,7 +484,7 @@
"device": "Cortex-M0",
"svdFile": "./va108xx/svd/va108xx.svd.patched",
"preLaunchTask": "flashloader",
"executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/flashloader",
"executable": "${workspaceFolder}/target/thumbv6m-none-eabi/release/flashloader",
"interface": "jtag",
"runToEntryPoint": "main",
"rttConfig": {
Expand All @@ -500,4 +500,4 @@
}
},
]
}
}
136 changes: 114 additions & 22 deletions vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"label": "rust: cargo build",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build"],
"args": [
"build"
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -17,7 +19,13 @@
"label": "rust: cargo build hal tests",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--bin", "board-tests", "--features", "rt"],
"args": [
"build",
"--bin",
"board-tests",
"--features",
"rt"
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -27,7 +35,11 @@
"label": "rust: cargo build rtt",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--example", "rtt-log"],
"args": [
"build",
"--example",
"rtt-log"
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -37,7 +49,13 @@
"label": "rust: cargo build systick",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--example", "timer-ticks", "--features", "rt"],
"args": [
"build",
"--example",
"timer-ticks",
"--features",
"rt"
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -47,7 +65,11 @@
"label": "rust: cargo build uart",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--example", "uart"],
"args": [
"build",
"--example",
"uart"
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -57,7 +79,11 @@
"label": "rust: cargo build spi",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--example", "spi"],
"args": [
"build",
"--example",
"spi"
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -67,7 +93,13 @@
"label": "rust: cargo build pwm",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--example", "pwm", "--features", "rt"],
"args": [
"build",
"--example",
"pwm",
"--features",
"rt"
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -77,7 +109,13 @@
"label": "rust: cargo build cascade",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--example", "cascade", "--features", "rt"],
"args": [
"build",
"--example",
"cascade",
"--features",
"rt"
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -87,7 +125,11 @@
"label": "uart-echo-rtic-example",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--bin", "uart-echo-rtic"],
"args": [
"build",
"--bin",
"uart-echo-rtic"
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -97,7 +139,11 @@
"label": "blinky-hal",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--example", "blinky"],
"args": [
"build",
"--example",
"blinky"
],
"group": {
"kind": "build"
}
Expand All @@ -106,7 +152,11 @@
"label": "rust: cargo build led blinky",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--example", "blinky-leds"],
"args": [
"build",
"--example",
"blinky-leds"
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -116,7 +166,11 @@
"label": "rust: cargo build button blinky",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--example", "blinky-button-irq"],
"args": [
"build",
"--example",
"blinky-button-irq"
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -126,7 +180,11 @@
"label": "rust: cargo build temp sensor",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--example", "adt75-temp-sensor"],
"args": [
"build",
"--example",
"adt75-temp-sensor"
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -136,7 +194,11 @@
"label": "rust: cargo build button blinky rtic",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--example", "blinky-button-rtic"],
"args": [
"build",
"--example",
"blinky-button-rtic"
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -146,7 +208,11 @@
"label": "rust: cargo build accelerometer",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--example", "adxl343-accelerometer"],
"args": [
"build",
"--example",
"adxl343-accelerometer"
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -156,7 +222,11 @@
"label": "rust: cargo build adc",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--example", "max11619-adc"],
"args": [
"build",
"--example",
"max11619-adc"
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -166,7 +236,11 @@
"label": "reb1-nvm",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--example", "nvm"],
"args": [
"build",
"--example",
"nvm"
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -176,25 +250,43 @@
"label": "rtic-example",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--bin", "rtic-example"]
"args": [
"build",
"--bin",
"rtic-example"
]
},
{
"label": "embassy-example",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--bin", "embassy-example"]
"args": [
"build",
"--bin",
"embassy-example"
]
},
{
"label": "bootloader",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--bin", "bootloader"]
"args": [
"build",
"--bin",
"bootloader",
"--release",
]
},
{
"label": "flashloader",
"type": "shell",
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
"args": ["build", "--bin", "flashloader"]
"args": [
"build",
"--bin",
"flashloader",
"--release"
]
}
]
}
}

0 comments on commit 1a0254a

Please sign in to comment.