Society of Robots - Robot Forum

Software => Software => Topic started by: bakil on June 15, 2007, 04:17:22 PM

Title: STK500
Post 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)
Title: Re: STK500
Post by: rgcustodio on June 15, 2007, 04:49:25 PM
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.

Title: Re: STK500
Post by: bakil on June 16, 2007, 02:05:18 AM
ok how do u set avr studio to use winavr
Title: Re: STK500
Post by: rgcustodio on June 16, 2007, 08:49:23 AM
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.
Title: Re: STK500
Post by: Admin on June 16, 2007, 05:28:18 PM
follow this and you should be fine:
http://www.societyofrobots.com/step_by_step_robot_step4.shtml