-
-
Notifications
You must be signed in to change notification settings - Fork 75
Cannot flash to XMC4500 #386
Comments
Hi @KRACK-BIT, Did you do all the steps listed in the README of our Is there a specific reason you use |
Thanks for the reply @Urhengulas I've gone through and switched my code to comply with the template; however, the code still does not work.
|
Moreover, even when I downgrade and switch to using Current Cargo.toml [package]
authors = ["KRACKY <46194176+KRACK-BIT@users.noreply.github.com>"]
name = "kybe-rs"
edition = "2021"
version = "0.1.0"
[lib]
harness = false
# needed for each integration test
[[test]]
name = "integration"
harness = false
[dependencies]
cortex-m = { version = "0.7", features = ["critical-section-single-core"] }
cortex-m-rt = "0.6"
# cortex-m-rt = "0.7"
# defmt = "0.2"
defmt = "0.3"
# defmt-rtt = "0.2"
defmt-rtt = "0.4"
# panic-probe = { version = "0.2", features = ["print-defmt"] }
panic-probe = { version = "0.3", features = ["print-defmt"] }
xmc4-hal = { version = "0.0.1", features = ["xmc4500"] }
# xmc4500 = "0.6.0"
# Rust crypto primities
sha3 = { version = "0.10.6", default-features = false }
kem = "0.2.0"
# hex-literal = "0.3.4"
# Uncomment for the allocator example.
# alloc-cortex-m = "0.4.0"
[dev-dependencies]
# defmt-test = "0.3"
# defmt-test = "0.2.3"
# [[bin]]
# name = "kybe-rs"
# test = false
# bench = false
# cargo build/run
[profile.dev]
codegen-units = 1
debug = 2
debug-assertions = true # <-
incremental = false
opt-level = 'z' # <-
overflow-checks = true # <-
# cargo test
[profile.test]
codegen-units = 1
debug = 2
debug-assertions = true # <-
incremental = false
opt-level = 3 # <-
overflow-checks = true # <-
# cargo build/run --release
[profile.release]
codegen-units = 1
debug = 2
debug-assertions = false # <-
incremental = false
lto = 'fat'
opt-level = 3 # <-
overflow-checks = false # <-
# cargo test --release
[profile.bench]
codegen-units = 1
debug = 2
debug-assertions = false # <-
incremental = false
lto = 'fat'
opt-level = 3 # <-
overflow-checks = false # <-
# uncomment this to switch from the crates.io version of defmt to its git version
# check app-template's README for instructions
# [patch.crates-io]
# defmt = { git = "https://github.com/knurling-rs/defmt", rev = "use defmt version reported by `probe-run --version`" }
# defmt-rtt = { git = "https://github.com/knurling-rs/defmt", rev = "use defmt version reported by `probe-run --version`" }
# defmt-test = { git = "https://github.com/knurling-rs/defmt", rev = "use defmt version reported by `probe-run --version`" }
# panic-probe = { git = "https://github.com/knurling-rs/defmt", rev = "use defmt version reported by `probe-run --version`" } |
@Urhengulas do you (or anyone who is reading this) know if there are any examples of XMC devices successfully using this template for |
I am not aware of any. |
Maybe you can open an issue on one of the HALs and ask if they have experience? |
Cannot run
probe-run
on an XMC4500 microcontroller; memory ranges are apparently incorrectI am currently trying to flash a very basic hello world program as a proof-of-concept for running on my microcontroller; however, this fails to run.
To Reproduce
Steps to reproduce the behavior:
Example
example/hello.rs
cargo run --example hello
Expected and observed behavior
I was expecting it to successfully execute and print
hello world
Resulting behavior however was
config.toml
Probe details
Operating System:
Docker Desktop on Windows (i.e. Linux VM on Windows); I've got USB pass-through set up, am doing everything within Linux, and it was working without issue when flashing with GDB, so should be working indistinguishable to a Linux box.
ELF file (attachment)
I am happy to upload this, but rn GitHub isn't letting me upload things which are not a specific file type; what is the recommended way of uploading ELF files here?
The text was updated successfully, but these errors were encountered: