[TUT] So I got a Butterfly - Now what?

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

Attached is a little introduction to the Butterfly for new users. It includes the way to use AVR Studio to upload hex files via the Butterfly's serial bootloader, and some comments about the recent BOOTRST fuse fiasco.

I would appreciate any suggestions (yes, even from Electric_Neuron) and will incorporate them into the document at the discretion of the Quality Assurance Team (my cat).

Thanks for your input!

Attachment(s): 

Chuck Baird

"I wish I were dumber so I could be more certain about my opinions. It looks fun." -- Scott Adams

http://www.cbaird.org

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

Old men that play with Butterflies... what next... real men play with DRAGONS!! :lol:

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Quote:
real men play with DRAGONS!

and probably cavort with wallabies. Got any crop circles near your house?

Chuck Baird

"I wish I were dumber so I could be more certain about my opinions. It looks fun." -- Scott Adams

http://www.cbaird.org

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

Thanks Chuck - good doc

Australian Entrepreneur, using the AVR technology for prototyping and market testing.

http://brisrocket.wordpress.com

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

Awesome, thanks! I've had this thing laying around for like 5 years, I thought it was dead...I scraped some old sawdust residue off of it and it fired right up with the basic menu stuff on it.
I had to set it aside, and I've got an old project at work from guy who's been gone many years now, that used a couple of ATMEGA168 to talk between an LCD screen and some switches ("this is on", "that is on", "error", looks like a sample rig). I have NO embedded experience, and am trying to learn...closest I do now is PLC ladder logic programming. I've been playing around with the Atmel Studio6 software, and I believe it's reading info from the chip...but not the actual code....is that possible with this setup? I see where in the IDE I can write TO the chip, yet nowhere do I see a 'read' function, other than info stuff. I figure once I see the code he wrote, I can go from there, but there's no documentation or files anywhere to be found, just the chips with the code on them...I can send pictures if anyone's interested.

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

Quote:

and I believe it's reading info from the chip...but not the actual code....is that possible with this setup?

Only if you have an ISP programmer attached such as AVRISPmkII, Dragon, STK5/600, JTAGICE or something. Otherwise AS6 cannot talk to a Butterfly. Studio 4 had an add-on program it would run called avrprog.exe but this was dropped when AS5/6 appeared.

So I guess the question is "do you have a blob of electronics (apart from just a USB-RS23 cable) somewhere between the Butterfly and the PC?"

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

no, just going straight through the usb/serial cable....what's the best way to go? I'm not familar with any of the stuff you mentioned....

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

Get a copy of AVR Studio 4 and forget Atmel Studio 6 for the time being until you get an ISP programmer.

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

do I need to uninstall 6, or can I leave it?

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

You can leave it. You can even use it to write and develop programs for the mega169 but the one thing it won't do is actually program the .hex files you create into the Butterfly. That's why you need AS4 to get hold of the avrprog.exe program that will do that.