Society of Robots - Robot Forum
Software => Software => Topic started by: Razor Concepts on May 10, 2010, 03:15:09 PM
-
I have:
- A single C file
- A single makefile for that file
What would be the easiest method to compile it and get a .hex file out of it? AVR Studio isn't really working out.
-
Whats wrong with AVR Studio?
The easiest method would be following the $50 Robot tutorial :P
You can also run gcc (the compiler) as a standalone without AVR Studio. If you google around you'll find instructions.
-
Thanks, I figured out how. Use command prompt to get to the directory where the c and the makefile is located, and just type in "make" and it should do its job. I'm compiling arduino bootloaders so I had to type in "make mega" or "make lilypad", etc etc
-
It's sort of related: there's an "open command window here" plug-in on the net. When you right click on a folder, in the menu you get "Open command window here". It opens a command prompt pointing to that folder. Much easier than getting there from c:\>.
-
If you use WebbotLib Project Designer under Windows then it can create the AVR Studio project file for you - with all necessary libs linked in and the correct processor set. All you have to do is click the compile button.