cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L152: Independent watchdog problems

gw-pd
Associate
Posted on January 13, 2016 at 08:55

Hi all,

in a current project, we're using a STM32L152RBT6 microcontroller and are facing occasional independent watchdog resets, about one in a day of continuous operation in average. When replacing the STM32L152RB with a same-package STM32L152RC and using the exact same firmware on it, which is achieved by taking the same binary file for flashing, the problem is not occurring at all.

If anybody has an idea what could be the cause of this or has any hints about this topic, you're very welcome.

Thanks and best regards,

Gerhard

#stm32l152-iwdg
2 REPLIES 2
Posted on January 13, 2016 at 13:34

Does it get stuck in while(1) loop somewhere so it can't kick the dog any more?

Like a Hard Fault Handler that doesn't provide any diagnostic output? Do you output any telemetry from your system to understand what's happening inside your code.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
pkumar1883
Associate II
Posted on January 13, 2016 at 15:05

Hi GW,

The 2 parts you named are exactly same except in memory size(Flash and RAM).

First try to debug by serial print  and see if it is going to HardFault_Handler().

Looks like that program trying to access some memory address which available in RC but not in RBT6(due to less memory) . It could be due to stack overflow or Dynamic memory allocation(malloc & calloc etc).