-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into feat/spi
- Loading branch information
Showing
33 changed files
with
2,026 additions
and
23 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[build] | ||
target = "riscv32imafc-unknown-none-elf" | ||
|
||
[target.riscv32imafc-unknown-none-elf] | ||
# runner = 'riscv64-unknown-elf-gdb -x ../../openocd.gdb' | ||
runner = "probe-rs run --chip HPM6360 --protocol jtag --chip-description-path ../../HPMicro.yaml" | ||
|
||
rustflags = [ | ||
# +zba,+zbb,+zbc,+zbs are not available | ||
# Linker scripts: | ||
"-C", | ||
"link-arg=-Tmemory.x", | ||
"-C", | ||
"link-arg=-Tdevice.x", # __VECTORED_INTERRUPTS | ||
"-C", | ||
"link-arg=-Tlink-fixed.x", | ||
"-C", | ||
"link-arg=-Tdefmt.x", | ||
"-C", | ||
"link-arg=-nmagic", | ||
|
||
# "--emit", "obj", | ||
# "--emit", "asm", | ||
] | ||
|
||
[unstable] | ||
build-std = ["core"] | ||
|
||
[env] | ||
DEFMT_LOG = "info" |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[package] | ||
name = "hpm6300evk" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
defmt = "0.3.8" | ||
defmt-rtt = "0.4.1" | ||
embedded-hal = "1.0.0" | ||
hpm-metapac = { path = "../../../hpm-data/build/hpm-metapac", features = [ | ||
"hpm6360", | ||
"memory-x", | ||
"rt", | ||
] } | ||
panic-halt = "0.2.0" | ||
riscv = { version = "0.11.1", features = ["critical-section-single-hart"] } | ||
riscv-rt = { version = "0.12.2", features = ["single-hart"] } | ||
|
||
|
||
[profile.release] | ||
strip = false # symbols are not flashed to the microcontroller, so don't strip them. | ||
lto = true | ||
opt-level = "z" # Optimize for size. | ||
debug = 2 |
Oops, something went wrong.