2025-04-08 9:21 PM
Hi everyone, I am using STM32H745BIT6 and programming using W25Q128. I am trying to upload the code but always get an error at the last step.
STMicroelectronics ST-LINK GDB server. Version 7.10.0
Copyright (c) 2025, 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.19.0
-------------------------------------------------------------------
Log output file: C:\Users\hieua\AppData\Local\Temp\STM32CubeProgrammer_a22168.log
ST-Link Server is running on port : 7184
ST-LINK SN : 130019000D0000383036544E
ST-LINK FW : V2J46S7
Board : --
Voltage : 3.10V
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/M4
BL Version : 0x91
Opening and parsing file: ST-LINK_GDB_server_a22168.srec
Memory Programming...
File : ST-LINK_GDB_server_a22168.srec
Size : 4.98 KB
Address : 0x08100000
Erasing memory corresponding to sector 0:
Erasing internal memory sector 8
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:03.382
Verifying...
Download verified successfully
-------------------------------------------------------------------
STM32CubeProgrammer v2.19.0
-------------------------------------------------------------------
Log output file: C:\Users\hieua\AppData\Local\Temp\STM32CubeProgrammer_a22168.log
ST-Link Server is running on port : 7184
ST-LINK SN : 130019000D0000383036544E
ST-LINK FW : V2J46S7
Board : --
Voltage : 3.10V
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/M4
BL Version : 0x91
Opening and parsing file: ST-LINK_GDB_server_a22168.srec
Memory Programming...
File : ST-LINK_GDB_server_a22168.srec
Size : 185.59 KB
Address : 0x08000000
Erasing memory corresponding to sector 0:
Erasing internal memory sectors [0 1]
Erasing memory corresponding to sector 0:
Erasing external memory sector 0
Error: failed to erase memory
Error: failed to erase memory
Encountered Error when opening E:\STM32\IDE\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.2.100.202412061334\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Shutting down...
Exit.
I have referenced the build here: https://controllerstech.com/w25q-flash-series-part-10-qspi-ext-loader-in-h750/ and https://www.youtube.com/watch?v=XqCq0xtQmbI&list=PLnMKNibPkDnHIrq5BICcFhLsmJFI_ytvE&index=7
2025-04-08 9:38 PM
@NguyenAnhHieu_ You selected wrong stldr file. try to get correct external loader from https://github.com/cturvey/stm32extldr/blob/main GIT.
2025-04-08 9:50 PM
Thanks, but unfortunately when designing the hardware I chose a pin configuration that was completely different from the pre-made files. So I had to find a way to create the .stldr file