实际上我尝试了_u pic32_._reset(),我在最初的文章中提到过,它也可以工作。我找到了另一本手册,它涉及整个P32家族,并且如果具有类似的序列:http://ww1.micro..com/...eviceDoc/60001118H.pdf。
以上来自于百度翻译
以下为原文
I actually tried
__pic32_software_reset() that I mentioned in the initial post and it works as well.
I found another manual that refer to the whole P32 family and if has a similar sequence:
/* The following code illustrates a software Reset */
// assume interrupts are disabled
// assume the DMA controller is suspended
// assume the device is locked
/* perform a system unlock sequence */
// starting critical sequence
SYSKEY = 0x00000000; //write invalid key to force lock
SYSKEY = 0xAA996655; //write key1 to SYSKEY
SYSKEY = 0x556699AA; //write key2 to SYSKEY
/* set SWRST bit to arm reset */
RSWRSTSET = 1;
/* read RSWRST register to trigger reset */
unsigned int dummy; dummy = RSWRST;
/* prevent any unwanted code execution until reset occurs*/
while(1);
http://ww1.microchip.com/...eviceDoc/60001118H.pdf