cc1.exe: error: unrecognized command line option "-mmcu

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi- I am a newbie. I installed the most recent WinAvr and AVR Studio 4.19.

When I Build Active Configuration for .c and .h file, i get the following error. What does it mean or where can i go to look on how to troubleshoot? What is also weird is the .o extension below even the code has a .c extension.

Attached are the files and the instructions on where i got them.

Following is the error message:

cc1.exe: error: unrecognized command line option "-mmcu=attiny85"
make: *** [tinywanderer_edgeDetect_version2b.o] Error 1
Build failed with 1 errors and 0 warnings...

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Set the proper WinAVR executables' paths in your project properties.

Warning: Grumpy Old Chuff. Reading this post may severely damage your mental health.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do you mean external tools? See attached screen shot named "chain.jpg". If this is not what you mean, please let me know. Again I'm a newbie and trying hard, Thanks!

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That's what he meant.

Atmel changed 4.19 so it cannot "see" WinAVR any more so you have to set it manually each time you start a project.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I still do not see what I am doing wrong. I set the WinAVR external tools as shown above. Is this not what you are talking about? I looked at the FAQ and I cannot find any references to any other executables. Is there a specific one that addresses the issue or what am I doing wrong so i can at least compile HEX from known good .c and .h files?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I figured it out. Hurray. The code which was listed from Make magazine had an error in it. They did not update the proper revised name of the revised .h file in the .c file.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Jro_sf wrote:

I figured it out. Hurray. The code which was listed from Make magazine had an error in it. They did not update the proper revised name of the revised .h file in the .c file.

Sir, i too am a newbie and facing the same problem. Can you please explain, what you meant by " they did not update the proper revised name of the revised.h file in the
.c file" ?

Soumyajit

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You have resurrected a thread from 3 years ago. (well done for searching by the way! :).

 

Perhaps if you just tell us more about what you are trying, what you expect and what actually happens someone who's still around here may be able to help anyway. Are you saying you are also getting an error about the use if -mmcu=? It often means you are trying to use an older version of the compiler that does not know about a more modern model of AVR.