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

You may download either or both. I suppose they are very similar.

UM2488 is User manual for STM32H750B-DK, you may know dual 512M-bit NOR (U1+U2) or single MT25TL01G (U1) on your board with the document.

I made a bare-bone setup using https://github.com/STMicroelectronics/stm32-mt25ql512abb and setting QSPI Flash as specified in the touchgfx

Screenshot (26).png

Screenshot (27).pngI am trying to get the Flash Data but the debugger is going into hard_fault interrupt

void HardFault_Handler(void)

{

/* USER CODE BEGIN HardFault_IRQn 0 */

 

I was able to write to External Flash using STM32CUBE Programmer as shown

Screenshot (28).png

>>STM32H750B-DK uses dual MT25TL01G or MT25Q512?

You should be able to check by inspection.

The MT25TL01G contains two 512 Mb die side by side within the single 16-pin SOIC package, so functionally equivalent, but then only one part populated.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

I have MT25QL512 (2 PHYSICAL MEMORY) on the board.

>>Could You please specify how to remove block protection?

You'd read the Status Register in the Micron device(s), clear the BP bits, and then write them back. In this dual configuration the Status Register would be a pair of bytes, and the bits in each.

micron_512mb_block_protection.jpg

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

I made a bare-bone setup using https://github.com/STMicroelectronics/stm32-mt25ql512abb and setting QSPI Flash as specified in the touchgfx

ZExpo1_0-1697825909628.png

 

ZExpo1_1-1697825910254.png

 

I am trying to get the Flash Data but the debugger is going into hard_fault interrupt

void HardFault_Handler(void)

{

/* USER CODE BEGIN HardFault_IRQn 0 */

 

this shows the nor flash not protected (8387 readout)? You may double check by writing different content and resetting the board.

I have double checked that I am available to write data on the external flash, starting address is 0x900000 and what is the ending address for flash so I can write the full flash check .