AT91SAM7:
AT91SAM7 series microcontrollers use a single Security Bit to protect the embedded Flash memory. This bit is part of the General-Purpose Non-Volatile Memory (GPNVM) and controls access to the entire program memory.
When this bit is set, it completely blocks any external access (read, write, erase) to the Flash memory through the debug port (JTAG/ICE) and the SAM-BA bootloader. However, the processor core can still execute code from the protected memory.
Security Bit States:
GPNVM[0] State
Protection Description
Disabling the security bit is possible only through a hardware Chip Erase procedure. It cannot be done via software or the debug interface.
Chip Erase Procedure:
1. Apply a high logic level to the dedicated `ERASE` pin (often shared with a JTAG pin, such as TDI).
2. While holding the `ERASE` pin high, perform a hardware reset of the microcontroller (via the NRST pin).
WARNING: This operation completely and irreversibly erases the entire Flash memory of the microcontroller. After this procedure, the GPNVM[0] security bit is cleared to '0'.
Another important bit, GPNVM[1], determines where the microcontroller will boot from after a reset.
GPNVM[1] State
Boot Source
Note: Even if booting from SAM-BA is forced, access to the Flash memory will still be blocked if the GPNVM[0] security bit is set.
AT91SAM7 series microcontrollers contain a 32-bit Chip ID register, which is unique for each die. It can be read at any time (even when the security bit is set) and is ideal for:
Microchip Technology (SAM MCUs)
Ask your question: RussianSemiResearch@ya.ru