This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
unknown cpu 'cortex-m0'
- From: ehuijben <evert dot huijben at axon dot tv>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 21 Feb 2013 04:37:06 -0800 (PST)
- Subject: unknown cpu 'cortex-m0'
Dear all,
I have some serious issues with the GCC compiler when using a cortex-M0
(STM32F051)
When compiling my code with GCC version 4.6.3, which should support
cortex-M0 microcontrollers, I get next messages:
Error: unknown cpu `cortex-m0'
Error: unrecognized option -mcpu=cortex-m0
When compiling the same code with the codesourcery lite package (same
gcc version), it works fine, however I like to configure my own gcc
version.
I configured GCC with next options:
../configure --target=arm-axon-eabi --prefix=toolchain \
--with-cpu=cortex-m0 --with-mode=thumb \
--enable-interwork --disable-multilib \
--enable-languages="c" --with-newlib --without-headers \
--disable-shared --with-gnu-as --with-gnu-ld \
2>&1 | tee configure.log
Looking in the logging, the cortex-m0 is recognized
Also with the newest version 4.7.2 I have the same problems
Who can help me with this issue?
Regards,
Evert
--
View this message in context: http://gcc.1065356.n5.nabble.com/unknown-cpu-cortex-m0-tp916014.html
Sent from the gcc - Help mailing list archive at Nabble.com.