Protect Fuses to stop settings being wiped on firmware updat

Post Reply
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Protect Fuses to stop settings being wiped on firmware updat

Post by Rob Thomson »

Why don't you protect your fuses? That way your settings are retained.


Sent from my iPhone using Tapatalk
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!

User avatar
Flaps 30
Posts: 1490
Joined: Tue Dec 27, 2011 6:04 pm
Country: -
Location: Wokingham Berkshire

Re: ALERT - Alarms Disabled

Post by Flaps 30 »

Ahh! You mean that little menu that has the word WARNING at the top that tells you not to mess with it or your radio will require major work to bring it back to life. Not knowing which way or what that part of the software is doing and for why. I left it well alone.
User avatar
Kayle
Posts: 58
Joined: Mon Jan 02, 2012 8:13 am
Country: -
Location: Germany
Contact:

Re: ALERT - Alarms Disabled

Post by Kayle »

I think rob means, that you can protect you eeprom to overwrite during flashing your tx.

There is a fuse in your mega64, when it is set, the eeprom will not overite.

Kayle
___________________________________________________________
Job: Master craftsman in information technology
Hobby: 9X Burner, AVR, Quadrocopter, PCB Design
My Homepage: www.kay-pohl.de
User avatar
Flaps 30
Posts: 1490
Joined: Tue Dec 27, 2011 6:04 pm
Country: -
Location: Wokingham Berkshire

Re: ALERT - Alarms Disabled

Post by Flaps 30 »

I think I have got it Kayle. I take it what is being talked about is the 'Reset Fuses EEPROM - Protect' button. Does the delete button enable the writing of the EEPROM?
User avatar
Kayle
Posts: 58
Joined: Mon Jan 02, 2012 8:13 am
Country: -
Location: Germany
Contact:

Re: ALERT - Alarms Disabled

Post by Kayle »

i´m not sure. i don´t use eepe to write my fuses. perhaps Rob can answer your question ?

Kayle
___________________________________________________________
Job: Master craftsman in information technology
Hobby: 9X Burner, AVR, Quadrocopter, PCB Design
My Homepage: www.kay-pohl.de

User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: ALERT - Alarms Disabled

Post by Rob Thomson »

I have only ever done this via eePe.

I am sure someone will give you the exact parameters before long.

In eePe you simply visit the 'fuses' menu and choose the bottom left option to protect them! 'Eprom Protect'

Despite the warning - I have never had an issue - across multiple radios!

Rob
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
RCPlaneHobby.com
Posts: 49
Joined: Tue Dec 27, 2011 5:59 pm
Country: -

Re: Protect Fuses to stop settings being wiped on firmware u

Post by RCPlaneHobby.com »

o.k. do I get this right?
"Fuse" means to "fuse" or permanently attach code so to speak to the tx. So that it is write protected when you flash your tx. I assume the reason for this is to keep all your settings and models while updating the firmware?
... or something?
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: Protect Fuses to stop settings being wiped on firmware u

Post by Rob Thomson »

Correct. Not the most correct description... but the inherit meaning is correct :D
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Protect Fuses to stop settings being wiped on firmware u

Post by MikeB »

Atmel processors have a number of settings that control the basic operation of the processor. These settings include things like the type of oscillator to use. Atmel refer to these settings as FUSES. There are really just program bits like the flash program memory.
One of these settings is called EESAVE. If EESAVE is enabled, then when the chip is erased ready to reflash the program memory, the EEPROM is NOT erased. The default setting is to erase the EEPROM with the flash memory.
If you change any other of these settings (FUSES) it is possible to make it difficult, if not almost impossible, to program the chip the way we do. To program, the chip MUST have a clock running, if the fuses were changed to specify an external clock, and there isn't one. Then you cannot program the chip, or even change to fuses to specify an internal clock.
This is why there is a warning on eepe when you select to change the EESAVE fuse. I believe many have used this option in eepe to change their EESAVE fuse. I have changed my EESAVE fuse, but I have an Atmel STK500 development system and changed it using AVRStudio directly, I didnt need to use eepe. I regularly need to confugure fuse settings in Atmel processors for work.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Spoogy
Posts: 305
Joined: Wed Dec 28, 2011 6:27 pm
Country: -

Re: Protect Fuses to stop settings being wiped on firmware u

Post by Spoogy »

Thanks Mike to clearing that out. I have been wondering what the f!"#k are those fuses, but I have been too lazy to find it out by myself. :) Now, that's much much clearer - thanks. ;)
What goes up, must come down. -Isaac Newton
OpenTX - expanding possibilities
User avatar
Flaps 30
Posts: 1490
Joined: Tue Dec 27, 2011 6:04 pm
Country: -
Location: Wokingham Berkshire

Re: Protect Fuses to stop settings being wiped on firmware u

Post by Flaps 30 »

Most of that makes sense Mike. It still does not remove that little nagging feeling, that I could easily end up with a situation, where I would have to get out an external clock generator to wake up the chip.

Does the reset fuses button put things back to normal?
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: Protect Fuses to stop settings being wiped on firmware u

Post by Rob Thomson »

Yes. that is exactly what it does.

I have used the system on 4 different 9x's. Never had an issue.

Rob
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
G550Ted
Posts: 389
Joined: Tue Dec 27, 2011 6:15 pm
Country: -
Location: Savannah, GA, USA

Re: Protect Fuses to stop settings being wiped on firmware u

Post by G550Ted »

SHEESH!!!

I am neither an EE nor a Luddite, read every post in this forum as well as those on RCG and er9x, read the manual, whatever, but for the life of me cannot grasp what I should or should not do with the fuses option. The WARNING in eePe is ambiguous. The text in the box makes it sound like a good thing to do, but it is a WARNING! WTF? Why would I want to set the fuses? Why not? When? When not to? Are they not already set, and if they are a good thing then why are they not set by default already? Is it not a good thing to protect the EEPROM from being deleted when flashing? Why have the option to do this in eePe? Should this be a consideration for anyone having a SP board vice a hacked in programmer, or the other way around?

How about some more help on this issue for me and the other short bus riders.

Thanx,

Ted
User avatar
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Protect Fuses to stop settings being wiped on firmware updat

Post by cre8tiveleo »

Hands you a helmet, welcome aboard.

With companion 9x, you can set it to automagically backup your models for you. So you really don't need to set the protect fuse.

In eepe, if you don't protect the eprom, and flash your radio, it erases everything, the loads the new firmware. If you didn't set the protect, an didn't back up your model settings... You're sol. :)
If you set the protect, and write a new firmware, your model settings are golden and safe.


---
I am here: http://maps.google.com/maps?ll=44.003067,-79.457256
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Protect Fuses to stop settings being wiped on firmware u

Post by erazz »

I tried to make it as clear as I could. You CAN and perhaps SHOULD set your fuses to protect. I have tried to make it as foolproof as possible.

It's a warning so you know it's a non-trivial operation. You really should make sure your programmer works reliably. Stopping in mid-write may brick your radio.

That being said, it is a very automated processs. You plug in your radio - press the button and wait.
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Protect Fuses to stop settings being wiped on firmware u

Post by erazz »

Regarding automatic backup and rewrite.
I don't have a problem reading the EEPROM but writing it back when you could just prevent it from being erased..... Why?

Guys, if the reading and writing of EEPROM goes well than seting the fuses should not be a problem.
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
User avatar
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Protect Fuses to stop settings being wiped on firmware updat

Post by cre8tiveleo »

User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Protect Fuses to stop settings being wiped on firmware u

Post by erazz »

I'll take another crack at making this more user friendly.

Back in the earlier days we had a rash of "bricks" meaning people had somehow messed up their fuses and "bricked" their radio requiring an external oscilator to get it back up. I guess we're carrying around the scars from that. Truth be told I have not heard a single mention of a brick since we started using eePe.
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
G550Ted
Posts: 389
Joined: Tue Dec 27, 2011 6:15 pm
Country: -
Location: Savannah, GA, USA

Re: Protect Fuses to stop settings being wiped on firmware u

Post by G550Ted »

OK guys, now that's clear and simple like I need. Inasmuch as both of my radios with SP boards are working fine I will "set" the fuses on both. Something clear like this needs to go in the wiki.

Thanx,

Ted

I have learned to brush my teeth but still require assistance tying my shoelaces. ;)
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Protect Fuses to stop settings being wiped on firmware u

Post by erazz »

As we speak I'm writing something clearer and more user friendly.
I'm also restoring ther ability to reset the fuses to factory default.

This is all purely cosmetic. Feel free to set the fuses with your current version of eepe.
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
G550Ted
Posts: 389
Joined: Tue Dec 27, 2011 6:15 pm
Country: -
Location: Savannah, GA, USA

Re: Protect Fuses to stop settings being wiped on firmware u

Post by G550Ted »

Much appreciated! Thanx again.

Ted
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Protect Fuses to stop settings being wiped on firmware u

Post by erazz »

We try to please :)
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
User avatar
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Re: Protect Fuses to stop settings being wiped on firmware u

Post by cre8tiveleo »

much friendlier warnings... Cr8tive_leo approves.

8-)
User avatar
Westy
Posts: 248
Joined: Tue Jan 31, 2012 8:44 pm
Country: -
Location: Te Awamutu, Waikato, New Zealand

Re: Protect Fuses to stop settings being wiped on firmware u

Post by Westy »

Westy Approves Also :mrgreen:

Keep up the great work chaps!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Protect Fuses to stop settings being wiped on firmware u

Post by jhsa »

JHSA approves cre8tiveleo's and KiwiHeliguy's approval :mrgreen: :mrgreen: ;)
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
erazz
9x Developer
Posts: 682
Joined: Tue Dec 27, 2011 6:25 pm
Country: -
Location: NJ-USA
Contact:

Re: Protect Fuses to stop settings being wiped on firmware u

Post by erazz »

Do you guys approve each other as well?
Z

BEWARE - WE ARE IN THE AIR!!!
What goes up... Should be controlled by a 9X!
G550Ted
Posts: 389
Joined: Tue Dec 27, 2011 6:15 pm
Country: -
Location: Savannah, GA, USA

Re: Protect Fuses to stop settings being wiped on firmware u

Post by G550Ted »

My fuses are set, and I approve of another glass of wine. ;) A toast to you erazz! :D

Ted

Post Reply

Return to “PROGRAMMERS”