Society of Robots - Robot Forum
Software => Software => Topic started by: bakil on June 15, 2007, 04:17:22 PM
-
hy i recently got a STK500 kit and i then i tried to compile my c code (from tutorial) with avrstudio (gcc or something that makes c files standard) and then i just got stuck how would this come
(or just give me an other c compiler that works)
-
What errors did you get?
I'm not sure if AVRStudio includes a compiler by default. You might need to install WinAVR (it is a gcc derivative, http://winavr.sourceforge.net/ (http://winavr.sourceforge.net/)) then set AVRStudio to use WinAVR. WinAVR integrates very well with AVRStudio.
-
ok how do u set avr studio to use winavr
-
You mush have both AVRStudio and WinAVR installed.
Create a new project, Project -> Project Wizard, on the next window click on "New Project", then on the next window click "AVR GCC" under the Project type. This tells AVRStudio that your project uses a C compiler.
If you are already working on a project file (ie it was previously created) get the project's Project Options (Project -> Configuration Options). Goto "Custom Options" check on the "Use WinAVR" check box in External Tools if its not checked.
Hope this helps you out a bit.
-
follow this and you should be fine:
http://www.societyofrobots.com/step_by_step_robot_step4.shtml