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.

CC2642R: SensorController Task to Reset Main Application or CPU

Part Number: CC2642R

Hello,

I am working on a "WatchDog" Sensor Controller task to monitor the health of my Main Application. If my application fails to respond I'd like the Sensor Controller task to reset the CPU or Main Application.

Is this possible? Does the SensorController have the functionality or access to reset the MCU or Main Application?

Thank you!

  • Hi Brett,

    The Sensor Controller can not reset the main CPU internally. You could potentially do an external reset by routing the reset pin in some hacky way but this would also reset the sensor controller.

  • Thanks M-W,

    I have an additional question about the Sensor Controller. If I schedule a task to run periodically will I always need to acknowledge and handle CPU Alerts in my main application for the next SensorController iteration to be scheduled and run?

    In the example code I have to acknowledge the alert:

    /** \brief Acknowledges the ALERT events associcated with the last ALERT interrupt
      *
      * This function shall be called after the handling the events associated with the last ALERT interrupt.
      *
      * The application must call this function once and only once after reception of an ALERT event,
      * after calling \ref scifClearAlertIntSource(). It must not be called unless an ALERT event has
      * occurred.
      *
      * \note Calling this function can delay (by a short period of time) the next task to be executed.
      */
    void scifAckAlertEvents(void)

    If I don't call this, will the next scheduled SensorController Task still run?

    Thank you,

    Brett

  • Yes. If you do not do that you will not get another alert. Also you need to reset the structs. There is a generated doxygen documentation, read that.

    -kel