This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
main.c:1: error: target CPU does not support ARM mode
- From: Alfred <skybill87 at yahoo dot it>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 17 Feb 2013 10:21:42 +0000 (UTC)
- Subject: main.c:1: error: target CPU does not support ARM mode
Hello,
I'm using a Virtual Machine (VMare Player), in which I run TW WinXp.
In this environment I work with Eclipse.
When I press on the button "Build", here is the message I get:
**** Build of configuration Debug for project Carbone_A1 ****
cs-make all
'Building file: ../main.c'
'Invoking: ARM Sourcery Windows GCC C Compiler'
arm-none-eabi-gcc -I"C:\workspace\Carbone_A1\Libraries"
-I"C:\workspace\Carbone_A1\Libraries\inc"
-I"C:\workspace\Carbone_A1\Libraries\src" -O0 -pedantic -Wall -fsigned-char -c
-fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d" -mcpu=cortex-m3 -g3
-gdwarf-2 -o"main.o" "../main.c"
../main.c:1: error: target CPU does not support ARM mode
cs-make: *** [main.o] Error 1
I don't really know from where this error comes out.
I'd like to kindly ask if
you could help me solving this issue.
Maybe the âmain.câ file I have is wrong.
When I "drop and drag" the main.c to
the project, I noticed that the icons under it, init.h and irq.q, have a yellow
exclamation mark warning sign (before debugging it).
However, this is its content:
#include "init.h"
#include "irq.h"
int main(void)
{
systemInit();
init_VIC();
for(;;)
{
}
}
Thank you very much.