cancel
Showing results for 
Search instead for 
Did you mean: 

random reset

nikhil23
Associate II
Posted on January 01, 2009 at 14:41

random reset

2 REPLIES 2
nikhil23
Associate II
Posted on May 17, 2011 at 12:57

hello friends i am using stm32f103,

Is there any core register which can provide the cause of last reset? I cannot use debug as there is no jtag port on my board

I got a situation where mcu reset randomly and this occurs many time, reset is because of WDT timeout,WDT is been hit more than 50 times a second from main while(1) moreover before reset whole of the code is crashedas even interrupts also stooped(i got to know this with help of led blink using timer interrupts, it was stop before reset). The situation seems to be of memory or like stack overflow but i had increased the sack size many time but this problem persists and i think is only a software problem not hardware as all other 5 board give same performance

*WDT is independent watchdog with lapse time of 10 sec

16-32micros
Associate III
Posted on May 17, 2011 at 12:57

Hi,

Could you check and measure your LSI RC (~40 kHz) that clocks the IWDG, you can do it by clocking the RTC and then output the Signal using ''CCO bit Calibration clock output'' on the Tamper pin. may be you have a none suitable formula for the IWDG refresh inside your Main loop. Hope this helps you.

Cheers,

STOne-32.