From 0f3a5f6b3289f59b0186735f7dd30c1c87dd42bd Mon Sep 17 00:00:00 2001 From: cscherr Date: Mon, 14 Jul 2025 15:52:00 +0200 Subject: [PATCH] docs: why it didnt work without -march --- crates/algorithms/algorithms-c/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/algorithms/algorithms-c/README.md b/crates/algorithms/algorithms-c/README.md index b543f49..7ddff6e 100755 --- a/crates/algorithms/algorithms-c/README.md +++ b/crates/algorithms/algorithms-c/README.md @@ -22,3 +22,5 @@ CC=arm-none-eabi-gcc AR=arm-none-eabi-ar ceedling release # compile for this computer CC=gcc AR=ar ceedling release ``` + +It is also critically important to define the `-march=ARCH` option when using `arm-none-eabi-gcc`, since the compiler will otherwise just assume a target architecture. In this case, it needs to be set to `armv6-m`, since the MPU is a `cortex-M0+`. This MPU does only support the thumb instructionset, not the ARM32 set.