Hello,
I have encountered an issue with the watchdog provided inside the TMS570LS3137.
For information, I am using FreeRtos on top of the mcu with a RTI_CLK = 50 M. Note that the two counters using RTI_CLK are used (one for FreeRTOS and one for a software timer purposes)
I wanted to used a periodic task for example to reload the watchdog counter. But when I tried to access the register WDKEY by writing 0xE51A from the task, it automatically triggers an _dabort.
This are the steps I followed:
1. program DVD preload value (called before enable the scheduler) in the "init function"
2. enable DWD (called before enable the scheduler) in the "init function"
3. Write 0xE51A WDKEY (called from a task)
4. Write 0xA35C to WDKEY (called from a task)
Note that if I write the register WDKEY before starting the scheduler (in my init code), it works fine. On the other hand, if I tried to update one of the register related to watchdog from a task, it automatically triggers an _dabort (like if I was accesing a restricted area => I disable the MPU but still the same error. And it is not FreeRtos that messed up with those registers.
Any idea ?
Best regards,