3.1.3.5 Bulk Erase

The Bulk Erase command is used to completely erase different memory regions. The area selection is a bit field in the payload.

By setting the following bits of the payload, the corresponding memory regions can be bulk erased. Setting multiple bits is valid.

  1. Bit 0: Data EEPROM
  2. Bit 1: Flash memory
  3. Bit 2: User ID memory
  4. Bit 3: Configuration memory
Important:
  1. If the device is code-protected and a Bulk Erase command for the Configuration memory is issued, all other regions are also bulk erased.
  2. Once set, the SAFLOCK bit cannot be bulk erased and the SAF space defined by the SAFSZ bits cannot be bulk erased.
  3. Once set, the ICSPDIS bit cannot be bulk erased, and the programming and debugging interface of the device will be permanently disabled.

After receiving the Bulk Erase command, the erase will complete after the time interval, TERAB. See Figure 3-12 for the Bulk Erase command structure.

Figure 3-12. Bulk Erase Memory