Quantcast
Channel: How to Disable/Delay the watchDog Timer for a certain Task in an embedded system - Stack Overflow
Viewing all articles
Browse latest Browse all 4

How to Disable/Delay the watchDog Timer for a certain Task in an embedded system

$
0
0

I'm working on a project for automotive system where we use the MPC5748 MCU. The application uses an RTOS based on AUTOSAR OS, and this MPC target support two type of watchdogs; software and hardware (they have used soft WDT).

My mission is to fit an algorithm within this application, the development of the algorithm has been done, the problem is that in the task where the algorithm is running is a 1ms task and the algorithm needs much more time than the time dedicated to this function.

I'm a newbie to the embedded world.By the way, in the algorithm main function the program will reset itself and this seems to be a timeOut generated by the expiration of the watchdog.

My questions are:

  1. Can I disable the watchdog timer for this specified function (which must not be disabled but just for testing purpose)? It is possible to use more timeOut for the watchdog on that specified function?

  2. Must I develop another task with a big delay in other to run the algorithm? But the problem is that the algorithm need to be synchronised with the 1ms task since we are receiving CAN commands.

  3. Can i add a sleep(<1ms) on the desired function in order to wait a little bit witout affecting other tasks

  4. What are other options to try?

NB: This is a general problem on the watchdog timer and any useful informations will be much helpful for me. Sorry because I can't share the code.


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>