title: How to Disable/Delay the watchDog Timer for a certain Task in an embedded system
body: <p>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).</p>
  
  <p>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 <strong>1ms task</strong> and the algorithm needs much more time than the time dedicated to this function.</p>
  
  <p>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.</p>
  
  <p>My questions are:</p>
  
  <ol>
  <li><p>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?</p></li>
  <li><p>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.</p></li>
  <li><p>Can i add a sleep(&lt;1ms) on the desired function in order to wait a little bit witout affecting other tasks </p></li>
  <li><p>What are other options to try?</p></li>
  </ol>
  
  <p>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.</p>