main.c:1: error: target CPU does not support ARM mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux