Sunday, September 24th 2017, 1:35am UTC+2

You are not logged in.

  • Login
  • Register


Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Message information
Automatically converts internet addresses into links by adding [url] and [/url] around them.
Smiley code in your message such as :) is automatically displayed as image.
You can use BBCode to format your message, if this option is enabled.
Security measure

Please enter the letters that are shown in the picture below (without spaces, and upper or lower case can be used).

The last 2 posts

Wednesday, July 19th 2017, 3:50pm

by SEGGER - Til


from the embOS manual:


pfResetFunc may be used to perform additional operations inside a callback function
prior to the reset of the microcontroller.

The reset function is optional and gives the chance to react on such a situation.
You could e.g. write a message in a log file or set a piece of hardware in safe state before resetting the μC.

The basic idea is that one hardware watchdog is not enough for an RTOS with multiple tasks.
If you would trigger the hardware watchdog in one task only all other tasks are not checked and you don't know if they are still running.
Therefore we have the unlimited software watchdogs which you can use with the OS_WD_*() API.
In the end a hardware watchdog is used, of course.

I hope that makes it more clear.

Best regards,

Wednesday, July 19th 2017, 3:16pm

by Lupe

OS_WD_Config(): How to configure pfTriggerFunc?


I don't understand how to configure the new watchdog feature in embOS 4.34. From the docu:

Source code

void OS_WD_Config (voidRoutine* pfTriggerFunc,voidRoutine* pfResetFunc);

pfTriggerFunc Function pointer to hardware watchdog trigger callback function.

In the example, it's declared like this:

Source code

static void _TriggerWatchDog(void) {
WD_REG = TRIGGER_WD; // Trigger the hardware watchdog

Why/How should I trigger that "hardware watchdog"? If I have to trigger some watchdog here, /that/ one will reset the μC and pfResetFunc is meaningless...
Or what is meant by "trigger"? Is it to refresh another watchdog? But still, if that watchdog resets the μC, the embOS watchdog is surplus.

Could you help me out of my confusion, please?
I'd need it for an stm32f303...