STM32G031C6 problems during production programming
Dear all,
In the last weeks we have started the production process of a specific equipment, using the new microcontroller STM32G031C6 and unfortunettly we have faced some problems after the programming process.
The problem is that some devices were apparently corrupted by removing programmer cable before disconnecting the microcontroller (or because a bad connection) and there is no way to recover them.
This is the logging information of Jlink programmer:
Connecting ...
- Connecting via USB to probe/ programmer device 0
- Probe/ Programmer firmware: J-Link Ultra V4 compiled Sep 22 2022 15:00:10
- Probe/ Programmer S/N: 504502941
- Device "STM32G031C6" selected.
- Target interface speed: 4000 kHz (Fixed)
- VTarget = 3.323V
- InitTarget() start
- SWD selected. Executing JTAG -> SWD switching sequence.
- Error: Failed to initialized DAP.
- Can not attach to CPU. Trying connect under reset.
- SWD selected. Executing JTAG -> SWD switching sequence.
- Error: Failed to initialized DAP.
- Connecting to CPU via connect under reset failed.
- InitTarget() end
- Took 441ms -
- ERROR: Failed to connect. Could not establish a connection to target.
An important feature is that the source code is enabling Read Protection Level 1.
Other important information is that we are used to manufacturer other products using STM32F0 and STM32F4 and we never faced a situation like that.
We also have tried using JLink and ST-Link, but nothing change. Programming pins are exclusive (not used as GPIO) and once microcontroller is replaced, programming process is done without issues.
Anys suggestion?
Regards,
Tiago F. Borth
