We encountered a problem on a K60F120M using MQX 4.2.0.2 that seems mainly related to the RTCS module.
Namely when the RTCS module is activated and with a watchdog set to 1 second the system restarts/resets about once a day.
Used modules:
bsp, psp, rtcs and shell.
Configuration for RTCS:
_RTCSTASK_priority = 7;
_RTCSTASK_stacksize = 10000;
_RTCSPCB_init = 4;
_RTCSPCB_grow = 2;
_RTCSPCB_max = 10;
_RTCS_msgpool_init = 4;
_RTCS_msgpool_grow = 2;
_RTCS_msgpool_max = 10;
_RTCS_socket_part_init = 4;
_RTCS_socket_part_grow = 2;
_RTCS_socket_part_max = 10;
The main task which handles the watchdog has a priortity of 15, furthermore this problem persisted after we temporarly removed all code expect initialization of RTCS and watchdog handling.
已解决! 转到解答。
Ok the problem is solved, traced down to refreshing the hardware watchdog without interrupts disabled.
Hi Christian
Do you use the MQX software watchdog?
I did a quick check with a demo, combined the watchdog and RTCS, not found this issue. Could you please let me know how to reproduce your issue on my side?
You also can submit a support requests on NXP website if this issue is important and need fast response.
Regards
Daniel