From 3195cf51112a58c8fb9cd0ee7f3eb193290bbd12 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 28 Mar 2024 23:06:16 +0100 Subject: [PATCH] update config.toml template file --- satrs-example-stm32f3-disco/.cargo/def_config.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/satrs-example-stm32f3-disco/.cargo/def_config.toml b/satrs-example-stm32f3-disco/.cargo/def_config.toml index 4150986..2484c66 100644 --- a/satrs-example-stm32f3-disco/.cargo/def_config.toml +++ b/satrs-example-stm32f3-disco/.cargo/def_config.toml @@ -5,11 +5,17 @@ # runner = "arm-none-eabi-gdb -q -x openocd.gdb" # runner = "gdb-multiarch -q -x openocd.gdb" # runner = "gdb -q -x openocd.gdb" -# runner = "probe-run --chip STM32F303VCTx --connect-under-reset" +runner = "probe-rs run --chip STM32F303VCTx" rustflags = [ + "-C", "linker=flip-link", # LLD (shipped with the Rust toolchain) is used as the default linker "-C", "link-arg=-Tlink.x", + "-C", "link-arg=-Tdefmt.x", + + # This is needed if your flash or ram addresses are not aligned to 0x10000 in memory.x + # See https://github.com/rust-embedded/cortex-m-quickstart/pull/95 + "-C", "link-arg=--nmagic", # if you run into problems with LLD switch to the GNU linker by commenting out # this line