Stm32L443 stable code loading problem
I’m using the STM32L443 in one of my products, and currently, there are around 2,500 units deployed in the field. I’ve been experiencing issues that I believe are related to the firmware programming process during production.
The product includes a seven-segment LCD. After programming the firmware and running tests, I noticed that some characters do not display correctly in certain menu screens. I’m confident this is not a hardware issue. Interestingly, when I reflash the firmware on the same board, everything starts working properly — the display shows the correct characters.
These are just the visible symptoms. I’ve also observed cases where the firmware seems to get stuck in a specific scenario. For example, there’s a routine that runs every 5 minutes. On the third iteration, the system hangs. Even after a power cycle, it always gets stuck at the same point. However, if I reflash the firmware, the issue disappears.
This makes me suspect that the firmware might not be properly programmed during the initial flashing in production. I’m using STM32CubeProgrammer with an ST-Link V2 to load the firmware, and I have the verify options enabled. After flashing, I also lock the code (read-out protection).
That said, I’m now unsure whether the firmware was correctly programmed on all units during production.
