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.

协议栈程序老跑到这个死循环是什么意思

Other Parts Discussed in Thread: CC2650

例程:ZStack home 1.2.2a 的SampleSwitch 的CC2650程序,经常跑到下面函数中的while(i),又定义了i=1,进入死循环了,编译选项中默认定义了这个HAL_ASSERT_SPIN,这个函数作用是什么呢

void halAssertHandler( void )
{
#if defined( HAL_ASSERT_RESET )
HAL_SYSTEM_RESET();
#elif defined ( HAL_ASSERT_LIGHTS )
halAssertHazardLights();
#elif defined( HAL_ASSERT_SPIN )
volatile uint8 i = 1;
HAL_DISABLE_INTERRUPTS();
while(i);
#endif

return;
}