看看能导致复位的原因:
A POR is a device reset. A POR is only generated by the following three
events:
Powering up the device
A low signal on the RST/NMI pin when configured in the reset mode
An SVS low condition when PORON = 1.
A PUC is always generated when a POR is generated, but a POR is not
generated by a PUC. The following events trigger a PUC:
A POR signal
Watchdog timer expiration when in watchdog mode only
Watchdog timer security key violation
A Flash memory security key violation
A CPU instruction fetch from the peripheral address range 0h − 01FFh