2008-06-09 09:03 PM
Error: target CPU does not support ARM mode
2011-05-17 03:36 AM
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 ]2011-05-17 03:36 AM
...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 ]2011-05-17 03:36 AM
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...2011-05-17 03:36 AM
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 sjo2011-05-17 03:36 AM
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 , 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 ]2011-05-17 03:36 AM
Made a new linkerfile (ld) and now I can Compile the project.