-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore:
kampela-system
: bump substrate-parser, minimal cleanup (#26)
* chore: bump substrate-parser, minimal cleanup * chore: moved to modern deps, separated simulator * chore: deps, cleanup * fix: update screen calibration tool * fix: now compatible with siltti
- Loading branch information
1 parent
0eb0626
commit 0860510
Showing
30 changed files
with
2,225 additions
and
5,452 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,17 @@ | ||
[package] | ||
authors = ["Vera Abramova <[email protected]>"] | ||
edition = "2021" | ||
name = "app" | ||
name = "screen-calibration-app" | ||
version = "0.1.0" | ||
|
||
[dependencies] | ||
bitvec = {version = "1.0.1", default-features = false, features = ["alloc"]} | ||
cortex-m = { version = "0.7.6", features = ["critical-section-single-core"]} | ||
cortex-m-rt = "0.7.2" | ||
cortex-m-semihosting = "0.3.3" | ||
efm32pg23_fix = {path = "../kampela_experiments_efm32pg23/efm32pg23_fix", features = ["critical-section", "rt"]} | ||
embedded-alloc = "0.5.0" # embedded-alloc required nightly! | ||
embedded-graphics = "0.7.1" | ||
embedded-graphics-core = "0.3.3" | ||
embedded-text = {version = "0.5.0", default-features = false} | ||
kampela-system = { path = "../kampela-system" } | ||
kampela-display-common = { path = "../kampela-display-common" } | ||
kolibri = {path = "../kolibri", default-features = false} | ||
panic-halt = "0.2.0" | ||
rand_core = {version = "0.6.4", default-features = false} | ||
|
||
[profile.release] | ||
codegen-units = 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
echo "Building..." | ||
|
||
cargo build --release | ||
mv target/thumbv8m.main-none-eabihf/release/app target/thumbv8m.main-none-eabihf/release/app.elf | ||
arm-none-eabi-objcopy -O binary target/thumbv8m.main-none-eabihf/release/app.elf target/thumbv8m.main-none-eabihf/release/app.bin | ||
|
||
BUILD_DIRECTORY="target/thumbv8m.main-none-eabihf" | ||
EXECUTABLE="$BUILD_DIRECTORY/release/screen-calibration-app" | ||
FIRMWARE="$BUILD_DIRECTORY/release/screen-calibration-app.bin" | ||
|
||
echo "Preparing binary file..." | ||
|
||
arm-none-eabi-objcopy -O binary "$EXECUTABLE" "$FIRMWARE" | ||
|
||
echo "Flashing..." | ||
|
||
if [[ -z "$1" || "$1" == "--pilkki" ]]; then | ||
pilkki write -i "$FIRMWARE" | ||
elif [ "$1" == "--segger" ]; then | ||
commander flash "$FIRMWARE" --device EFM32PG23B200F512IM40 --address 0x08000000 | ||
else | ||
echo "What means \"$1\"? Usage:" | ||
echo "$0 [--pilkki|--segger]" | ||
exit -1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.