/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / How to handle a program that hangs???

Username:     
Password:     
             

Forum

# 1   2009-09-25 20:07:18 How to handle a program that hangs???

logictechs
Member
Registered: 2009-05-07
Posts: 68

How to handle a program that hangs???

Hi,

I cannot seem to figure out how to deal with a hang issue for a program used with the Circle OS.  Can the watchdog be utilized to cause a reset?  Please provide or point me to an example.

Thanks,

Logictechs

Offline

 

# 2   2009-09-29 06:46:52 How to handle a program that hangs???

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: How to handle a program that hangs???

Yes, the STM32 is equipped with a watchdog (IWDG) that can reset the MCU after programmable time from about 0.1 ms to 26s.
But this functionality is not impemented in the CircleOS, and you have to program it into your application.
Be carefull, because  the watchdog counter is always running when the MCU is stopped in debug mode (this is the default value, and Ride does not permit to modify it yet.

You can find an example of IDWG use, in the examples provided with the STM32 ST library.

Yves.

Offline

 

Board footer