| Author |
Message |
|
|
Posted: Mar 11, 2006 - 01:20 PM |
|


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am
|
|
Okay Giorgos. The ButterFly locked up after just a few attempts.
I seem to have the "perfect" setup for making these things fail.
I just re-read the setting with AVRISP and the only change again appears to be
the change in LOCKBITS from Mode 1 (No Lock) to Mode 3 (LPM & SPM prohib...)
I hope you find this info useful. Is there anything else I can do to help you nail-down the problem?
I also noticed that it had "problems" starting my little program.
Is there a difference in the start-up sequence between GeoLoad and Original Software BootLoader? I'll try to describe... with original SW after I loaded my program I hit nailed RESET pin and press Joystick and my program starts no problem.
With the GeoLoad V11(L)I would have to RESET CHIP several times and press Joystick up before I could get program to start up.
Please understand that I am in no way complaining at this point, I'm only trying to be helpful. If you would prefer we could take this to private mail(?) |
|
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 01:36 PM |
|


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am
|
|
Dean I am trying to locate those instructions.
Also, is there anything else I can do before I restore this locked BF?
If all I'm using is the PC Serial/DB9 and the UART set-up as described in the ButterFly Documention using "AVR Prog" there is no way that any of these BootLoaders should allow me to change any of the fuses or lock-bits, on my own correct? |
|
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 01:42 PM |
|


Joined: Mar 27, 2002
Posts: 853
Location: Athens, Hellas
|
|
Hi RetroDan. I was going to ask you what bootloader did your Butterfly have, during the lock-up, but you have already answered this to me!
Of course I use a different approach! Let me look at this, though I have not received yet my Butterfly unit, to experiment on the real hardware. Until then, you can use the failsafe "ButterflyBoot v1.1.hex" firmware, that does not have the Lock-bits writing feature enabled.
I guess that we should continue the debugging at the dedicated enhanced Butterfly bootloader thread: http://www.avrfreaks.net/index.php?name ... mp;start=0
Thanks for the feedback,
George. |
|
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 01:48 PM |
|


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am
|
|
If it is any help what I did was dump the contents of "Locked" ButterFly which has your GeoLoad v1.1L and my little program to a Hex file (45K) would that be any help to anyone? Can you re-load it and disassemble it to see what the problem might be?
You say the previous GeoLoad V1.1 has the writing feature totally disabled? Okay I'll try that one next. |
|
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 01:54 PM |
|


Joined: Mar 27, 2002
Posts: 853
Location: Athens, Hellas
|
|
| If the FLASH-dump has been generated using the bootloader, it is useless bacause a locked FLASH will report pseudo-random memory contents. |
|
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 02:05 PM |
|


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am
|
|
The dump was done using Dean's ButtLoad acting as an AVRISP device connected to the problem ButterFly. Would that HEX dump be of any use?
If not, can I unlock something to get a better HEX Dump? |
|
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 02:07 PM |
|


Joined: Nov 17, 2004
Posts: 6137
Location: Great Smokey Mountains.
|
|
RetroDan,
Have you used an ISP programmer to load the older version of the bootloader from: http://www.siwawi.arubi.uni-kl.de/avr_projects/
And, if you did load that bootloader did the failure give you the 0x940c in the error message?
Smiley |
_________________ FREE TUTORIAL: 'Quick Start Guide for Using the WinAVR C Compiler with ATMEL's AVR Butterfly' AVAILABLE AT: http://www.smileymicros.com
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 03:07 PM |
|


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am
|
|
Older BootLoader? No Sorry, let me explain...
When this problem first appeared and I was down to my last functioning (and unused)
Butterfly I used the SAVE PROGRAM feature inside AVR Prog and dumped it's contents to a HEX file then went out on the Internet on my wild escapade looking for a solution; which after a few days led me here. I did NOT want to screw-up my last remaining BF.
So after getting Dean's ButtLoad program into the "Virginal" ButterFly (as that was the only one I could still program) he was kind enough to walk me through the procedure of reprogramming the "Locked" BFs by using the AVRISP feature of his software.
Since that time, whenever a BF "Locked" I would grab this "Extra" BF with ButtLoad on it and quickly re-program it using the HEX dump from the Virgin BF. I did NOT switch to the older BootLoader.
Now that there are 2 more BootLoaders: Giorgos' ASM version and the "Official" new version from AVR -and- since I seem to some "quirk" in my setup here that seems to be able to force these things to fail on a regular basis, perhaps it's an excellent way to test-out these new versions.
I'm trying Giorgos' GeoLoad 1.1 version at the moment. If it lasts more than a day, then I would declare it a success as even on the best of days, I seem to be able to get a failure within a few hours and sometime after just 2 or 3 "burns."
I hope this information is useful and if anyone thinks it will spark another flamewar, I'd be glad to move to private mail. |
|
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 03:35 PM |
|


Joined: Jul 18, 2005
Posts: 62354
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
Dan,
Just a small point but you also have an STK500 don't you? Rather than trying to juggle the Butterflys wouldn't it just be easier to ISP all three back to default (but maybe with Giorgos' new bootloader) using the STK500 ?
Cliff |
_________________
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 03:39 PM |
|


Joined: Nov 17, 2004
Posts: 6137
Location: Great Smokey Mountains.
|
|
I would appreciate it if you could get the old bootloader from: http://www.siwawi.arubi.uni-kl.de/avr_projects/ and download it to your failing Butterfly using Dean's ButtLoad and see if that older bootloader is also failing. The reason I ask is that this is the way I've been recommending that folks fix their 0x940c problem and it was the basis for Atmel's decision to change the bootloader on the next batch of Butterflies. If you do have a case where this fix doesn't work, then we need to know if your situation is a special case or if we haven't actually solved the problem. I suspect that yours is a special case since I've put the old bootloader on a number of Butterflies and not had the 0x940c problem return.
Also, in these more recent failures you've experienced, did you get the 0x940c error?
Thanks,
Smiley |
_________________ FREE TUTORIAL: 'Quick Start Guide for Using the WinAVR C Compiler with ATMEL's AVR Butterfly' AVAILABLE AT: http://www.smileymicros.com
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 03:59 PM |
|


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am
|
|
Cliff, been so busy playing around with ButterFlies (they really are cool!) that I just have not got around to setting the STK500 up, but I will.
Smiley, Okay now I understand. Good thinking. I seem to have an unusual situation here so lets make the best of it.
BTW - I have just had a version of Giorgos' GeoLoad 1.1 FAIL on me.
The error is 0x6246 instead of the 0x940c
Just for the sake of clarity, that means that BOTH the Giorgos' BootLoaders have failed.
The 1.1 version AND the 1.1(L) version.
I will next try following the above link and try the older version of the BF/BL next.
TTYL |
|
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 04:07 PM |
|


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am
|
|
Smiley, I need help.... I see three BootLoaders at that link.
1) ABR ButterFly BootLoader - Code port to avr-gcc
2) AVRPROG (AVR910) compatible BootLoader
3) BootLoader compatible with STK500 |
|
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 04:11 PM |
|


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am
|
|
Geez, there's all sorts of version at that link.
I really want to help if I can. How about you UPLOAD the exact version you want me to test as a HEX file right here and now(?)
That way if it fails there will be no confusion about which one I was actually using.
Sound good? |
|
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 05:43 PM |
|


Joined: Nov 17, 2004
Posts: 6137
Location: Great Smokey Mountains.
|
|
He it is.
If AVRFreaks is still having the download naming problem it may appear as index.php, just rename it bfboot.zip and opent it.
Smiley |
_________________ FREE TUTORIAL: 'Quick Start Guide for Using the WinAVR C Compiler with ATMEL's AVR Butterfly' AVAILABLE AT: http://www.smileymicros.com
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 05:52 PM |
|


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am
|
|
Okay I just DL'd it.
I have been using the NEW Official BootLoader from AVR and I have been unable to make it "Lock-Up."
I will switch to this "Smiley" Version right now.
BTW - DL Files are renamed index. |
|
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 06:03 PM |
|


Joined: Nov 17, 2004
Posts: 6137
Location: Great Smokey Mountains.
|
|
If the new version works, then we have our solution, no need for further tests.
Smiley |
_________________ FREE TUTORIAL: 'Quick Start Guide for Using the WinAVR C Compiler with ATMEL's AVR Butterfly' AVAILABLE AT: http://www.smileymicros.com
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 06:10 PM |
|


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am
|
|
Oh Geez, thanks, after I just switched....
Okay, I will revert to the NEWEST version of the OFFICIAL BootLoader.
And continue testing that one.
BTW - So far neither the "Smiley Version" or the Newest Version have failed yet. |
|
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 07:00 PM |
|

Joined: Jun 28, 2002
Posts: 164
Location: Boulder, Colorado,USA
|
|
Hello guys,
I just ordered my BF today from digikey, I will take some time to see if I can have the same problem as RetroDan... Also I was thinking about an application similar to the ButtLoad, but instead of using the serial com, I was thinking using I2C. We'll see.
This thread is marvellous.!!! I really like it.. I have been learning alot form just this one...  |
_________________ ---
ARod
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 07:04 PM |
|

Joined: Jun 28, 2002
Posts: 164
Location: Boulder, Colorado,USA
|
|
| I forgot to mention that I also ordered the BF carrier... seem to be a handy tool... do you think that I should order another BF, in case that fail?.. well I also ordered the STK500 so I guess would fix the lock-up problem, if it appears! |
_________________ ---
ARod
|
| |
|
|
|
|
|
Posted: Mar 11, 2006 - 07:18 PM |
|


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am
|
|
Just my personal opinion... I think for the price you'll probably wish you'd ordered two ButterFlies.
To use an old Retail Term "One to show and one to Go!"
Or if you're more a computer hacker "Always have a Backup!"
If something's not working, you can always determine
if it's a hardware problem by switching one-for-the-other.
Just a thought, for the price of a few burgers. |
|
|
| |
|
|
|
|
|