3.1 System Reset

The CRU, RSWRST register, and SWRST bit (RSWRST[1]) resets the software. A write of a logic ‘1’ to this bit enables the software reset. A subsequent read of this register triggers the system reset sequence. The system unlock sequence must be done before the bit can be written. System unlock register belongs to the CFG register CFG_SYSKEY where the register addresses are shown in the following table of the devices.

Table 3-1. System Reset Registers
DevicesCRU AddressCFG_SYSKEY
PIC32CX-BZ3 0x4400_0A000x4400_00B0
PIC32CX-BZ60x4400_0A000x4400_00D0
Run the following sequencer to unlock:
  1. Set CFG_SYSKEY = 0x00000000 (Reset key).
  2. Set CFG_SYSKEY = 0xAA996655.
  3. Set CFG_SYSKEY = 0x556699AA.