Hello,
I'm developing an application using the HDK for prototyping. I used HalcoGen for generating a FreeRTOS based application skeleton.
Whe I call dwdReset() from a FreeRTOS task, the MCU raises an exception. I understand this happens because FreeRTOS tasks runs in user mode, but accessing the digital watchdog key register (as dwdReset() does) requires privileged mode. I have found the SWI mechanism implemented in the FreeRTOS source code, and I think that a possibilty could be to add a SWI handler wich calls dwdReset() from privileged mode, but I'm unsure about how to correctly implement this kind of handler.
I'm wondering if there is an official way to handle the digital watchdog from an HalcoGen generated FreeRTOS application. Or maybe there is already some example code I could use.
Could you help please?
Thanks in advance.