docs: why it didnt work without -march

This commit is contained in:
cscherr 2025-07-14 15:52:00 +02:00
parent 6bf1b1beb7
commit 0f3a5f6b32
Signed by: cscherrNT
GPG key ID: 8E2B45BC51A27EA7

View file

@ -22,3 +22,5 @@ CC=arm-none-eabi-gcc AR=arm-none-eabi-ar ceedling release
# compile for this computer # compile for this computer
CC=gcc AR=ar ceedling release 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.