Tool/software: TI-RTOS
hi,
I am working on one CC1352P and two CC1352R launchpads using collector and sensor example codes in TI15.4 stack (SUB 1 GHz). I have connected two more sensor devices to my collector device and my device is working fine. Sensors send data with some interval configured. But after restart of collector if sensors are off and only collector is on, collector is executing Main_AssertHandler after one minute.
If i POWER ON any sensor or send any message from UART this is not happening.
So i have added an unused_evt and set for 50 sec and have done nothing in that event and set again in that event itself. The collector is working fine even if sensors are off and no data is sent from UART.
In Collector_process()
{
if(collector_events & COLLECTOR_START_EVT)
{
// events function to be executed
// clear event
}
..
..
if(collector_events & UNUSED_EVT)
{
// clear event
}
/* Don`t process Apimac messages until all of collector events are processed*/
here below line i kept break point and it hits only once and after it is not executing
if (collector_events == 0)
{
ApiMac_processIncoming();
}
}
why if i didn`t add unused event, the collector is executing MAIN_ASSERT_HANDLER(TI_RTOS_HANDLER)?