Arduino Forum upgrade scheduled for Monday, October 20th, 11am-4pm (CEST). Sorry for the inconvenience!
Pages: [1]   Go Down
Author Topic: Help programming attiny85v with arduino mega 2650  (Read 633 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Sr. Member
****
Karma: 0
Posts: 258
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey everyone, I bought 5 attiny85v's for use in projects since they are cheaper than arduinos, and I have an arduino mega 2650, however I can't get it to program the attiny.

I've been using this tutorialhttp://hlt.media.mit.edu/?p=1695 to do it.

I've followed the instructions to the letter, however I get error codes when trying to program the attiny.

If I try to put the blink example with the board chosen as attiny85 8mhz internal clock or wit 1mhz internal clock this is the result I get:

Code:
avrdude: stk500_getsync(): not in sync: resp=0x00

I also get the above error when trying to burn the bootloader with and withoutthe capacitor in place

If I take out the capacitor to disable reset, I get this:

Code:
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

I see that it says to define PAGEL and BS@ in the configuration file, but I can see no such file, and why do I get a different error with the capacitor in place?

So, ever wise forum members, please assist me before I go (more) insane.

Oh yeah, even if I the programmer to arduino as ISP I can program the arduino normally if I select the mega as the board, not sure if that is normal or points to anything, just thought I'd include it.
« Last Edit: April 01, 2013, 05:59:14 pm by XOIIO » Logged

Wahiawa, Hawaii
Offline Offline
God Member
*****
Karma: 39
Posts: 701
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

First, the Mega 2560 has different pinouts for the ISP signals than the Uno.  If you open up the ArduinoISP sketch, look at the comments at the very top.  It will tell you the pinouts to use for a Mega2560.

Did you follow this?
Code:
// This sketch turns the Arduino into a AVRISP
// using the following arduino pins:
//
// pin name:    not-mega:         mega(1280 and 2560)
// slave reset: 10:               53
// MOSI:        11:               51
// MISO:        12:               50
// SCK:         13:               52


Logged

Offline Offline
Sr. Member
****
Karma: 0
Posts: 258
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

First, the Mega 2560 has different pinouts for the ISP signals than the Uno.  If you open up the ArduinoISP sketch, look at the comments at the very top.  It will tell you the pinouts to use for a Mega2560.

Did you follow this?
Code:
// This sketch turns the Arduino into a AVRISP
// using the following arduino pins:
//
// pin name:    not-mega:         mega(1280 and 2560)
// slave reset: 10:               53
// MOSI:        11:               51
// MISO:        12:               50
// SCK:         13:               52




Oh wow, I can't believe I missed that, I guess I was in a rush. I'll give it a try right away.
Logged

Offline Offline
Sr. Member
****
Karma: 0
Posts: 258
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

she works! Thank you so much!

I still can't believe I didn't see that though smiley-confuse

Now it's time for me to start learning more arduino code, and getting capsense on these buggers aside from some other things.
Logged

Pages: [1]   Go Up
Arduino Forum upgrade scheduled for Monday, October 20th, 11am-4pm (CEST). Sorry for the inconvenience!
Jump to: