Disabling bootloader under program control
I use Mechanique's MCLOADER as a bootloader for my code. Recently, a customer has asked if I could disable the bootloader under program control.
I'm thinking the easiest thing to do is modify the configuration registers using Darrel Taylor's code, but I can't find one register that will disable ALL writes to flash. Sort of a "global write protect". Am I missing something?
I don't think this is the correct answer but....
Hi Charles,
I read somewhere that if you set the code protect fuse that will disable the bootloader. I'm not sure if this will help you or not. My only other thought was that Steve (Mister-E) had posted a schematic to add a transistor that would allow the software to pull the reset pin, thereby allowing automatic boot loading, no need to press a button. You might be able to utilize something like that, and control the transistor from your software to not allow boot loading.
Good Luck,
Jerry.