docs: why it didnt work without -march
This commit is contained in:
parent
6bf1b1beb7
commit
0f3a5f6b32
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue