AVRButterfly ISP Programmer (Dean Camera)

Go To Last Post
18 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

Since a couple of week I use the famous buttload AVR ISP without any problem over a Mega8, and Mega32, but with a Mega324 or a Mega644 it's don't work. I try those same board & MCU with Atmel AVRISP mkII it's work, I had scope all the lines and the only thing I can see there is no signal on the MISO line of the 324 & 644, all the rest is Ok SCK MOSI Reset look to be fine. I had drop the buttload speed to 4khz. I'm really lost and I really need buttload to work on those devices because I need to make oudoor field upgrades. Any help will be welcome

Yours truly,
Sylvain Bissonnette
www.microsyl.com

Last Edited: Fri. Sep 21, 2012 - 12:52 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

LMAO. This is one of the funniest thread titles I have ever seen.

I think you need to carefully check the differences of the chips very carefully in the datasheet.

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sylvain,
How are you routing the ISP signals? Are you sure they are going to the correct pins?

Larry,
What is funny about it? It is about the clearest and to the point title I've seen here.

Smiley

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Smiley,

I'm shure a 99.9%, because if I place a Mega32 in the socket it's work and if I place a Mega324 it's don't work. I had interchange those many times and the result is always the same. I know that the M32 is a "old" MCU and the M324 is a bit newer but I can't figure what's going on?

Thanks for your help

Yours truly,
Sylvain Bissonnette
www.microsyl.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
I had drop the buttload speed to 4khz.
That's far too low, use at least 56K or 115K or flash will not program.

Does buttload support those chips?

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I had try at 115k and the same result, I place the programmer, start AVRStudio->Tool->Program AVR and on the ButterFly display I always get the message "SYNC ERROR",

I don't know if buttload support those chips but the protocol is not the same for all AVR MCU, It's look to be transparent to AVRISP mkII

Yours truly,
Sylvain Bissonnette
www.microsyl.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Larry,
What is funny about it? It is about the clearest and to the point title I've seen here.

I'd be interested to know that too. Not sure how Larry's reply helped Sylvain find the source of the problem.

I do remember from the days I was using a Butterfly and Dean's most excellent Buttload that because of the 3.3 v 5 thing he had a PDF showing the use of current limiting resistors or similar (don't remember the exact details). Could it be that the 324/644 are more sensitive to this? Or are the AVR targets being driven at 3.3 and the ISP is a direct connection?

BTW the reason you get the SYNC ERROR message is here in ProgramManager.c:

	ISPCC_EnterChipProgrammingMode();            // Try to sync with the slave AVR
	if (InProgrammingMode)                       // ISPCC_EnterChipProgrammingMode alters the InProgrammingMode flag
	{

And the code in ISPCC_EnterChipProgrammingMode() (which is in ISPChipComm.c) is not setting that flag. You might want to rebuild Buttload with some added debug to show exactly what response it is getting inside that function.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hrm, I haven't look at the ButtLoad code in years. There are a few quirks between the various MEGA devices in terms of the actual programming algorithms used, but a SYNC ERROR means it can't even get the usual ISP enter command to work (before programming is even attempted).

Does it fail only in standalone mode, or while in regular PC-based programming mode too?

Cliff might be on the right track here; what is between the butterfly board and the target?

- Dean :twisted:

PS: You're the first person to mention using it in several years, and the first to mention using the computerless upgrade feature. Neat!

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
Yes I use a 5v target with the pdf circuit with resistor and zener, but like I said it's work with a M32.

The problem is in AVRISP & Standalone mode.

I use your buttload exactly for computerless upgrade In my own opinion that the most reason to use your buttload. there is nothing at this price to do this. and with M8 or M32 it's work like a dream!!!

My knowledge is not at this level to make modification in dean code.

Yours truly,
Sylvain Bissonnette
www.microsyl.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are you using external power with the Butterfly?

Smiley

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I use a external lithium 3.3v battry

Yours truly,
Sylvain Bissonnette
www.microsyl.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is there anything else on the MOSI/MISO/SCK lines of the target?

The datasheet for the MEGA644 indicates that the chip is only guaranteed to sense a logic high with an input voltage of 0.6 * VCC. Assuming a steady 5V exactly on the target, that means that the input signal from the Butterfly must be at least 3V for it to work. Can you check with your scope what the exact signal amplitude is?

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No there is nothing on the MOSI/MISO/SCK line, for the level I will check tonight, and keep you inform,

Thanks for your help

Yours truly,
Sylvain Bissonnette
www.microsyl.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes we found it, With new MCU you need more voltage to make it work, the butterfly give only 2.6v. If I put 3V on the target MCU it's work and if I put 5V on the target MCU it's fail.

I will make a level shifter.

Thanks to all who help me

Yours truly,
Sylvain Bissonnette
www.microsyl.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
I just try with my level shifter http://www.microsyl.com/index.ph... and it's work just fine

Yours truly,
Sylvain Bissonnette
www.microsyl.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Good to hear. BTW I've always admired your website and your work. Keep it up.

Smiley

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks Smiley,

Yours truly,
Sylvain Bissonnette
www.microsyl.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Fantastic - the old code presses on then. Really happy to see people still getting use out of it!

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!