Skip to main content
JPark.20
Associate II
April 21, 2021
Solved

Error: failed to download Segment[0]

  • April 21, 2021
  • 1 reply
  • 2541 views

HI, ST

Im trying to fw update using MFC Tool, STM32_Programmer_CLI.exe.

first, i checked that the fw download operation was completed using Terminal.

so, I makeed the mfc tool in the way the terminal works in the background and checked the fw download works, but it doesn't work well.

this is the output on Debug message(using TRACE()):

[command : STM32_Programmer_CLI.exe -c port=usb1 -d C:\TEST\TEST.bin 0x08000000]

​   -------------------------------------------------------------------

            STM32CubeProgrammer v2.5.0          

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

USB speed  : Full Speed (12MBit/s)

Manuf. ID  : STMicroelectronics

Product ID : STM32 BOOTLOADER

SN     : 205530724352

FW version : 0x011a

Device ID  : 0x0470

Device name : STM32L4Rxxx/STM32L4Sxxx

Flash size : 2 MBytes (default)

Device type : MCU

Device CPU : Cortex-M4

Memory Programming ...

Opening and parsing file: TEST.bin

 File     : TEST.bin

 Size     : 645823 Bytes

 Address    : 0x80000000 

Erasing memory corresponding to segment 0:

Not flash Memory : No erase done

Download in Progress:

 0%

Error: failed to download Segment[0]

Error: failed to download the File

​---------------------------------------------------------------------------------------------------------------------------------------

it doesn't seem to be working from erasing memory before updating. (likewise, '--skipperase')

I appeciate any comment or suggestions

thanks you!!​

This topic has been closed for replies.
Best answer by Pavel A.

Indeed, 0x80000000 is not flash memory (should it be 0x08000000 ?)

--pa

1 reply

Pavel A.
Pavel A.Best answer
Super User
April 21, 2021

Indeed, 0x80000000 is not flash memory (should it be 0x08000000 ?)

--pa

JPark.20
JPark.20Author
Associate II
April 22, 2021

yes! im fool!!!!!!!

thanks you Pavel!!!