Pages: 1 ... 5 6 [7]   Go Down
Author Topic: Arduino-izing the AVR Butterfly  (Read 11381 times)
0 Members and 1 Guest are viewing this topic.
Oxford, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 22
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I've removed the two transistors and soldered directly to the pads on the butterfly before, but unless you've done a lot of surface mount work probably not for the faint hearted.

http://www.flickr.com/photos/nicklott/338334971/

also check this link it is discussed here i think. http://dorkbotpdx.org/blog/feurig/dorkbotpdx_arduino_programmer
Logged

Seattle
Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Been a long time since I was on this thread, but I just broke out the butterflies.  I don't suppose anyone is hosting the latest and great arduino butterfly bootloader HEX files?

here's the most recent one I found, but it doesn't sound like he's picked up all your changes (or even using the same SVN tree)
http://stuffthingsandjunk.blogspot.com/2008/11/arduino-for-butterfly.html

-creatrope
Logged

Oxford, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 22
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You should be able to use the standard butterfly bootloader.
 so long as you setup the arduino software boards.txt file with the following entry
Code:
bfly.name=Butterfly

bfly.upload.protocol=butterfly
bfly.upload.maximum_size=14336
bfly.upload.speed=19200

bfly.bootloader.low_fuses=0xE2
bfly.bootloader.high_fuses=0x98
bfly.bootloader.extended_fuses=0xFF
bfly.bootloader.path=butterfly
bfly.bootloader.file=bf_boot.hex
bfly.bootloader.unlock_bits=0x3F
bfly.bootloader.lock_bits=0x0F

bfly.build.mcu=atmega169
bfly.build.f_cpu=8000000L
bfly.build.core=butterfly

Also check out this link http://code.google.com/p/butteruino/
« Last Edit: March 23, 2010, 11:55:39 am by Brokentoaster » Logged

Seattle
Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I've grabbed the latest code using TortoiseSVN under Arduino-0018.

I'm getting WProgram.h: no such file or direction in function void setup() for all example programs.

I have the files under arduino-0018/hardware/butterino/cores/arduino. WProgram.h is there and this directory structure is symmetric with a working Sanguino structure, file by file.

 I've tried moving things around a bit to see if it locates the file.

Can someone verify a compile of the latest example programs under Arduino-0018 for the Butterfly?

thanks - creatrope
« Last Edit: March 25, 2010, 08:29:46 pm by creatrope » Logged

USA
Offline Offline
Full Member
***
Karma: 2
Posts: 213
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I got blink to compile under 0018 on the Mac

I downloaded the butterfly files from
http://stuffthingsandjunk.blogspot.com/2008/11/arduino-for-butterfly.html

I put the folder in
            /Applications/Arduino.app/Contents/Resources/Java/hardware

I deleted everything except the butterfly entry in boards.txt

I had to make these changes

     rename main.cxx to main.cpp

     add #include <WProgram.h> to main.cpp

I do not have a butterfly to check out to see if it works.

I tried compiling a couple of programs, anything that used TWI (I2C) does not compile.

Mark

Logged

Seattle
Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, compile problem resolved.

I've set bfly.upload.using=butterfly in the boards.txt
(also tried in preferences.txt)

Verified UART connection is working by entering 'name' via freshly loaded stock butterfly firmware.

I tried various combinations of pressing the button, resetting and uploading.

Upload eventually times out with:

Connecting to programmer: .
Found programmer: Id = ""; type =
avrdude: error: buffered memory access not supported. Maybe it isn't
a butterfly/AVR109 but a AVR910 device?

The sequence of start the upload and pressing the button - anyone have a recommendation for a known sequence/timing that works reliably?

--creatrope
Logged

Oxford, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 22
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I normally go for tapping the button and then start the download while tapping the whole time.

Although I haven't tried this for a while.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

fortunality all the links to the arduino012_butterfly.zip file are broken.
Where can I download this file or can someone email the file (email button)

Thanks  smiley-wink
« Last Edit: October 28, 2010, 06:55:31 am by sathopper » Logged

Oxford, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 22
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry I've had my website compromised. I had to clean out some files. The new link should be.

http://brokentoaster.com/lost/arduino012_butterfly.zip

I haven't looked at this project for a while... so no promises that things still work.  smiley

Good luck.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks.
I have a butterfly laying around on my desk for quite a while maybe now  I can do some funny stuff with it.  smiley

Logged

Pages: 1 ... 5 6 [7]   Go Up
Jump to: