Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Giorgos_K
PostPosted: Mar 07, 2006 - 04:46 PM
Resident


Joined: Mar 27, 2002
Posts: 850
Location: Athens, Hellas

Well done Smiley. Nice work.

New firmware update: "ButterflyBoot v1.1L.hex" released.
It is the fully functional revision of the stable "ButterflyBoot v1.1" release, with the Lock-bits writing feature enabled.
It is only 482W long, so it still is under the 512 Words barrier, and fits into the third bootstart position at the address 0x1E00!

Reference: http://www.avrfreaks.net/index.php?name ... mp;start=0


George.
 
 View user's profile Send private message  
Reply with quote Back to top
smileymicros
PostPosted: Mar 07, 2006 - 04:53 PM
Raving lunatic


Joined: Nov 17, 2004
Posts: 6137
Location: Great Smokey Mountains.

Great George!

You should consider consolidating this into a tutorial and posting it on the Tutorials forum, so that folks can keep track of this in one place. I think this has far more use than just to solve the 0x940c problem.

Smiley

_________________
FREE TUTORIAL: 'Quick Start Guide for Using the WinAVR C Compiler with ATMEL's AVR Butterfly' AVAILABLE AT: http://www.smileymicros.com
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
tpappano
PostPosted: Mar 07, 2006 - 05:09 PM
Raving lunatic


Joined: Dec 01, 2003
Posts: 2502


Another thing to bear in mind with Giorgos' loader, the small size allows one to add
additional code in the smaller boot memory section. I'm using it in a special purpose
application which requires that various port and user IO hardware be initialized so that
among other things, various text prompts can pe presented to the operator during
upgrade procedures. Nice! Thanks Giorgos!

Tom Pappano
Tulsa, Oklahoma
 
 View user's profile Send private message  
Reply with quote Back to top
RetroDan
PostPosted: Mar 07, 2006 - 06:16 PM
Resident


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am

Is the assembly listing shown on that page for the latest version of GeoLoad1.1(L)
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
Fe2o3Fish
PostPosted: Mar 08, 2006 - 06:50 AM
Newbie


Joined: Sep 28, 2003
Posts: 11
Location: North Texas, USA

Dan,

Those BF that locked up -- what were the fuses set to when prior to
"unlocking" them? Just curious...

Rusty
Van Alstyne, TX
 
 View user's profile Send private message  
Reply with quote Back to top
RetroDan
PostPosted: Mar 08, 2006 - 07:24 AM
Resident


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am

I have Butterflies that lock-up regularly.

However, I am a newbie, if someone could guide me I could check the fuse settings before I restore them next-time.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
abcminiuser
PostPosted: Mar 08, 2006 - 07:34 AM
Moderator


Joined: Jan 23, 2004
Posts: 9821
Location: Trondheim, Norway

Connect ButtLoad to one of them, then in the AVRISP programming window, select the fuses tab. It will read the target Butterfly's fuses automatically, and you can change any of them from that tab also.

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
RetroDan
PostPosted: Mar 08, 2006 - 07:54 AM
Resident


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am

Thanks Dean, what particular fuses should I be looking at?
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
abcminiuser
PostPosted: Mar 08, 2006 - 08:28 AM
Moderator


Joined: Jan 23, 2004
Posts: 9821
Location: Trondheim, Norway

Looking at the bootloader code, it seems it activates the lockbits, rather than the fuses (a fuse is set, however, which allows the bootloader to manipulate the lockbits) so next time you get a lockup, you should see the Lockbits in the appropriate tab set to something other than "No Protection".

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
RetroDan
PostPosted: Mar 10, 2006 - 05:08 PM
Resident


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am

I'm ready to start "slammin" programs into these ButterFlies again.

I'd like to tryout Giorgo's GeoLoad Version1.1(L) but I'd also like to try the new "Offical" one that's going to be shipped with new BFs.

However, stupid me doesn't know where I saw the link to download it?

Can anyone help?

PS. Any changes to GeoLoad 1.1L since I downloaded HEX File on March 8th?
Were there not a few last-minute changes for an AVRDude related issue?
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
SteveN
PostPosted: Mar 10, 2006 - 05:21 PM
Raving lunatic


Joined: Nov 14, 2001
Posts: 3438
Location: Charlottesville, VA USA

If I am understanding your question correctly you can find a link to Giorgo's (sorry if that is misspelled) thread 9 posts (or so) above your post RetroDan (in this same thread).
 
 View user's profile Send private message  
Reply with quote Back to top
RetroDan
PostPosted: Mar 10, 2006 - 05:43 PM
Resident


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am

Thanks Steve, but I was looking for a link to the new BootLoader from ButterFly/AVR Develpment team. They also wrote a new one.

But thank you anyhow for your help.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
SteveN
PostPosted: Mar 10, 2006 - 05:47 PM
Raving lunatic


Joined: Nov 14, 2001
Posts: 3438
Location: Charlottesville, VA USA

Okay, sorry. I will look around. I remember seeing the announcement from Atmel.
 
 View user's profile Send private message  
Reply with quote Back to top
SteveN
PostPosted: Mar 10, 2006 - 05:55 PM
Raving lunatic


Joined: Nov 14, 2001
Posts: 3438
Location: Charlottesville, VA USA

How about the 13th post down from the top of the ninth page of this thread. Sorry, I don't know how to do the hyperlink (or whatever it is called) thingie. If that doesn't work try a search on member "eieland" (without the quotes). He/she only has 13 posts so it shouldn't be but so hard to find that post.
 
 View user's profile Send private message  
Reply with quote Back to top
RetroDan
PostPosted: Mar 10, 2006 - 06:01 PM
Resident


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am

Okay, thanks Steve, I Just downloaded it.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
abcminiuser
PostPosted: Mar 10, 2006 - 10:39 PM
Moderator


Joined: Jan 23, 2004
Posts: 9821
Location: Trondheim, Norway

That would be back on the previous page, page 9. Have a look near the very bottom for the post.

- Dean Twisted Evil

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
Giorgos_K
PostPosted: Mar 11, 2006 - 10:06 AM
Resident


Joined: Mar 27, 2002
Posts: 850
Location: Athens, Hellas

... or, at the excellent Smiley's Butterfly 0x940C error summing-up, here: http://www.avrfreaks.net/index.php?name ... mp;t=36154

Dear RetroDan, the latest release is the "ButterflyBoot v1.1L.hex", which has the Lock-bits writing feature enabled.
There have not been any misbehaviour reports yet...


George.

_________________
I hope for nothing; I fear nothing; I am free! (Nikos Kazantzakis)
 
 View user's profile Send private message  
Reply with quote Back to top
RetroDan
PostPosted: Mar 11, 2006 - 12:41 PM
Resident


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am

Okay, I have ButterFly locked up again!
Please, no Flames this time!
I'm trying to be helpful...read on.

I'm either the owner of some very "touchy" BFs or my setup here is problematic. The DB9-DB9 cable I am using is rather long and looks fairly thin so I don't think there's much sheilding. I have four computers side-by-side and at times the monitors interfere with each other, so there's a lot of EMF. I also have Flourescent Lights which make some circuits go crazy. So to put a fine-point in it -- I glow in the dark. <smile>

This seems to point to the possibility that garbled xmission of data is probably the main culprit. I get a lot of BF lock-outs.

I don't know much about fuses and locks yet, but as promissed I am going to enter the data as read from a "locked" ButterFly using Dean's excellent ButtLoad program loaded into another ButterFly. (I have not setup my STK500 yet).

I hope you find this information useful and would appreciate feed-back

-------------------------------------------------------------------------------------------------------
AVRISP:
Entering programming mode... OK!
Reading fuses... 0xFF, 0X98, 0xE2... OK!
Leaving programming mode... OK!

LOCKBITS: (These are the ones shown with a check-mark)
[v] Mode 1: No Memory Lock Featured Enabled
[v] Application Protection Mode 3: LPM & SPM prohibited in app sec
[v] Boot Loader Protection Mode 1: No lock on SPM and LPM in Boot Loader
(No other Lockbits show checkmarks)

FUSES:
[v] Brown-out detection disabled
[v] JTAG Interface Enabled (JTAGEN=0)
[v] Boot Flash section size=1024 words @ $1C00
[v] Boot Reset vector Enabled (def addr=$0000)
[v] Int RC Osc; Start Time 6 CK + 65 ms
** In Addition Fuse Marked "Serial Program Downloading (SPI) enabled (SPIEN=0)
is filled-in with grey color and a RED Question mark[?}
(No other Fuses appear to be checked-off)
-----------------------------------------------------------------------------------------------

Which are the problematic Fuses/LockBits?
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
abcminiuser
PostPosted: Mar 11, 2006 - 12:44 PM
Moderator


Joined: Jan 23, 2004
Posts: 9821
Location: Trondheim, Norway

I would imagine:

Quote:
[v] Application Protection Mode 3: LPM & SPM prohibited in app sec


That's stopping the bootloader from writing new data to the application flash space. When you unlock the Butterfly, can you follow the sequence I posted earlier, loading in the bootloader into ButtLoad's storage and then reprogramming the locked butterfly via that? I'd be interested to see if it works...

- Dean Twisted Evil

PS: ISP fuse is disabled (gray box) because you cannot use the ISP interface to disable itself for safety reasons.

_________________
Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
RetroDan
PostPosted: Mar 11, 2006 - 12:54 PM
Resident


Joined: Feb 24, 2006
Posts: 794
Location: http://avr.x.am

Okay what I did was restore the locked ButterFly to the original program that was shipped with these units when new, then went into AVRISP and read the Fuses and LockBits and the only difference appears to be with the LockBit:

[v] Application Prot Mode 1: No Lock on SPM....

So it would appear that this LockBit took the Functioning ButterFly from App Protection Mode 1 to App Protection Mode 3.

Is that inline with everyone's assumptions?

I'm to "burn" GeoLoad Version 1.1(L) from Giorgos Next and test it.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits