|
|
View previous topic :: View next topic |
Author |
Message |
Ttelmah
Joined: 11 Mar 2010 Posts: 19195
|
|
Posted: Fri Feb 26, 2021 11:05 am |
|
|
If you think about it a 'brownout', is a very nasty failure for the chip.
Depending on luck, some memory cells can hold their values, while others
lose theirs. If the chip then keeps running, almost anything can happen.
You can end up with the wrong PC value, or the wrong data contents,
or a combination of both. Garbage.
Running without the brownout fuse is basically idiocy. That is what it is
there for, to ensure that when the voltage drops into this danger area, the
chip will restart sensibly.
Why anyone would want to run without this fuse enabled is almost
inexplicable (actually, there are a couple of PIC's where the selectable
brownout voltages are not useable on certain chip versions, so on these
not using it makes sense, but on all other chips it really is a feature that
should be enabled). In this particular case is seems that the brownout may
result in something like a jump to perhaps an address like 0x100 or 0x200,
which if a bootloader is present can result in disaster. |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1630 Location: Perth, Australia
|
|
Posted: Sat Feb 27, 2021 6:01 pm |
|
|
Ttelmah wrote: | If you think about it a 'brownout', is a very nasty failure for the chip.
Depending on luck, some memory cells can hold their values, while others
lose theirs. If the chip then keeps running, almost anything can happen.
You can end up with the wrong PC value, or the wrong data contents,
or a combination of both. Garbage.
Running without the brownout fuse is basically idiocy. That is what it is
there for, to ensure that when the voltage drops into this danger area, the
chip will restart sensibly.
Why anyone would want to run without this fuse enabled is almost
inexplicable (actually, there are a couple of PIC's where the selectable
brownout voltages are not useable on certain chip versions, so on these
not using it makes sense, but on all other chips it really is a feature that
should be enabled). In this particular case is seems that the brownout may
result in something like a jump to perhaps an address like 0x100 or 0x200,
which if a bootloader is present can result in disaster. |
To add to this, it is obvious when you think about it, that a PIC that includes a bootloader but does not have brownout enabled and correctly set is very likely to corrupt the contents of Program Memory as the bootloader contains code specifically to modify program memory. So, if a brownout occurs it is not surprising that part of the bootloader code could be executed. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|