Butterfly refuses to take new code

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

I searched but I couldn't find anyone with a problem like this. This is such a dumb problem I'm almost embarrased to ask :oops:

I'm using GCC 3.3.2, AVRDUDE 4.3.0, and a Butterfly. I've tried putting the BF in the bootloader both through the menu and by doing resets. I believe the serial cable I'm using is connected correctly because the output from WinAVR (below) shows a stream of question marks, which I have read is what the BF sends out while idling. I have tried pressing the joystick down for different lengths of time, at different points during the programming, tried multiple presses, etc, all to no avail.

WinAVR output:

> "make.exe" program
avrdude -p atmega169 -P com2	    -c butterfly -U flash:w:main.hex 

Found programmer: Id = "???????"; type = Nul
Software Version = ?.?; Hardware Version = Ä.Ü
avrdude: error: buffered memory access not supported. Maybe it isn't
a butterfly but a AVR910 device?
make.exe: *** [program] Error 1

> Process Exit Code: 2

I hate to admit it, but I've stumped myself with this one. I don't know what I'm doing or not doing that's causing this problem, and I would be really greatful to anyone who could help me out!

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

To update the situation, I have managed to get the butterfly to take new code twice now by blind luck it appears. The serial cable and all software settings have been left in the same configuration throughout the repeated attempts to download new code. I am going to try programming the butterfly from a different computer and I will also try programming my other butterfly. Hopefully this experience can serve as a guide for anyone else who may be plauged with similar problems...

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

You may try my "avrdude-fork" from www.siwawi.arubi.uni-kl.de/avr_p.... There are some small changes in "my" version for the BF programming part that are not included in the official release so far. BTW: the latest release-version of avrdude is 4.4.0, you may try this version first.

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

Please do your research.

If you look at the official AVRDUDE project page, and review the list of bugs and patches, you will find that the current version of AVRDUDE has a defect relating to programming the Butterfly, and a patch has been applied. I have used this patch and it works fine for me: 100% of the time. Before I used the patch, I saw the symptoms you describe.

Just to rant: this should be "technical skills 101" for working with any project: if you have issues, review the forums and related project pages first. If you find nothing, then think about asking in the forums, or contributing to the goodwill of all men by doing the diagnosis yourself and providing a patch/solution.

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

mgx, I understand your point and accept that it was my oversight that lead to the creation of this thread. While I did find the bug notice shortly after I made this thread, (I hope you take no personal offense) the last thing I need is a lecture. I'm quite familiar with researching and I did as much diagnosing as I could, I just managed to miss the bug notice on the first go-round. Anyways, thank you for the info which will be helpful for freaks in the future.