Skip to main content
Visitor II
September 6, 2023
Solved

STM32MP157C-DK2 fails to load system to SD

  • September 6, 2023
  • 3 replies
  • 2638 views

Good. I am trying to load the system to my stm32mp157c-dk2 using STM32CubeProgrammer software, but I get the same error when loading partition 13 every time. The error is as follows:

 

Error: failed to download Segment[0]
Error: failed to download the File
Error: Download partition 0x13 failed
Error: TSV flashing service failed

 

Here's the whole process:

 

magno@magno-Latitude-3380:~/Descargas/en.FLASH-stm32mp1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/stm32mp1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/images/stm32mp1$ STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv
 -------------------------------------------------------------------
 STM32CubeProgrammer v2.14.0 
 -------------------------------------------------------------------



USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
SN : 002B001F3438510538333630
DFU protocol: 1.1
Board : --
Device ID : 0x0500
Device name : STM32MP15xx
Device type : MPU
Revision ID : -- 
Device CPU : Cortex-A7

Start Embedded Flashing service



Memory Programming ...
Opening and parsing file: tf-a-stm32mp157c-dk2-usb.stm32
 File : tf-a-stm32mp157c-dk2-usb.stm32
 Size : 220,82 KB 
 Partition ID : 0x01 

Download in Progress:
[==================================================] 100% 

File download complete
Time elapsed during download operation: 00:00:02.894

RUNNING Program ... 
 PartID: :0x01 
Start operation done successfully at partition 0x01


Memory Programming ...
Opening and parsing file: fip-stm32mp157c-dk2-trusted.bin
 File : fip-stm32mp157c-dk2-trusted.bin
 Size : 1,14 MB 
 Partition ID : 0x03 

Download in Progress:
[==================================================] 100% 

File download complete
Time elapsed during download operation: 00:00:01.981

RUNNING Program ... 
 PartID: :0x03 

Reconnecting the device ...

USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : USB download gadget@Device ID /0x500, @Revision ID /0x2000, @Name /STM32MP157CAC Rev.B,
SN : 002B001F3438510538333630
DFU protocol: 1.1
Board : --
Device ID : 0x0500
Device name : STM32MP157CAC Rev.B
Device type : MPU
Device CPU : Cortex-A7
Start operation done successfully at partition 0x03

Flashlayout Programming ...
[==================================================] 100% 
Running Flashlayout Partition ...

Reconnecting the device ...

USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : USB download gadget@Device ID /0x500, @Revision ID /0x2000, @Name /STM32MP157CAC Rev.B,
SN : 002B001F3438510538333630
DFU protocol: 1.1
Board : --
Device ID : 0x0500
Device name : STM32MP157CAC Rev.B
Device type : MPU
Device CPU : Cortex-A7
Flashlayout partition started successfully


Memory Programming ...
Opening and parsing file: tf-a-stm32mp157c-dk2-sdcard.stm32
 File : tf-a-stm32mp157c-dk2-sdcard.stm32
 Size : 220,84 KB 
 Partition ID : 0x04 

Download in Progress:
[==================================================] 100% 

File download complete
Time elapsed during download operation: 00:00:00.133

RUNNING Program ... 
 PartID: :0x04 
Start operation done successfully at partition 0x04


Memory Programming ...
Opening and parsing file: tf-a-stm32mp157c-dk2-sdcard.stm32
 File : tf-a-stm32mp157c-dk2-sdcard.stm32
 Size : 220,84 KB 
 Partition ID : 0x05 

Download in Progress:
[==================================================] 100% 

File download complete
Time elapsed during download operation: 00:00:00.139

RUNNING Program ... 
 PartID: :0x05 
Start operation done successfully at partition 0x05


Memory Programming ...
Opening and parsing file: metadata.bin
 File : metadata.bin
 Size : 96,00 B 
 Partition ID : 0x06 

Download in Progress:
[==================================================] 100% 

File download complete
Time elapsed during download operation: 00:00:00.006

RUNNING Program ... 
 PartID: :0x06 
Start operation done successfully at partition 0x06


