Skip to main content
MMARI.1
Senior II
July 19, 2025
Solved

Cubeprogrammer not connecting QSPI

  • July 19, 2025
  • 2 replies
  • 1546 views

MMARI1_0-1752892919180.png

why v2 stlink (stm32h7 series original Nucleo Board  ) + cupeProgrammer not connecting with w25q128 flash(external loader) . 

MMARI1_1-1752893185436.png

 

external loader not working since from cube ide v18.0.0 has been released and recent version V19.0.0 having cubeMx qspi enable itself .

I was fine  with qspi +cube ide v17.0.0  and qspi+cube programmer + CLIVEONE stldr.

Even i have downgraded the cube ide again to v 17.0.0 and below version  the same work i carried out for cube programmer as well but nothing worked out .

this is problem of v2 stlink driver or something else ? .

 

 

Best answer by Tesla DeLorean

Trying to read 0x09000000 not 0x90000000 which is where the QSPI bank is situated.

NINE and 7x ZEROS

2 replies

Tesla DeLorean
Guru
July 22, 2025

Hard to debug with this level of detail.

Please specify exactly which STM2H7 you're using, and the pin configuration.

Get a log file with the Verbose Level 3 output

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
MMARI.1
MMARI.1Author
Senior II
July 24, 2025

hi,

i am using the stm32h723zgt6 .

pin configuration as follows : 

PF10- QSPI CLK

PB6- NCS

PF8- IO0

PF9- IO1

PF7- IO2

PF6- IO3

Verbosity level 3 :

07:31:34:476 : UR connection mode is defined with the HWrst reset mode
07:31:34:486 : UR connection mode is defined with the SWrst reset mode
07:31:34:540 : ST-LINK SN : 066DFF524881774867212011
07:31:34:540 : ST-LINK FW : V2J46M32
07:31:34:549 : Board : NUCLEO-F722ZE
07:31:34:549 : Voltage : 3.24V
07:31:34:574 : SWD freq : 4000 KHz
07:31:34:575 : Connect mode: Normal
07:31:34:575 : Reset mode : Software reset
07:31:34:578 : Device ID : 0x483
07:31:34:583 : Revision ID : Rev Z
07:31:34:605 : Buffer program...
07:31:34:606 : w ap 0 @0x580244F4 : 0x00000004 bytes, Data 0x00000002...
07:31:34:606 : Reading data...
07:31:34:608 : r ap 0 @0x58000528 0x00000004 bytes Data 0x00000001
07:31:34:608 : Buffer program...
07:31:34:610 : w ap 0 @0x580244F4 : 0x00000004 bytes, Data 0x00000002...
07:31:34:610 : Reading data...
07:31:34:611 : r ap 0 @0x58000528 0x00000004 bytes Data 0x00000001
07:31:34:612 : Reading data...
07:31:34:613 : r ap 0 @0x1FF1E880 0x00000004 bytes Data 0x00000400
07:31:34:613 : Database: Config 1 is active.
07:31:34:618 : flash loader C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin/FlashLoader/0x483.stldr is loaded
07:31:34:619 : Debug in Low Power mode is not supported for this device.
07:31:34:625 : Reading data...
07:31:34:629 : r ap 0 @0x1FF1E880 0x00000004 bytes Data 0x00000400
07:31:34:636 : r ap 0 @0x1FF1E7FE 0x00000001 bytes Data 0xFFFFFF93
07:31:35:035 : r ap 0 @0x1FF1E7FE 0x00000001 bytes Data 0xFFFFFF93
07:31:35:035 : Selected loader: C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin/ExternalLoader/CLIVEONE-W25Q128_STM32H72X-PF10-PB6-PF8-PF9-PF7-PF6 (1).stldr
07:31:35:035 : External loader C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin/ExternalLoader/CLIVEONE-W25Q128_STM32H72X-PF10-PB6-PF8-PF9-PF7-PF6 (1).stldr is unloaded
07:31:35:036 : Selected loader: C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin/ExternalLoader/CLIVEONE-W25Q128_STM32H72X-PF10-PB6-PF8-PF9-PF7-PF6 (1).stldr
07:31:35:036 : External loader C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin/ExternalLoader/CLIVEONE-W25Q128_STM32H72X-PF10-PB6-PF8-PF9-PF7-PF6 (1).stldr is loaded
07:31:35:038 : UPLOADING OPTION BYTES DATA ...
07:31:35:038 : Bank : 0x00
07:31:35:038 : Address : 0x5200201c
07:31:35:038 : Size : 92 Bytes
07:31:35:039 : Reading data...
07:31:35:040 : r ap 0 @0x5200201C 0x0000005C bytes Data 0x0306AAD0
07:31:35:043 : UPLOADING ...
07:31:35:043 : Size : 1024 Bytes
07:31:35:043 : Address : 0x9000000
07:31:35:043 : Read progress:
07:31:35:060 : Reading data...
07:31:35:060 : r ap 0 @0x09000000 0x00000400 bytes Data 0x0306AAD0
07:31:35:173 : r ap 0 @0x09000000 0x00000400 bytes Data 0x0306AAD0
07:31:35:173 : Error: Data read failed

 

 

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
July 24, 2025

Trying to read 0x09000000 not 0x90000000 which is where the QSPI bank is situated.

NINE and 7x ZEROS

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Associate
July 25, 2025

My custom external loader stopped working in version 2.18 as well. 

I created my own post about it before I found this one.  I did hope v2.19 would fix it but it did not.  Neither did v2.20.

I use the same Winbond QSPI Flash connected to STM32H743IIK through PB2-PB6-PF8-PF9-PF7-PF6.

My workaround is to stay with v2.17 until a newer Cube Programmer works again.

 

How did you finally make it work?

Is there a way to report this issue to the development team ?

Or, are there updated requirements for external loader design for new versions of Cube Programmer?  

Tesla DeLorean
Guru
July 25, 2025

I saw your other post  https://community.st.com/t5/stm32cubeprogrammer-mcus/stm32h743-custom-external-loader-fails-with-v2-18-and-up/td-p/825997

I'm not sure if they changed anything specific, also not sure of the best contact point for reporting issues, as the loaders are hard to debug/diagnose in any case, so the primary developers probably don't want to get roped into fixing bugs in user side code.

The newer versions didn't work on Windows 7, so frustration there with my development scratch box.

https://github.com/cturvey/stm32extldr/tree/main/h7_w25q128

https://github.com/cturvey/stm32extldr/blob/main/h7_w25q128/CLIVEONE-W25Q128_STM32H7XX-PB2-PB6-PF8-PF9-PF7-PF6.stldr

 

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
MMARI.1
MMARI.1Author
Senior II
July 26, 2025

hi @Tesla DeLorean 

My suspect started likewise bellow . 

cube mx 6.14.0 will come with cube ide cube ide v1.18.0 (***QSPI problem started***)

cube mx 6.14.1 will come with cube ide cube ide v1.18.1(***QSPI problem Continues***)

cube mx 6.15.0 will come with cube ide cube ide v1.19.0  (*** QSPI completely broken in Cube MX ***)

QSPI problem started from cube v1.18.0 onwards So,I have installed the cube mx 6.13.0 separately and imported further  into cube ide  v1.19.0  and created elf file tested with following .

QSPI just connect with Programmer via stm32h723zgt6 after QSPI address changes.

i able to  write  on QSPI Flash (w25q128)  visually and it's mapping on proper location. 

 

MMARI1_1-1753514958155.png

but nothing was written in flash when i reading Flash memory location .

MMARI1_2-1753515007154.png

 

I am using CLIVEONE stdlr external loader file