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-02-02 8:25 AM
@TDK wrote:The drop on the 3.3V line also doesn't look like it's caused by a flash operation.
Could be caused by the 4G module, though ?
@daniaoday Maybe the problem occurs when a Flash update happens to coincide with the "dip" ?
Also 4G comms could cause a lot of RF (and maybe other) noise ...
What is the signal level like on the sites where these things are failing? Remember that 4G can take more current and/or for longer when coverage is poor ...
2026-02-03 7:25 AM
Also 4G comms could cause a lot of RF (and maybe other) noise ... --->
Yes, and according to the code logic, the 4G communication and Flash write operations are very likely happening concurrently.
------------------------------------------------------------
To make it easier for others to read, I've updated some key information in the body section for everyone's reference.
2026-02-03 7:27 AM
The drop on the 3.3V line also doesn't look like it's caused by a flash operation.
-------------------------------------------
To make it easier for others to read, I've updated some key information in the body section for everyone's reference.
2026-02-03 7:51 AM
@daniaoday wrote:Next Steps:
- Redesign the power circuit: Replace the current LDO with one capable of handling higher peak currents, then conduct further testing.
So is the same LDO currently powering both microcontroller and 4G module?
Might be better to separate them?
Some cellular modules car run direct off a lithium battery...
Also add some capacitance to keep the microcontroller supply up, separate from the 4G module.
2026-02-03 8:08 AM
Yes, the power supply for the 4G module and the MCU should be separated—most likely, the 4G module will use a dedicated LDO or MOSFET for power delivery.