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.

SENSOR-CONTROLLER-STUDIO: Is there a watchdog timer for sensor controller or anything similar?

Part Number: SENSOR-CONTROLLER-STUDIO
Other Parts Discussed in Thread: CC1352R

Hi,

I have a sensor controller application running execution code and event trigger code, and I want to check if the processing takes too long to reset everything. I'm trying to do it with timers, but since the processing could be happening either in the execution code or in event triggers, it's a bit more complicated because every code must run to the end until switching for an event trigger, since there isn't any kind of preemption or priority..

A watchdog timer would be great,  but I can't find any information about it. Is there anything that could be used to that effect?

Thanks,

JD

  • Hi JD,

    Which device are you using in your design?

    You are correct, there is no watchdog timer available/accessible to the sensor controller. One way to implement it would be to use one of the available timers to periodically trigger an interrupt. You can create an SC task to periodically restart such timer in case your desired conditions are met. You need to reroute the Timer interrupt from the MCU application so that you receive a callback on the MCU whenever the Timer is allowed to run out, so you can react to such situation. You can use the AUX_COMB interrupt line to route AUX domain events to the MCU (through the AUX_EVCTL module). This Timer should never be allowed to expire if the Sensor Controller operates correctly, so you should have sufficient time to re-route the interrupt from the MCU side before it can trigger. 

    There is no example code for such a use case but on paper I would expect it to be a viable solution.

    Regards,

    Fausto

  • I'm using CC1352R.

    Thanks for the suggestion.