cancel
Showing results for 
Search instead for 
Did you mean: 

Error: failed to download Segment[0]

GMate
Associate

Hallo,

Im trying to flash an image (st-example-image-qt-openstlinux-eglfs-stm32mp1), bu it fails on partition 0x23

this is the output on Terminal:

giomate@giolaptop:~/Development/STM32/MP15/Distribution/openstlinux/build-openstlinuxeglfs-stm32mp1/tmp-glibc/deploy/images/stm32mp2/stm32mp1$ STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-example-image-qt/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv -log

   -------------------------------------------------------------------

            STM32CubeProgrammer v2.1.0          

   -------------------------------------------------------------------

Log output file:  /home/giomate/.STM32CubeProgrammer/trace.log

USB speed  : High Speed (480MBit/s)

Manuf. ID  : STMicroelectronics

Product ID : USB download gadget@Device ID /0x500, @Revision ID /0x0000

SN     : 0030002C3338510939303435

FW version : 0x0110

Device ID  : 0x0500

Device name : STM32MPxxx

Device type : MPU

Device CPU : Cortex-A7

Start Embedded Flashing service

Memory Programming ...

Opening and parsing file: st-example-image-qt-openstlinux-eglfs-stm32mp1.ext4

 File     : st-example-image-qt-openstlinux-eglfs-stm32mp1.ext4

 Size     : 1086306 KBytes

 Partition ID : 0x23 

Download in Progress:

[===================================        ] 70% 

Error: failed to download Segment[0]

Error: failed to download the File

Time elapsed during download operation: 00:14:00.737

Error: Download partition 0x23 failed

Error: TSV flashing service failed

I appeciate any comment or suggestions

1 ACCEPTED SOLUTION

Accepted Solutions
GMate
Associate

Yeap, it was the sizes of the roofs partition

View solution in original post

3 REPLIES 3
PatrickF
ST Employee

Probably linked to that issue (assigned size/offset in Flashlayout too small for your image) https://community.st.com/s/question/0D50X0000B7Ykl5SQC/getting-failure-while-compiling-qtwebkit-for-yocto

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
GMate
Associate

Yeap, it was the sizes of the roofs partition

Ruben_2025
Associate

 

STMicroelectronics ST-LINK GDB server. Version 7.8.0

Copyright (c) 2024, STMicroelectronics. All rights reserved.

 

Starting server with the following options:

Persistent Mode : Disabled

Logging Level : 1

Listen Port Number : 61234

Status Refresh Delay : 15s

Verbose Mode : Disabled

SWD Debug : Enabled

InitWhile : Enabled

 

Waiting for debugger connection...

Debugger connected

Waiting for debugger connection...

Debugger connected

Waiting for debugger connection...

-------------------------------------------------------------------

STM32CubeProgrammer v2.17.0

-------------------------------------------------------------------

 

 

 

Log output file: C:\Users\rlv\AppData\Local\Temp\STM32CubeProgrammer_a26804.log

ST-LINK SN : "

ST-LINK FW : V2J45S7

Board : --

Voltage : 3.30V

SWD freq : 4000 KHz

Connect mode: Under Reset

Reset mode : Hardware reset

Device ID : 0x461

Revision ID : Rev 2.0

Device name : STM32L496xx/STM32L4A6xx

Flash size : 512 KBytes

Device type : MCU

Device CPU : Cortex-M4

BL Version : 0x93

Debug in Low Power mode enabled

 

 

 

Memory Programming ...

Opening and parsing file: ST-LINK_GDB_server_a26804.srec

File : ST-LINK_GDB_server_a26804.srec

Size : 299.71 KB

Address : 0x08000000

 

 

Erasing memory corresponding to segment 0:

Erasing internal memory sectors [0 277]

Download in Progress:

 

 

Error: failed to download Segment[0]

Error: failed to download the File

Encountered Error when opening C:\ST\STM32CubeIDE_1.14.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.400.202404281720\tools\bin\STM32_Programmer_CLI.exe

Error in STM32CubeProgrammer

Shutting down...

Exit.

 

Step 1: Full chip erase

Ruben_2025_0-1743054247727.png
 
Step 2: Starting Programming
Ruben_2025_1-1743054378930.png