This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Cortex M3 Support
- From: Neil MacMunn <nmacmunn at gmail dot com>
- To: libffi-discuss at sourceware dot org
- Date: Sat, 29 Jan 2011 20:51:03 -0800
- Subject: Cortex M3 Support
Hi Everyone,
I'm trying to build libffi for a Luminary Cortex-M3 processor. Has
anyone tried this? I've installed arm-bare_newlib_cortex_m3_
nommu-eabi toolchain using crosstool-ng and am getting the following
error message:
Building file: ../source/ffi/sysv.S
Invoking: GCC Assembler
arm-bare_newlib_cortex_m3_nommu-eabi-gcc -Wa,-mthumb-interwork
-I"/home/neil/m3projects/robovero/firmware/include"
-o"source/ffi/sysv.o" "../source/ffi/sysv.S"
../source/ffi/sysv.S: Assembler messages:
../source/ffi/sysv.S:145: Error: selected processor does not support ARM opcodes
../source/ffi/sysv.S:147: Error: attempt to use an ARM instruction on
a Thumb-only processor -- `stmfd sp!,{r0-r3,fp,lr}'
I've tried passing various command line options to the assembler to no
avail. I have little experience building toolchains so I'm unsure of
whether I did that wrong of if libffi simply doesn't support thumb2.
Can anyone help me?
Thanks.
--
Neil MacMunn