About the backdoor, this is all fine and dandy but most of what you describe is not something you can't do with a simple dump utility from within your code. A backdoor should be able to go beyond what you can do in software. If the MCU is in good enough condition to run code (and it must be to be able to run the backdoor procedure itself), then the code can also provide some secret or 'PIN-enabled' method to provide all that debugging info you're talking about. Another problem with backdoor is that all BDM equipment out there (that I know of) don't have a method of entering Background mode after a backdoor sequence. They seem to assume that they have to have full control and always start by resetting which cancels the backdoor.
Anyway, I'm not saying Backdoor is totally useless, only that I don't see any real benefit for it.
Now, regarding:
To answer OP, FPROT register can be written to increase the size of protected flash. You bootloader may have NV write protection register set to protect just the bootloader. Then just before bootloader jumps to application code, or in applications startup, there could be a write to FPROT to protect whole flash or whole flash minus flash data area.
I believe FPROT is not user writable (at least not in all MCU derivatives, don't know about the specific MCU mentioned). FPROT becomes loaded automatically with NVPROT which is always in protected space if you have protected the bootloader, above any code. So, I don't see how this would work.
Message Edited by tonyp on
2009-01-29 12:00 PM