cancel
Showing results for 
Search instead for 
Did you mean: 

Error: target CPU does not support ARM mode

nj_boelskov
Associate II
Posted on June 10, 2008 at 06:03

Error: target CPU does not support ARM mode

6 REPLIES 6
nj_boelskov
Associate II
Posted on May 17, 2011 at 12:36

Hey

I am trying to use CodeSourcerys toolchain in uVision, and used the guide (see attachment) to do the setup in uVision. It looks simple, but every time I try to compile a project, I get the following erro message for all files:

target CPU does not support ARM mode

The target CPU is set to STM32F103RB and i'm on the MCBSTM32 kit.

Any ideas about what the problem could be?

[ This message was edited by: nj_boelskov on 06-06-2008 13:20 ]

nj_boelskov
Associate II
Posted on May 17, 2011 at 12:36

...and when I try to use the GNUARM toolchain i get the errormessage:

error: bad value (cortex-m3) for -mcpu= switch

so the GNUARM toolchain do not support cortex-m3??

[ This message was edited by: nj_boelskov on 06-06-2008 13:28 ]

jj
Associate II
Posted on May 17, 2011 at 12:36

Some time back we contacted CodeSourcery

re: STM32. Recall that it was ''under consideration.''

Yesterday their site still did not include STM32

under supported devices...

sjo
Associate II
Posted on May 17, 2011 at 12:36

The application note works fine, you will have to check your setup.

For a start the clue is ''target CPU does not support ARM mode''.

This is quite correct as it is a cortex_m3 and only supports thumb2.

Also currently GNUARM does not support armv7 (cortex_m3).

Regards

sjo

nj_boelskov
Associate II
Posted on May 17, 2011 at 12:36

Hi

I checked a box called ''Compile Thumb Code'' and -mthumb was added to the Compiler control string. It seems to help, but another warning came up.

it ''cannot find entry symbol _start''

...and I understand that, because I have no _start in my startup.c or vector.c (I got them from this forum) so maybe my startupcode are wrong.

I looked at this

http://www.st.com/mcu/forums-cat-6445-23.html

, but I can't realy finde out which files to include into my project. Can I use some of Lanchons files, or do I have to finde some others?

[ This message was edited by: nj_boelskov on 09-06-2008 11:10 ]

nj_boelskov
Associate II
Posted on May 17, 2011 at 12:36

Made a new linkerfile (ld) and now I can Compile the project.