cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Writing External Flash STM32H750B-DK

ZExpo.1
Senior

ST-LINK SN : 002F00134D46501420383832

ST-LINK FW : V3J12M3

Board : STLINK-V3MINIE

Voltage : 3.43V

SWD freq : 8000 KHz

Connect mode: Under Reset

Reset mode : Hardware reset

Device ID : 0x450

Revision ID : Rev V

Device name : STM32H7xx

Flash size : 128 KBytes

Device type : MCU

Device CPU : Cortex-M7

BL Version : 0x90

 

 

 

Memory Programming ...

Opening and parsing file: ST-LINK_GDB_server_a05624.srec

File : ST-LINK_GDB_server_a05624.srec

Size : 169.02 KB

Address : 0x08000000

 

 

Erasing memory corresponding to segment 0:

Erasing memory corresponding to segment 1:

Erasing external memory sectors [0 1]

Erasing memory corresponding to segment 2:

Erasing external memory sector 16

Download in Progress:

 

 

File download complete

Time elapsed during download operation: 00:00:10.115

 

 

 

Verifying ...

 

 

 

 

Error: Data mismatch found at address 0x90000003 (byte = 0x20 instead of 0x24)

 

 

Error: Download verification failed

 

 

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

Error in STM32CubeProgrammer

Shutting down...

Exit.

 

34 REPLIES 34
jiangfan
ST Employee

You may try to download and use the latest STM32CubeProgrammer v2.14.0 to see if the STM32H750B-DK is OK or not from hardware point of view.

Yes, I have tried that also, I re-installed everything from scratch now.

OK, be sure to enable the correct external loader: MT25TL01G_STM32H750B-DISCO for STM32CubeProgrammer to do the programming.

Clipboard.png

I have selected the Loader according to your specifications as shown
select EL.png

Now I format the Internal And External Memories accordingly as shown without any errors

Format External Memmory.pngFormating Internal Memory.pngNow i program the STM32H750B-DK With STM32CUBEIDE and get this message

error ide.png

You may try:

1) generate .hex file with STM32CUBEIDE

2) program the .hex file with STM32CubeProgrammer. You may get feedback if program is OK or not.

3) if step 2) OK, you may see if the .hex works as you expected

the purpose is to ensure your STM32H750B-DISCO is OK from hardware point of view.

I followed your steps and The System seems to be working perfectly fine.
I made a simple Blinky Project and it worked as expected.CONFIRM LOADER.png

Is there any way to test the external Flash? There are 2 Flash NOR Memory , Can we test it individually?

So, your board is good if the firmware is in internal flash only.

You may try to program the ST-LINK_GDB_server_a05624.srec (mentioned in your 1st post) with STM32CubeProgrammer:

1) program the .srec binary file with STM32CubeProgrammer. You may get feedback if program is OK or not.

2) if step 1) OK, you may see if the .srec works as you expected

the purpose is to ensure your STM32H750B-DISCO is OK from hardware point of view, especially the NOR flash starting from 0x90000000.

I am unable to find any .srec File in the touchgfx build Folder!

You may change setting to generate .hex file:

Clipboard01.gif