Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Jro_sf
PostPosted: Mar 28, 2012 - 05:26 AM
Newbie


Joined: Mar 28, 2012
Posts: 9


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...
 
 View user's profile Send private message  
Reply with quote Back to top
MBedder
PostPosted: Mar 28, 2012 - 05:55 AM
Raving lunatic


Joined: Nov 02, 2009
Posts: 3239
Location: Zelenograd, Russia

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

_________________
Warning: Grumpy Old Chuff. Reading this post may severely damage your mental health.
 
 View user's profile Send private message  
Reply with quote Back to top
Jro_sf
PostPosted: Mar 29, 2012 - 11:17 PM
Newbie


Joined: Mar 28, 2012
Posts: 9


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!
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Mar 30, 2012 - 09:52 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62354
Location: (using avr-gcc in) Finchingfield, Essex, England

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.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Jro_sf
PostPosted: Mar 31, 2012 - 12:44 AM
Newbie


Joined: Mar 28, 2012
Posts: 9


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?
 
 View user's profile Send private message  
Reply with quote Back to top
Jro_sf
PostPosted: Mar 31, 2012 - 01:07 AM
Newbie


Joined: Mar 28, 2012
Posts: 9


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.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits