Maximum amount of time that is allowed in the timeout callback function

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
bn_2113766
Level 1
Level 1

Hi All,

I am running some signal processing algorithms in the fine timeout callback function, the total number of ARM CPU clock cycles for the calculations is about 1300, which corresponds to 55us.

The code seems to be working fine when the period of the fine timeout is 1s, but I see that the module resets when the timeout is reduced to 100ms.

Is there any guideline on what would be the maximum allowable amount of time to spend on timeout callbacks ? Also, where should I put the math-intensive codes if I need them to run every 10ms ? Is the callback function a good place, if yes which one and if not are there any main loops that I can use (which can be interrupted by higher priority tasks).

Thanks a lot in advance

0 Likes
1 Solution
Anonymous
Not applicable

The reset might be triggered by watchdog. To disable watchdog at first but must be careful.

WatchDog Disabling / Restarting

View solution in original post

0 Likes
3 Replies
BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

We are probably not the right person to offer a reply to your questions.

bnourani

0 Likes

Hi boont

Thanks for the reply. I am wondering though, was my question out of context ?

Regards,

0 Likes
Anonymous
Not applicable

The reset might be triggered by watchdog. To disable watchdog at first but must be careful.

WatchDog Disabling / Restarting

0 Likes