an error occured after sending a dfu end of download request
We have the STM32MP157 EV1 Board, build our own yocto images (using the st layers) and are able to flash the images into emmc using STM32_Programmer_CLI.exe. Everything works great.
Now we received our first custom boards with the same STM32MP157 Chip and the same workflow does not work anymore.
STM32_Programmer_CLI.exe -c port=USB1 -w .\FlashLayout_emmc_stm32mp157f-cubemx_xmaster5-mx-optee.tsv -vb 3
Memory Programming ...
Opening and parsing file: debug-tf-a-stm32mp157f-cubemx_xmaster5-mx-usb.stm32
File : debug-tf-a-stm32mp157f-cubemx_xmaster5-mx-usb.stm32
Size : 220.50 KB
Partition ID : 0x01
Download in Progress:
Size : 225788 Bytes
[... whole lot of output ...]
DFU status = 0 : OK
DFU state = 4 : dfuDNBUSY
bwPollTimeout = 1
DFU status = 0 : OK
DFU state = 5 : dfuDNLOAD-IDLE
bwPollTimeout = 1
Segment[0] downloaded successfully
File download complete
Time elapsed during download operation: 00:00:03.477
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
libusb get status error [-9] : LIBUSB_ERROR_PIPE
an error occured after sending a dfu end of download request
Status: errUNKNOWN, State: dfuERROR
Error: Start operation failed at partition 0x01
Error: TSV flashing service failedIt seems like the programmer can upload the first stage boot loader into the MPUs SRAM but is not able to run it.
We have no ideas left why it does not run. Especially as it is fine on the EV1. Can anyone give us a clue where to look or what we could try?
