Makefile

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
vwbusmann
 
Posts: 5
Joined: Sat May 03, 2008 3:03 pm

Makefile

Post by vwbusmann »

Hello, I am almost a complete Noob when it comes to programing AVR's.

I found a LED project on this website:

http://todbot.com/blog/2007/03/25/smart-led-prototypes/

I wanted to build this, I have a USBtinyISP programmer that I purchased and assembled.

With AVRDude I can get it to initialize the ATTiny13 chip.

On the website there are two files to download, a Makefile and one named: "softpwm_t13.c"

If it is not to much trouble, I would like to find out how to use these files.

Any help would be appreaciated. Thank you.

charliex
 
Posts: 179
Joined: Sat Nov 28, 2009 5:54 pm

Re: Makefile

Post by charliex »

well assuming you have the right os, right tools installed all you do is save those two files to your hard drive and type
make

you'll need make installed, as well as avrdude etc.

a makefile is just a set of commands basically.

vwbusmann
 
Posts: 5
Joined: Sat May 03, 2008 3:03 pm

Re: Makefile

Post by vwbusmann »

Thanks for the quick reply.

Where would I put the files?

When you say I need Make installed, I don't understand.

BTW I am running Window XP, I have AVRdude running and it works.

charliex
 
Posts: 179
Joined: Sat Nov 28, 2009 5:54 pm

Re: Makefile

Post by charliex »

You should be able to just save the two files in a local directory, load one into WinAVR and build it, but you'll need winavr installed.

i AvrStudio which helps a bit

here are some notes on using WinAVR that should apply
http://www.salvitti.it/geo/sequencer/de ... orial.html

vwbusmann
 
Posts: 5
Joined: Sat May 03, 2008 3:03 pm

Re: Makefile

Post by vwbusmann »

That I can do. I think.

Like I said I'm a noob.

I do have WinAVR installed.

Thanks Again

charliex
 
Posts: 179
Joined: Sat Nov 28, 2009 5:54 pm

Re: Makefile

Post by charliex »

we all started somewhere, good luck and ping if you need more help.

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”