MAKEFILE settings for the ATtiny45/85 programmer with JeonLab mini or Arduino

In order to program an ATtiny45 or ATtiny85 with the JeonLab mini (or Arduino) wirh the WinAVR (AVRdude), you need to change the MAKEFILE as follows.

1. MCU name
MCU = attiny85 # or attiny45

2. change winavr folder location if needed (default: c:\winavr)
EXTRAINCDIRS =c:\WinAVR-20100110\avr\include
DIRAVR = c:/WinAVR-20100110

3. Programmer setting
AVRDUDE_PROGRAMMER = stk500v1
AVRDUDE_PORT = com9 # change this for your connection
AVRDUDE_BITS_PER_SEC = -b 19200 # add this line
AVRDUDE_FLAGS += $(AVRDUDE_BITS_PER_SEC) # add this line

That’s all you need to make changes to the default MAKEFILE for this particular programmer. Leave all the other settings as default.

Advertisements
About

Opto-mechatronic Engineering scientist.

Posted in Arduino, JeonLab mini
2 comments on “MAKEFILE settings for the ATtiny45/85 programmer with JeonLab mini or Arduino
  1. paulc2 says:

    What if you are using Arduino as ISP?

  2. jeonlab says:

    I believe you have already read my other post (https://jeonlab.wordpress.com/2011/11/20/jeonlab-mini-attiny-programmer-using-arduino-isp/). With the same configuration, you can program the ATtiny85 chip either from Arduino IDE or WinAVR. I don’t recommend to use Arduino IDE since it is not fully compatible with ATtiny chips. If you use WinAVR as a programmer, then this Makefile modification is needed.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

November 2011
S M T W T F S
« Oct   Feb »
 12345
6789101112
13141516171819
20212223242526
27282930  
Archives

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 11 other followers

%d bloggers like this: