On 23/01/15 10:11, Yermolenko Pavel wrote:
Hello,
While trying to compile very simple project (hello_world) the following errors occur (please see the copy of Build log below)
Can someone help me in resolving of the problem.
Or at least understand what mean these messages - in the core of error message there is "selected processor" ... but in compiler settings I didn't specify any processor ?
Hi,
What default cpu is the compiler configured with? Look for the
--with-cpu or --with-arch line in the output of 'gcc -v'. Judging from
the 'cc2538dk' in your path I'm guessing you're trying to build for a
Cortex-M3 processor? Try specifying -mthumb and -mcpu=cortex-m3 on the
command line explicitly.
Kyrill
Thanks in advance.
Pavel
-------------- Build: Makefile in hello_world MinGW (compiler: GNU GCC Compiler for ARM)---------------
arm-none-eabi-gcc.exe -I..\..\platform\cc2538dk -I..\..\platform\cc2538dk\dev -I..\..\core -I..\..\core\sys -I..\..\cpu\cc2538 -I..\..\cpu\cc2538\dev -c ..\..\platform\cc2538dk\startup-gcc.c -o .objs\platform\cc2538dk\startup-gcc.o
C:\Users\Pavel\AppData\Local\Temp\ccCi6gqg.s: Assembler messages:
C:\Users\Pavel\AppData\Local\Temp\ccCi6gqg.s:261: Error: selected processor does not support Thumb mode `it lt'
C:\Users\Pavel\AppData\Local\Temp\ccCi6gqg.s:262: Error: Thumb does not support conditional execution
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))