2021-12-13 02:43 PM
Hello, I have made a custom external flash loader(.stldr) file for my STM32 based board and this file works great with ST Link Utility(Read, Write and Erase) are work fine and i can Program the board correctly. But when i try to use the created .stldr file by STM32CubeIDE the erasing process well done but when the downloading process gets start then "failed to download Segment[0]" error pups up.
Could any one help me with the problem?
MCU = STM32H743iit6
QSPI Flash = W25Q256
STMicroelectronics ST-LINK GDB server. Version 6.0.0
Copyright (c) 2021, 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.9.0-RC01
-------------------------------------------------------------------
ST-LINK SN : 48FF6D068366565223471581
ST-LINK FW : V2J39S7
Board : --
Voltage : 3.24V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x450
Revision ID : Rev V
Device name : STM32H7xx
Flash size : 2 MBytes
Device type : MCU
Device CPU : Cortex-M7
BL Version : 0x90
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a23188.srec
File : ST-LINK_GDB_server_a23188.srec
Size : 389352 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sector 0
Erasing memory corresponding to segment 1:
Erasing external memory sectors [0 3]
Download in Progress:
Error: failed to download Segment[0]
Error: failed to download the File
Shutting down...
Exit.
Solved! Go to Solution.
2022-08-04 03:30 AM
There's another thread discussing the replacement of the INTERNAL loader with one from the 2.6.0 era to resolve an issue like this.
I can't say I've needed it for my H7 loaders, but that might relate to my strategy.
I'll get you a cite when I'm at a computer. Look at post history for @N. SANTINI
2022-08-04 04:21 AM
https://community.st.com/s/question/0D53W00001cIHMQSA4/external-loader-fails-to-download
The loaders I've been building are posted here
https://github.com/cturvey/stm32extldr
2022-08-29 11:06 PM
Ok, Thnx for suggestions!