cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer flash stm32mp2 issue

JQiao.1
Associate II

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?

1 REPLY 1
JQiao.1
Associate II

Serial output from mp2 as below:

NOTICE: Model: STMicroelectronics STM32MP257F-DK Discovery Board
NOTICE: Board: MB1605 Var1.0 Rev.C-01
NOTICE: Reset reason: Pin reset from NRST (0x2034)
INFO: PMIC2 version = 0x11
INFO: PMIC2 product ID = 0x20
INFO: FCONF: Reading TB_FW firmware configuration file from: 0xe011000
INFO: FCONF: Reading firmware configuration information for: stm32mp_fuse
INFO: FCONF: Reading firmware configuration information for: stm32mp_io
INFO: Using USB
INFO: Instance 2
INFO: Boot used partition fsbl1
NOTICE: BL2: v2.10-stm32mp2-r2.0(debug):lts-v2.10.13-dirty(b1f57509)
NOTICE: BL2: Built : 17:10:59, Feb 14 2025
INFO: EventBuffer0: BuffArea=e03f000 DmaAddr=0e03f000 CoherentMapAddr=0xe03f000
INFO: dwc3_set_dev_speed = HighSpeed
INFO: DFU USB START...
INFO: Event: Link Status Change : ON(0)
INFO: Event: Link Status Change : Early Suspend(5)
INFO: Event: Link Status Change : L2(3)
INFO: Event: Suspend
INFO: USB Suspend mode
INFO: Event: Device Reset
INFO: Event: Device Connection Done
INFO: dwc3_get_dev_speed = HighSpeed
INFO: Event: Link Status Change : ON(0)
INFO: Event: Link Status Change : Early Suspend(5)
INFO: Event: Link Status Change : L2(3)
INFO: Event: Suspend
INFO: USB Suspend mode
INFO: Event: Device Reset
INFO: Event: Device Connection Done
INFO: dwc3_get_dev_speed = HighSpeed
INFO: Event: Link Status Change : ON(0)