CPU option resulting in error

Asked by Nayani P

Hi,
I installed the GNU tools ARM embedded 4.7 2013q1 and tried to compile a very simple code. I set the following options:
-mcpu = cortex-m3 -mthumb

I am getting errors:
warning mcpu deprecated use -mtune or -march instead
bad value <cortex-m3> for -mtune = switch

What is wrong in the above? Thank you.

NPS

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
Terry Guo
Solved:
Last query:
Last reply:
Revision history for this message
Best Terry Guo (terry.guo) said :
#1

I saw spaces between -mcpu and cortex-m3. Please try again with removing them. Or simply copy and run command "arm-none-eabi-gcc -mthumb -mcpu=cortex-m3 --help", you should see the help message.

Revision history for this message
Nayani P (partha-nayani) said :
#2

Hello Terry Guo,
Thanks for your time. Looks like the spaces caused the problem. I am able to compile now. Thank you once again.

Partha