2025-11-15 11:07 AM
Hello,
Im having an issue with flashing of OpenSTLinux on STM32MP157F-DK2
-------------------------------------------------------------------
STM32CubeProgrammer v2.21.0
-------------------------------------------------------------------
USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
SN : 002C001F3133511735343431
DFU protocol: 1.1
Board : --
Device ID : 0x500
Device name : STM32MP15xx
Device type : MPU
Revision ID : --
Device CPU : Cortex-A7
Start Embedded Flashing service
Opening and parsing file: tf-a-stm32mp157f-dk2-optee-programmer-usb.stm32
Memory Programming ...
File : tf-a-stm32mp157f-dk2-optee-programmer-usb.stm32
Size : 220.41 KB
Partition ID : 0x01
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:07.952
RUNNING Program ...
PartID: :0x01
Start operation done successfully at partition 0x01
Opening and parsing file: fip-stm32mp157f-dk2-optee-programmer-usb.bin
Memory Programming ...
File : fip-stm32mp157f-dk2-optee-programmer-usb.bin
Size : 1.76 MB
Partition ID : 0x03
Download in Progress:
[============================ ] 56%
Error: failed to download Sector[0]
Error: failed to download the File
Error: Download partition 0x03 failed
Error: TSV flashing service failedIts happening on the most recent version of STM32MP1 OpenSTLinux Starter Package (v6.1.0) as well as STM32MP1 OpenSTLinux Distribution Package. It is also worth mentioning that the most recent version that I was able to successfully flash is Starter Package v5.0.0. Versions between v6.1.0 and v5.0.0 were failing on Partition ID: 0x10 (either userfs or rootfs). I have already tried like sugested in this post but no with no luck. Is this some known issue?
Thanks in advance
BR,
Aleksander
2025-11-15 11:18 AM
Here are also more verbose logs
20:16:30:002 : libusb get status error [-4] : LIBUSB_ERROR_NO_DEVICE
20:16:30:002 : Error during download get_status
20:16:30:002 : Error: failed to download Sector[0]
20:16:30:002 : Error: failed to download the File
20:16:30:017 : Error: Download partition 0x03 failed
20:16:30:037 : Error: TSV flashing service failed
20:16:30:825 : Disconnected from device.
2025-11-16 11:56 PM
Hi,
Did you use a Virtual Machine ?
There is a common issue when uBoot try to reconnect USB (in place of BootROM) and this new USB DFU is not correctly 'routed' to the VM (need to setup this in the VM).
Anyway, strange that behavior depend on Starter Package version.
Does it fail in the middle of the FIP download ?
Is it possible to get UART console log of the board (using the board STLINK USB VCP connector) ?
Could you try loading TSV for the stm32mp157c-dk2 board ?
Regards.
2025-11-17 3:05 AM - edited 2025-11-17 3:36 AM
Hello,
Thanks for your response. Im not using VM nor WSL.
@PatrickF wrote:Does it fail in the middle of the FIP download ?
Yes, it fails at 56% as shown in the logs from my initial post.
@PatrickF wrote:Is it possible to get UART console log of the board (using the board STLINK USB VCP connector) ?
Logs stop there as the board is not booting to U-Boot
NOTICE: CPU: STM32MP157FAC Rev.Z
NOTICE: Model: STMicroelectronics STM32MP157F-DK2 Discovery Board
NOTICE: Board: MB1272 Var4.0 Rev.C-03
INFO: PMIC version = 0x21
NOTICE: Reset reason (0x14):
INFO: Pad Reset from NRST
INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000
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-stm32mp1-r2.0(debug):lts-v2.10.13-dirty(b1f57509)
NOTICE: BL2: Built : 17:10:59, Feb 14 2025
INFO: BL2: Doing platform setup
INFO: RAM: DDR3-DDR3L 16bits 533000kHz
INFO: Memory size = 0x20000000 (512 MB)
INFO: DFU USB START...
@PatrickF wrote:Could you try loading TSV for the stm32mp157c-dk2 board ?
It is resulting in the same STM32CubeProgrammer logs as well as the same UART output
NOTICE: CPU: STM32MP157FAC Rev.Z
NOTICE: Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
NOTICE: Board: MB1272 Var4.0 Rev.C-03
INFO: PMIC version = 0x21
NOTICE: Reset reason (0x114):
INFO: IWDG1 Reset (rst_iwdg1)
INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000
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-stm32mp1-r2.0(debug):lts-v2.10.13-dirty(b1f57509)
NOTICE: BL2: Built : 17:10:59, Feb 14 2025
INFO: BL2: Doing platform setup
INFO: RAM: DDR3-DDR3L 16bits 533000kHz
INFO: Memory size = 0x20000000 (512 MB)
INFO: DFU USB START...
2025-11-17 4:50 AM
Hi @xmisgu
CubeProg 2.21 is the very latest version published last week.
Can you make a try with previous 2.20 ?
Thanks
Olivier
2025-11-17 5:29 AM
Hi,
I have checked versions 2.20 to 2.18 all with the exact same result as mentioned above