STM32CubeProgrammer flash stm32mp2 issue
I installed the latest STM32CubeProgrammer in WSL on windows 11: the GUI has issue to load so I'm using the STM32_Programmer_CLI.
However the flashing would fail most of the time:
---- log output begin -----
....
Sector[0] downloaded successfully
...
File download complete
Time elapsed during download operation: 00:00:01.624
RUNNING Program ...
PartID: :0x01
DFU status = 0 : OK
DFU state = 5 : dfuDNLOAD-IDLE
bwPollTimeout = 1
sending a dfu end of download request
DFU status = 0 : OK
DFU state = 7 : dfuMANIFEST
bwPollTimeout = 1
DFU status = 0 : OK
DFU state = 2 : dfuIDLE
sending a set alternate setting request with index: 4
receiving packet
DFU status = 0 : OK
DFU state = 2 : dfuIDLE
UpLoading data
DFU status = 0 : OK
DFU state = 2 : dfuIDLE
data: 00ffffffff000000000....
Request detach value = 1
sending a set alternate setting request with index: 0
DFU status = 0 : OK
DFU state = 2 : dfuIDLE
Reconnecting the device ...
Reconnecting...
Error: Unable to reconnect the target device: time out expired
Error: Start operation failed at partition 0x01
Error: TSV flashing service failed
---- log output end ---
Currently I can only plug the microSD card to PC and flash the raw data. We cannot do this for production. Any idea why and how to fix this?
