STM32CubeProgrammer with STLINK-V3SET fails to program STM32L4P5ZGT6P about 90% of time
I've spend a lot of time on this, and I am out of ideas.
I'm a test engineer, and I have a bunch of boards my customer wants programmed.
I run the command STM32_Programmer_CLI.exe -c port=swd -w "C:\FW.hex" -v -q but it will fail a lot. I wrote 90% in the title, but it's so odd, because once it works, which may take 10 attempts, it will most likely work again and again if I just keep running that command. I have tried multiple computers, and they all exhibit this behaviour. The customer says they always manage to program the boards with zero issue whatsoever.
It used to work just fine, when I programmed dozens of these boards last year. Maybe the programmer is broken. If I could just buy a new V3, I would, but nowhere is in stock. If anybody knows how I can get one, please give me advice. This is my only unit.
C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin>STM32_Programmer_CLI.exe -c port=swd -w "C:\FW.hex" -v -q
-------------------------------------------------------------------
STM32CubeProgrammer v2.10.0
-------------------------------------------------------------------
ST-LINK SN : 003300413438511134313939
ST-LINK FW : V3J7M2B4S1
Board : STLINK-V3SET
Voltage : 3.26V
Error: No STM32 target found!
2nd connect tentative with a lower frequency (8MHz)
ST-LINK SN : 003300413438511134313939
ST-LINK FW : V3J7M2B4S1
Board : STLINK-V3SET
Voltage : 3.27V
Error: No STM32 target found!
C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin>STM32_Programmer_CLI.exe -c port=swd -w "C:\FW.hex" -v -q
-------------------------------------------------------------------
STM32CubeProgrammer v2.10.0
-------------------------------------------------------------------
ST-LINK SN : 003300413438511134313939
ST-LINK FW : V3J7M2B4S1
Board : STLINK-V3SET
Voltage : 3.28V
SWD freq : 24000 KHz
Connect mode: Normal
Reset mode : Software reset
Device ID : 0x471
Revision ID : Rev Z
Device name : STM32L4Pxxx/STM32L4Qxxx
Flash size : 1 MBytes
Device type : MCU
Device CPU : Cortex-M4
BL Version : --
Debug in Low Power mode enabled
Memory Programming ...
Opening and parsing file: FW.hex
File : FW.hex
Size : 280.17 KB
Address : 0x08020000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [32 102]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:07.190
Verifying ...
Download verified successfully
C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin>Any advice would be HIGHLY appreciated.
