-1

I have a board running FreeRTOS. In main() I have hardware setup, task creation and parameter initialization, then finally the scheduler starts.

One of the tashs is a system monitor, in case something goes crazy. Problem is, how do I effectively restart the board from within a task? Language is C.

Dirk Bruere
  • 237
  • 2
  • 15
  • 3
    This question is totally hardware-specific. – Eugene Sh. May 03 '18 at 16:33
  • Here's hoping you find someone who has ever used this hardware. – Michael Dorgan May 03 '18 at 17:06
  • 2
    most boards have a register that can be used to reset the board. The better ones have a register that you must read within a certain time frame to prevent the board from resetting ( a watchdog ). Look at your board specs &| schematics. – mevets May 03 '18 at 17:51

1 Answers1

0

One answer I have discovered is to use freeRTOS non-local Jumps (setjmp(), longjmp()). So it is not a totally hardware specific question

However, I will probably force the MCU h/w watchdog to time out

Dirk Bruere
  • 237
  • 2
  • 15