upload HID Serial Example error

Adafruit's tiny microcontroller platform. Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
ottov
 
Posts: 3
Joined: Sun Mar 09, 2014 5:45 am

upload HID Serial Example error

Post by ottov »

Hi, when I upload an HID Serial Example with the Arduino ide the complier gives the following error.
avr-gcc: error: unrecognized command line option ‘-assembler-with-cpp’

Can someone help me out here?
Thanks Otto

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: upload HID Serial Example error

Post by adafruit_support_rick »

Which example are you trying to load?
What do you have your board type set to?

ottov
 
Posts: 3
Joined: Sun Mar 09, 2014 5:45 am

Re: upload HID Serial Example error

Post by ottov »

I tried the Hello World example form HIDserial
selected board = Adafruit Trinket 16 Mhz.
selected programmer USBtinyISP

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: upload HID Serial Example error

Post by adafruit_support_rick »

I don't think I'm familiar with that. Where did you find it? What library are you using?

[EDIT]: Never mind. I found it.

It compiles just fine for me. In the zip file, the folder HIDSerial is contained inside of two other folders. You must move HIDSerial to the top level of your libraries folder - it can't be inside of the other folders.

ottov
 
Posts: 3
Joined: Sun Mar 09, 2014 5:45 am

Re: upload HID Serial Example error

Post by ottov »

It's right there in the upper folder.
Do you use a linux machine?
I do, and i stil get " avr-gcc: error: unrecognized command line option ‘-assembler-with-cpp’ "

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: upload HID Serial Example error

Post by adafruit_support_rick »

Arduino does not always work well with linux. Sounds like there are some differences in the gcc avr compiler for linux.
I'm using a Mac.

User avatar
AnneBarela
Learn User Page
 
Posts: 757
Joined: Sat Mar 24, 2012 8:56 pm

Re: upload HID Serial Example error

Post by AnneBarela »

You can always try to find the file with that text in it and comment or remove it and see if that helps.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: upload HID Serial Example error

Post by adafruit_support_rick »

TheKitty wrote:You can always try to find the file with that text in it and comment or remove it and see if that helps.
Actually, it's an option on the compilation command. He'd have to modify the application somehow to not include that.

Make sure you've got the latest version of the gcc avr tools. That's about all I can suggest.

Locked
Please be positive and constructive with your questions and comments.

Return to “Trinket ATTiny, Trinket M0”