Skip to content
Snippets Groups Projects
Commit 13a848ce authored by Per Lindgren's avatar Per Lindgren
Browse files

bluepill works

parent 54f68823
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,6 @@ rustflags = [ ...@@ -28,6 +28,6 @@ rustflags = [
[build] [build]
# Pick ONE of these compilation targets # Pick ONE of these compilation targets
# target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+ # target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+
# target = "thumbv7m-none-eabi" # Cortex-M3 target = "thumbv7m-none-eabi" # Cortex-M3
# target = "thumbv7em-none-eabi" # Cortex-M4 and Cortex-M7 (no FPU) # target = "thumbv7em-none-eabi" # Cortex-M4 and Cortex-M7 (no FPU)
target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU) # target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
...@@ -102,6 +102,12 @@ MEMORY ...@@ -102,6 +102,12 @@ MEMORY
$ cargo build $ cargo build
``` ```
## probe.rs, cargo-flash and friends
``` console
$ cargo flash --example hello --release --chip STM32F103C8 --log debug
```
## VS Code ## VS Code
This template includes launch configurations for debugging CortexM programs with Visual Studio Code located in the `.vscode/` directory. This template includes launch configurations for debugging CortexM programs with Visual Studio Code located in the `.vscode/` directory.
...@@ -133,3 +139,5 @@ to intervene to uphold that code of conduct. ...@@ -133,3 +139,5 @@ to intervene to uphold that code of conduct.
[CoC]: https://www.rust-lang.org/policies/code-of-conduct [CoC]: https://www.rust-lang.org/policies/code-of-conduct
[team]: https://github.com/rust-embedded/wg#the-cortex-m-team [team]: https://github.com/rust-embedded/wg#the-cortex-m-team
...@@ -3,8 +3,8 @@ MEMORY ...@@ -3,8 +3,8 @@ MEMORY
/* NOTE 1 K = 1 KiBi = 1024 bytes */ /* NOTE 1 K = 1 KiBi = 1024 bytes */
/* TODO Adjust these memory regions to match your device memory layout */ /* TODO Adjust these memory regions to match your device memory layout */
/* These values correspond to the LM3S6965, one of the few devices QEMU can emulate */ /* These values correspond to the LM3S6965, one of the few devices QEMU can emulate */
FLASH : ORIGIN = 0x00000000, LENGTH = 256K FLASH : ORIGIN = 0x08000000, LENGTH = 32K
RAM : ORIGIN = 0x20000000, LENGTH = 64K RAM : ORIGIN = 0x20000000, LENGTH = 16K
} }
/* This is where the call stack will be allocated. */ /* This is where the call stack will be allocated. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment