| Author |
Message |
|
|
Posted: Mar 28, 2012 - 05:26 AM |
|

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... |
|
|
| |
|
|
|
|
|
Posted: Mar 28, 2012 - 05:55 AM |
|

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.
|
| |
|
|
|
|
|
Posted: Mar 29, 2012 - 11:17 PM |
|

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! |
|
|
| |
|
|
|
|
|
Posted: Mar 30, 2012 - 09:52 AM |
|


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. |
_________________
|
| |
|
|
|
|
|
Posted: Mar 31, 2012 - 12:44 AM |
|

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? |
|
|
| |
|
|
|
|
|
Posted: Mar 31, 2012 - 01:07 AM |
|

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. |
|
|
| |
|
|
|
|
|