Hi, i'm writing a bootloader for atmega2560 microcontroller and i'm getting a bit confused with lock bits.
Can someone please explain to me how it works?
The quieter you become, the more you can hear.
Maybe turn that around - exactly what protection are you looking for? Presumably you want things set so that the bootloader cannot inadvertently write over itself?
i want bootloader self update. At the moment i set 0xFF lockbits. but when i try to erase entire flash it doesn't happens. So maybe there's other stuff. I red also about "Read While Write". Could this is the problem?
i want bootloader self update.
My idea is to keep bootloader in ram until new bootloader is flashed. What do you thinks about this?
i want bootloader self update
You want your boot loader to be perfect, as it is almost impossible to update it in the field!
Why do you want to change your bootloader?
Click Link: Get Free Stock: Retire early! PM for strategy
get $5 free gold/silver https://www.onegold.com/join/713...
it's just prevention, in certain project maybe i can't take physically the microcontroller. If i have a new version of bootloader i want upgrade the old one. For sure it's not like firmware update (like weekly), but if i need i can do it.
Best to design your bootloader so it does not need updating! Take the TIME to do it correctly, taking all possibilities into account!
Think then program!
If the boot loader does need updating, that is what ISP is all about!
Best to design your bootloader so it does not need updating!
If you get it right first time (and keep it simple!) then there should never be a need to update. In that case you can apply locks to the one bootloader and it will be much more robust.
I 100% agree with you.
I feel like that's sort of awful advice. Humans are, quite consistently, incapable of being 100% flawless. There will be a bug. Eventually. Designing for what to do when that happens is good engineering.
© 2019 Microchip Technology Inc.