diff --git a/.cargo/config b/.cargo/config index e83870c3cdbc80c02126fd46c0f65923bb4a538d..5d9827744ddcc6ea172a41feaae06cb399649645 100644 --- a/.cargo/config +++ b/.cargo/config @@ -28,6 +28,6 @@ rustflags = [ [build] # Pick ONE of these compilation targets # 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-eabihf" # Cortex-M4F and Cortex-M7F (with FPU) +# target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU) diff --git a/README.md b/README.md index 293c092056e5fbe9f12f8e72a40ace85d5c83079..4aa37cd618e8970429a8acc632df53221a54c6bf 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,12 @@ MEMORY $ cargo build ``` +## probe.rs, cargo-flash and friends + +``` console +$ cargo flash --example hello --release --chip STM32F103C8 --log debug +``` + ## VS Code 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. [CoC]: https://www.rust-lang.org/policies/code-of-conduct [team]: https://github.com/rust-embedded/wg#the-cortex-m-team + + diff --git a/memory.x b/memory.x index b271f22c6dafe075bb0a51074941ce72e961e4bd..7367b27622aac4f886ae2dfc0a295dcf01ac29a4 100644 --- a/memory.x +++ b/memory.x @@ -3,8 +3,8 @@ MEMORY /* NOTE 1 K = 1 KiBi = 1024 bytes */ /* 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 */ - FLASH : ORIGIN = 0x00000000, LENGTH = 256K - RAM : ORIGIN = 0x20000000, LENGTH = 64K + FLASH : ORIGIN = 0x08000000, LENGTH = 32K + RAM : ORIGIN = 0x20000000, LENGTH = 16K } /* This is where the call stack will be allocated. */