This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F: CC2640R2F调用SysCtrlSystemReset重启概率性不成功

Part Number: CC2640R2F

我这边在测试CC2640R2F芯片时发现,每次蓝牙连接断开后,调用SysCtrlSystemReset函数重启,高概率出现不成功,并导致程序卡死,必须硬重启才能好.

请教下,调用这个函数软重启之前,需要做一些什么操作吗?

__STATIC_INLINE void
SysCtrlSystemResetvoid )
{
   // Disable CPU interrupts
   CPUcpsid();
   // Write reset register
   HWREGBITWAON_SYSCTL_BASE + AON_SYSCTL_O_RESETCTLAON_SYSCTL_RESETCTL_SYSRESET_BITN ) = 1;
   // Finally, wait until the above write propagates
   while ( 1 ) {
      // Do nothing, just wait for the reset (and never return from here)
   }
}