2009-01-01 05:41 AM
random reset
2011-05-17 03:57 AM
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 sec2011-05-17 03:57 AM
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.