Memory Programming ...
Opening and parsing file: metadata.bin
 File : metadata.bin
 Size : 96,00 B 
 Partition ID : 0x07 

Download in Progress:
[==================================================] 100% 

File download complete
Time elapsed during download operation: 00:00:00.006

RUNNING Program ... 
 PartID: :0x07 
Start operation done successfully at partition 0x07


Memory Programming ...
Opening and parsing file: fip-stm32mp157c-dk2-trusted.bin
 File : fip-stm32mp157c-dk2-trusted.bin
 Size : 1,14 MB 
 Partition ID : 0x08 

Download in Progress:
[==================================================] 100% 

File download complete
Time elapsed during download operation: 00:00:00.831

RUNNING Program ... 
 PartID: :0x08 
Start operation done successfully at partition 0x08


Memory Programming ...
Opening and parsing file: st-image-bootfs-openstlinux-weston-stm32mp1.ext4
 File : st-image-bootfs-openstlinux-weston-stm32mp1.ext4
 Size : 64,00 MB 
 Partition ID : 0x10 

Download in Progress:
[==================================================] 100% 

File download complete
Time elapsed during download operation: 00:00:53.913

RUNNING Program ... 
 PartID: :0x10 
Start operation done successfully at partition 0x10


Memory Programming ...
Opening and parsing file: st-image-vendorfs-openstlinux-weston-stm32mp1.ext4
 File : st-image-vendorfs-openstlinux-weston-stm32mp1.ext4
 Size : 16,00 MB 
 Partition ID : 0x11 

Download in Progress:
[==================================================] 100% 

File download complete
Time elapsed during download operation: 00:00:12.524

RUNNING Program ... 
 PartID: :0x11 
Start operation done successfully at partition 0x11


Memory Programming ...
Opening and parsing file: st-image-weston-openstlinux-weston-stm32mp1.ext4
 File : st-image-weston-openstlinux-weston-stm32mp1.ext4
 Size : 575,66 MB 
 Partition ID : 0x12 

Download in Progress:
[==================================================] 100% 

File download complete
Time elapsed during download operation: 00:07:39.151

RUNNING Program ... 
 PartID: :0x12 
Start operation done successfully at partition 0x12


Memory Programming ...
Opening and parsing file: st-image-userfs-openstlinux-weston-stm32mp1.ext4
 File : st-image-userfs-openstlinux-weston-stm32mp1.ext4
 Size : 128,00 MB 
 Partition ID : 0x13 

Download in Progress:
[=== ] 6% 

Error: failed to download Segment[0]
Error: failed to download the File
Error: Download partition 0x13 failed
Error: TSV flashing service failed

 

Probe on different computers, with ubuntu and with windows 10, always the error is in the file 13. I tried downloading different versions of the system as well. Maybe I'm making a mistake, but I can't find it. Thank you

    This topic has been closed for replies.
    Best answer by Magnoacd

    I managed to flash the system on a 16GB SD memory, but I couldn't use a 32GB one. Maybe that was the problem. But it's solved, thanks.

    3 replies

    Technical Moderator
    September 7, 2023

    Hi,

     

    Could you try with FlashLayout_disco_stm32mp157c-dk2-deleteall.tsv before ?
    Did you try with another SD-Card ?
    Did you try with another power supply ?

    Did you tried with a more recent ecosystem (there is a v4.1.0 and a v5.0.0) ?
    https://www.st.com/en/embedded-software/stm32mp1starter.html#get-software

    Did you have a chance to look at UART console log if anything meaningful ?

    Regards.

    MagnoacdAuthor
    Visitor II
    September 7, 2023

    Hello. I tried to install the latest version of the ecosystem, and I got the same error as attached here. I also tried flashing FlashLayout_disco_stm32mp157c-dk2-deleteall.tsv, but at the end of the process the stm32 screen freezes on the 'ST life.augment' logo and the LD8 LED flashes blue.

     

    MagnoacdAuthorAnswer
    Visitor II
    October 7, 2023

    I managed to flash the system on a 16GB SD memory, but I couldn't use a 32GB one. Maybe that was the problem. But it's solved, thanks.