flit / argon-rtos

Argon RTOS: tiny embedded C/C++ RTOS for Cortex-M
BSD 3-Clause "New" or "Revised" License
64 stars 14 forks source link

Add support for Cortex-M4 w/o FPU #17

Closed patrislav1 closed 2 years ago

patrislav1 commented 2 years ago

I'm testing Argon RTOS on a ATSAM4LS8C, which is a Cortex-M4 without FPU. When compiling for this chip, gcc assembler refuses to translate the FPU-specific instructions (see below).

I added an alternative ar_handlers_cm4_nofpu.S which does the same as ar_handlers_cm4.S, but without doing the FPU-specific extended frame handling.

/home/patrick/src/argon-rtos/src/cortex_m/ar_handlers_cm4.S: Assembler messages:
/home/patrick/src/argon-rtos/src/cortex_m/ar_handlers_cm4.S:64: Error: selected FPU does not support instruction -- `vstmdb r0!,{s16-s31}'
/home/patrick/src/argon-rtos/src/cortex_m/ar_handlers_cm4.S:90: Error: selected FPU does not support instruction -- `vldmia r0!,{s16-s31}'
flit commented 2 years ago

Thanks!