Butterfly programming with AVR Studio4 or AtmelStudio6 ?

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

Hello!

I made the decision that the Butterfly for my Project is the right thing.

I have already read tons of information (projects, example programs, ....)

But when trying to set up my first project in
AtmelStudio 6 I failed.

The Butterfly is not listed on the Atmel boards.

The Butterfly page from Atmel says at Overview:
Supported by AVR Studio 4!

On the same page, under Related Tools as a design software is Atmel Studio recommended.

Must I download a special template for the Butterfly?

Is anybody here who has running a butterfly with AtmelStudio6 ?

Or must I realy work with the old AVRStudio4 ?

Thanks for the clarification
Jan

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

You have to use AS4 (which includes the "avrprog" that can talk to the Butterfly). Either that or accept the limitation in AS6 and use a separate program (specifically avrdude.exe) to do the final step of programming the code into the board. At least AS6 is fairly configurable and allows you to either define "post build steps" or add toolbar buttons/icons to do the programming using the 3rd party program.

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

Thanks for the fast response.
But I wonder why Atmel still sells Butterfly but has no support in Studio 6.

Thanks again
Jan

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

If you're willing to erase the Butterfly's serial bootloader you can use ISP to program it. You can always put the bootloader back later if you wish.

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

Quote:

But I wonder why Atmel still sells Butterfly but has no support in Studio 6.

Presumably one of the reasons they still have AS4 available on their website and I'd be kind of surprised if we didn't see support for it reappear in later AS6. At the start of AS5/AS6 they seem to have made the decision "only interested in now talking to USB connected devices" but then popular feedback persuaded them to add STK500 support at the 11th hour. Maybe we'll see avrprog/Butterfly support at the 13th? ;-)

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

The Butterfly is built around the ATmega169 which IS supported by Studio 6/7.

The Butterfly board has an ISP interface, that works with their ISP programmers like ATMEL ICE.

So download the Butterfly User Guide pdf & treat the whole project like you simply choose to built a board using the ATmega169.
3 tips.

A) You have to solder in the pins for the ISP, Port D & Port A.  (consult User guide)
B) The Butterfly's battery voltage is too low for programming!!  So remove the battery & power the board from an independent supply via the Port D or B outputs.

C) To save the existing Butterfly demo program, upload it in the chip programming window & save it to a hex file BEFORE you overwrite or erase the chip.

 

 
 

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

Welcome to AVRFreaks.

 

I don't understand why you felt encouraged to dig up a thread that had finished more than 4 years ago! Do you think that someone has been holding their breath all this time just waiting for your post? I don't.

 

Please be a little more careful.

 

Ross

Moderator

 

Ross McKenzie ValuSoft Melbourne Australia

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

lol.  More careful eh?  So what is the danger in replying to an old post?  Castigation from a moderator perhaps?

 

I actually just started playing with the Butterfly, so it seemed like a quick question to answer... yeah probably more for me than the author of the 4 year old question.
Still looking for that body of assembly language tools for the Butterfly though... let me know if you can point me to that.

 

As Ever

Phoenix.

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

Poor Chuck, I miss him.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Me too.

 

JC

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

moi aussi

 

Ross McKenzie ValuSoft Melbourne Australia

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

I thought you were doing German not French.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Schoolboy French. Don't expect much else. cheeky

Ross McKenzie ValuSoft Melbourne Australia

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

Phoenix Quill wrote:
Still looking for that body of assembly language tools for the Butterfly though... let me know if you can point me to that.

Not sure what "tools" you mean? Do you mean an actual assembler - AS7 has two you can choose between to write mega169 code. Or do you mean a guide to AVR assembler programming - if so www.avrbeginners.net is always a good place to start? Or do you mean 169 specific code libraries written in Asm for doing things like handling the LCD segment controller? The latter could be tricky - I think most stuff for Butterfly is going to be in C not Asm - though, of course a C compiler will happily convert C to Asm if you ask it nicely anyway.