Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Compilation error, arm-none-eabi-gcc... (Read 9658 times)
Ralph Berner
Newbies
*
Offline


Posts: 9
Joined: Apr 19th, 2015
Compilation error, arm-none-eabi-gcc...
Apr 20th, 2015 at 8:32pm
Print Post  
I get the following compilation error for the Teensy 3.1 in Atmel Studio:
Its a sketch that compiles well in Arduino itself.

C:\Arduino\hardware\tools\arm\bin\arm-none-eabi-gcc -c -g -assembler-with-cpp -mcpu=cortex-m4 -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I"C:\Arduino\hardware\teensy\cores\teensy3" "C:\Arduino\hardware\teensy\cores\teensy3\memcpy-armv7m.S" -o mcpy-armv7m.S.o"  -mthumb -nostdlib -D__MK20DX256__ -DTEENSYDUINO=121  -DF_CPU=96000000 -DUSB_SERIAL_HID -DLAYOUT_US_ENGLISH
arm-none-eabi-gcc*:error: unrecognized command line option '-assembler-with-cpp'
Error compiling core


Any ideas what causes this?  Undecided

Thanks in advance.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation error, arm-none-eabi-gcc...
Reply #1 - Apr 20th, 2015 at 8:55pm
Print Post  
Hi Ralph,

I thought that the -assembler-with-cpp changed for the new Teensy 121 release a few weeks ago.

There was a beta with this change but a new beta was published yesterday. Cam you please give it a try and let me know the result.

Thanks very much
  
Back to top
IP Logged
 
Ralph Berner
Newbies
*
Offline


Posts: 9
Joined: Apr 19th, 2015
Re: Compilation error, arm-none-eabi-gcc...
Reply #2 - Apr 21st, 2015 at 4:10pm
Print Post  
I couldn't find that beta version.
But i tried the 1.22 istead of the 1.21 with the same error.  Undecided

I installed eclipse with the "Arduino Eclipse IDE and Plugin". 
There the sketch compiles too.
It doesn't in the Atmel Studio only.
Are there maybe some more settings to be adjusted in Atmel Studio or Visual Micro?
« Last Edit: Apr 21st, 2015 at 4:24pm by Ralph Berner »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation error, arm-none-eabi-gcc...
Reply #3 - Apr 21st, 2015 at 4:43pm
Print Post  
Hi,

Sorry for the confusion.

You need the beta of Visual Micro from our downloads page not a different version of Teensy Smiley

The changes for Teensy were made on the 20th of March. You are using the March 18th version of Visual Micro so has no support for Teensy 121+

  
Back to top
IP Logged
 
Ralph Berner
Newbies
*
Offline


Posts: 9
Joined: Apr 19th, 2015
Re: Compilation error, arm-none-eabi-gcc...
Reply #4 - Apr 21st, 2015 at 5:42pm
Print Post  
Cheesy Cheesy Cheesy It is compiling and uploading now!

Finally in short for the Teensy 3.1:
I have Arduiono 1.0.6, Teensyduino 1.2.1, the Atmel Studio 6.2 and the Visual Micro beta from yesterday installed.
Then apply the settings from here,
http://www.visualmicro.com/page/User-Guide.aspx?doc=First-steps.html
and here
http://www.visualmicro.com/page/Teensy-for-Microsoft-Visual-Studio.aspx

In the IDE location settings in visual micro for "Teensy 1.0" the path to the arduiono IDE has to be set.
For Example C:\Arduino\

I must say that this installation procedure is quite tought beans for a beginner. Tombraider is easier.  Huh

Thanks a lot for the support.

Best regards Ralph.
« Last Edit: Apr 21st, 2015 at 5:43pm by Ralph Berner »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation error, arm-none-eabi-gcc...
Reply #5 - Apr 21st, 2015 at 5:53pm
Print Post  
Great

So there are two steps

1) Enter the path to the ide in the Ide locations window
2) Enter the three options you want to use for Teensy such as cpu speed, keyboard and usb type.

No 2. relates purely to Teensy, which is more flexible than Arduino. Also the settings in 2) can be changed per project.

So, other than providing some simple menu choices to replace 2) what could be made easier?

Thanks

ps: In Eclipse how did you specify the options for 2)?
  
Back to top
IP Logged
 
Ralph Berner
Newbies
*
Offline


Posts: 9
Joined: Apr 19th, 2015
Re: Compilation error, arm-none-eabi-gcc...
Reply #6 - Apr 21st, 2015 at 6:16pm
Print Post  
If one does this the first time it might be completely confusing, when it doesn't work at all and gives cryptical notifications.
Further more there is this puzzle with the various excluding versions.
But i know better now for the next time.  Smiley

I wasn't requested for any special settings in Eclipse concerning the teensy 3.1. 
Maybe it took the settings from the sketch i started with in arduino first.
I didn't care about this topic, because i prefer the atmel studio, because it's similar to the Visual studio.
I will deinstall that.

I found this video very helpful for a decision.
https://www.youtube.com/watch?v=SeCCrHx9NWU

Best regards  Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation error, arm-none-eabi-gcc...
Reply #7 - Apr 21st, 2015 at 6:20pm
Print Post  
Okay thanks again for all the info.

I think the main issue is that you came to this when all the Ide's have just changed (last month or so) after being stable for a few years. That's why you got caught between versions. Unfortunately companies like Teensy and Arduino have started to beta for about 24 hours then push the changes. 

It's good in some ways because things move faster but if you are using any software with Visual Micro that has recently been released and not working then it's always worth checking the latest beta.

Thanks again, great to hear you persisted.

ps: Sounds like Eclipse has hard coded some defaults for Teensy maybe we should do the same. Would be interesting to know how you change them when next passing by Eclipse (different cpu speed or usb config). Thanks Smiley
« Last Edit: Apr 21st, 2015 at 6:23pm by Tim@Visual Micro »  
Back to top
IP Logged
 
paradug
Newbies
*
Offline


Posts: 1
Joined: Apr 26th, 2015
Re: Compilation error, arm-none-eabi-gcc...
Reply #8 - Apr 27th, 2015 at 12:01am
Print Post  
I was getting the same 

arm-none-eabi-gcc*:error: unrecognized command line option '-assembler-with-cpp'
Error compiling core


error using teesnyduino 1.22 and the current stable Visual Micro version. When I installed the beta version of Visual Micro, the error went away.

« Last Edit: Apr 27th, 2015 at 12:03am by paradug »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint