Flash Magic Forum

In-System Programming Support => LPC9xx/LPC9xxx => Topic started by: TomP on November 02, 2006, 07:43:41 AM

Title: Security bits in unused blocks?
Post by: TomP on November 02, 2006, 07:43:41 AM
I've got code that fits in Blocks 0 to 2 of a 922. Somehow (don't know how), the security bits for Block 3 got set. When I reprogram the software, with the security bits cleared for all blocks, the Block 3 bits are still programmed.

Does this mean that FM programs only the security bits for the blocks that have code in them? Or am I missing something?

Thanks.

tom

Title: Re: Security bits in unused blocks?
Post by: Andy Ayre on November 02, 2006, 07:57:18 AM
FM programs exactly the security bits you tell it to and nothing more. So if the box for the security bit is checked in the main window then it will be programmed. Otherwise it will be left in it's current state.

What happens if you do the following:

ISP -> Read Security Bits
  -> check that the block 3 bits are set
ISP -> Erase
  -> erase all Flash
ISP -> Read Security Bits
  -> which bits are still set?

Main window, section 4
  -> are any security bit checkboxes set?