2016-01-12 11:55 PM
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-iwdg2016-01-13 04:34 AM
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.2016-01-13 06:05 AM
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).