From 4c80cf49e3850ca979a57b62a63d2e9d6acb744b Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Tue, 14 Feb 2023 08:59:17 -0500 Subject: Bump cortex-m-rt version to 0.7.3 The reset handler of 0.7.2 pushes four bytes onto the stack, resulting in a misaligned stack pointer once the next procedure (main) is called. Compilers are free to assume that the stack is eight byte aligned when optimizing code. We depend on this reset handler, so this affects imxrt-rt users. Take the approach recommended in the cortex-m-rt advisory and update to 0.7.3. I tested this by building and running the two examples in this repo on a 1010EVK. Also tested in imxrt-hal by building and running examples on a 1010EVK. cortex-m-rt 0.7.2 is yanked. Since imxrt-rt 0.1.0 fixes its cortex-m-rt version, it will no longer build. I have no plan to also yank imxrt-rt 0.1.0; the upstream yank already signals that something is broken. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 588f2c9..9f43be8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ device = ["cortex-m-rt/device"] cfg-if = "1.0" [target.'cfg(all(target_arch = "arm", target_os = "none"))'.dependencies] -cortex-m-rt = { version = "=0.7.2", features = ["set-vtor", "set-sp"] } +cortex-m-rt = { version = "=0.7.3", features = ["set-vtor", "set-sp"] } [target.'cfg(all(target_arch = "arm", target_os = "none"))'.dev-dependencies] board = { path = "board" } -- cgit v1.2.3