2025-10-17 4:58 AM
Hi,
My current project using 2 STM32WB5x series MCU and after added in Zigbee feature through STM32CubeMX, it is always loops at the Idle code as shown below. The code is from the stm32_seq.c
----------------------------------------------------------------------------------
/* the set of CurrentTaskIdx to no task running allows to call WaitEvt in the Pre/Post ilde context */
CurrentTaskIdx = UTIL_SEQ_NOTASKRUNNING;
/* if a waited event is present, ignore the IDLE sequence */
if ((local_evtset & EvtWaited)== 0U)
{
UTIL_SEQ_PreIdle( );
UTIL_SEQ_ENTER_CRITICAL_SECTION_IDLE( );
local_taskset = TaskSet;
local_evtset = EvtSet;
local_taskmask = TaskMask;
if ((local_taskset & local_taskmask & SuperMask) == 0U)
{
if ((local_evtset & EvtWaited)== 0U)
{
UTIL_SEQ_Idle( );
}
}
UTIL_SEQ_EXIT_CRITICAL_SECTION_IDLE( );
UTIL_SEQ_PostIdle( );
}
----------------------------------------------------------------------------------
From the debug traces output by the USB VCP below shows that the onOff Server cannot receive any SW1 action sent by the onOff client. How to debug this type of problem since both server and client looks like link up to each other now. Thanks.