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.
Devices | CRU Address | CFG_SYSKEY |
---|---|---|
PIC32CX-BZ3 | 0x4400_0A00 | 0x4400_00B0 |
PIC32CX-BZ6 | 0x4400_0A00 | 0x4400_00D0 |
Run the following sequencer to unlock:
- Set CFG_SYSKEY = 0x00000000 (Reset key).
- Set CFG_SYSKEY = 0xAA996655.
- Set CFG_SYSKEY = 0x556699AA.