Other Parts Discussed in Thread: CC1310
Hey guys,
we use sensor/collector example (SDK 3.1 CC1310 and 3.2 CC1352R1, respectively). We use Flash programmer 2 for device flashing since we are aware of the fact that using CCS can cause the code execution to stuck the first time after calling SysCtrlSystemReset(). This is definitely not the problem here.
In my code I have few scenarios, where a reset is desired and for whatever reason in some cases it works in some not. Luckily it is reproducible. I ran 5 Tests calling SysCtrlSystemReset() at 4 different occassions meaning in two cases, SysCtrlSystemReset() was called from the same function, once it works once does not.
1. As a first test, I put the following code snipped at the very beginning of the function: sensor_process() --> works
/* Clear NVItems */
Ssf_clearAllNVItems();
/* Sleep for 1s=100000ticks */
Task_sleep(100000); /
* Restart */
SysCtrlSystemReset();
2. When frequency hopping is activated and no PA frame has been received after 5 PAS transmissions on the sensor side, the sensor device performs a restart within the callback function: processPASTrickleTimeoutCallback() --> works
3. When the PA message has been received and I remove the collector, the sensor will perform a restart after 5 unsuccessful PCS transmissions within processPCSTrickleTimeoutCallback() --> board stucks
4. When association Fails twice, the sensor performs a restart --> works
5. When the sensor disassociates from the network, it deletes all network info and searches for a new network sending PAS frames. This time, when the sensor tried 5 times and wants to restarts it gets stuck calling SysCtrlSystemReset() from processPASTrickleTimeoutCallback(). --> board stucks
Everytime, the board is stuck a manual reset is necessary pressing the reset button on the board. However, also after that Manual Restart, if Scenario 3 or 5 occur again, the code will stuck. So I am quite at a loss, why the board sometimes stops and sometimes restarts just fine.
Any ideas are welcome.
Best wishes
Slev1n