2026-01-28 7:26 AM - last edited on 2026-02-04 6:30 AM by mƎALLEm
Environment: STM32L4 + 32.768K LSE
Function: Wake up and work once every hour, then enter stop2 mode. During the one-hour sleep, wake up every ten minutes to feed the external watchdog.
Problem: The device resets directly when waking up every ten minutes.
Current known information: The device was tested in the company for over twenty days without any issues (including restarts, freezes, etc.). After the prototypes were given to customers, problems started to occur in about 10 to 20 days. Currently, there are two failed devices. After power cycling, the devices did not return to normal. External reset also did not restore them to normal. Re-flashing the devices allows them to operate normally, and they are currently under continuous pressure testing to see if the issue will recur.
Current debugging progress: When the device restarts, the nRST pin has a low-level time of less than 1ms. The 3.3V power supply pin of the MCU is stable as observed by the oscilloscope. The TP5010_DONE_Pin has a 40ms high-level time during each ten-minute wake-up period (HAL_Delay(1) --> SystemCoreClock configured at 80M, after low-power wake-up, it switches to the default 4M of MSI, reducing by 20 times, plus the HAL_GPIO_WritePin time, which is exactly 40ms), but during the first low-power entry, it has a high-level time of over 20ms (caused by unstable PLL switching to MSI?).
------------------------------------------------------------------------------------
2026/02/03 23:18 UPDATE:
Environment:
50 mAh battery + STM32L4 MCU + 32.768 kHz LSE crystal + 4G module + GPS module + solar charging panel
Functionality:
Problem:
The device occasionally resets during these 10-minute wake-up intervals.
Known Information:
Current Observations & Issues:
Current Analysis:
Current Questions:
Next Steps:
2026-01-28 6:50 PM
2026-01-28 7:33 PM
> It was found that when the nRST signal had a falling edge, there was no fluctuation on the 3.3V line.
Okay, that's a good check. Hmm.
> should I re-flash the original firmware or flash the new version with the added RCC status prints?
I would leave in the RCC-related debug prints.
It happening intermittently and during water intrusion certainly suggests a hardware fault. My money is still on BOR. Are all solder joints okay? The UFQFPN is harder to solder and inspect than a LQFP. Could be a bad solder joint failing in response to some change in temperature or environment.
Multiple units having the same symptoms also suggests some hardware cause rather than flash corruption (which, again, is absurdly unlikely even as a one-off).
Please post if you figure it out.
2026-01-29 1:22 AM
@daniaoday wrote:mounted on poultry
So powered by a small battery, then?
I'd think that would support @TDK's brown-out theory ...
@daniaoday wrote:why does simply re-flashing the firmware restore normal operation?
Does your code write to flash; eg, "EEPROM emulation" ?
2026-01-29 1:34 AM
2026-01-29 5:51 AM
Back to images first your VDDA is not connected to 3V3. If realy is then OK , but VDDA without power produce exactly unhandled resets etc.
Nex question si realy required PLL speed in your cade design? Because switching to create current spikes etc.
Optimal for battery powered is dont use PLL. Last question is how big capacitors is used on power source ?
Showed 4,7uF is very small.
And how is your setup options bytes for BOR level ?
2026-01-29 6:26 AM
2026-01-29 8:08 AM
50mA batt is how ? Read BOR setup from MCU , is irelevant if your code modify or not...
2026-01-29 8:19 AM
@daniaoday wrote:A small 50mA battery, a solar panel...
Do you mean 50mAh ?
What technology/chemistry ?
Presumably charged by the solar panel ?
2026-01-29 8:26 AM - edited 2026-01-29 8:34 AM
The device requires battery power.
This is the system block diagram. The LDO_EN signal can be considered as already enabled.
An MPPT control IC refers to an integrated circuit similar to the BQ25570RGRR.
I’ll perform unified tests to read the BOR status, RCC_CSR register, and Flash contents tomorrow. Right now, the device is with other colleagues for analysis.
2026-01-29 8:40 AM