cancel
Showing results for 
Search instead for 
Did you mean: 

Extrenal Loader error: failed to erase memory for STM32H50B DK Board

NKuma.20
Associate II

There is this error which I have encountered while accessing the QSPI external flash laoder.

I had followed the below link for building up the .stldr file:

https://github.com/STMicroelectronics/stm32-external-loader/tree/contrib/Demo_Project

Now when I'm using STM32CubeProgrammer to upload a .bin file, I'm getting the following message:

12:26:04 : STM32CubeProgrammer API v2.17.0 | Windows-64Bits
12:26:09 : UR connection mode is defined with the HWrst reset mode
12:26:09 : ST-LINK SN : 004300493137511033333639
12:26:09 : ST-LINK FW : V3J10M3
12:26:09 : Board : STM32H750B-DK
12:26:09 : Voltage : 3.27V
12:26:09 : SWD freq : 8000 KHz
12:26:09 : Connect mode: Normal
12:26:09 : Reset mode : Software reset
12:26:09 : Device ID : 0x450
12:26:09 : Revision ID : Rev V
12:26:09 : Debug in Low Power mode is not supported for this device.
12:26:10 : UPLOADING OPTION BYTES DATA ...
12:26:10 : Bank : 0x00
12:26:10 : Address : 0x5200201c
12:26:10 : Size : 308 Bytes
12:26:10 : UPLOADING ...
12:26:10 : Size : 1024 Bytes
12:26:10 : Address : 0x8000000
12:26:10 : Read progress:
12:26:10 : Data read successfully
12:26:10 : Time elapsed during the read operation is: 00:00:00.004
12:26:43 : Memory Programming ...
12:26:43 : Opening and parsing file: testbinary1M.bin
12:26:43 : File : testbinary1M.bin
12:26:43 : Size : 1.13 MB
12:26:43 : Address : 0x90000000
12:26:43 : Erasing memory corresponding to segment 0:
12:26:43 : Erasing external memory sectors [0 18]
12:26:43 : Error: failed to erase memory
12:26:43 : Error: failed to erase memory

 

What could be the reason for this ? If anybody could help me on this.

Attaching the .ioc file for reference.

3 REPLIES 3
KDJEM.1
ST Employee

Hello @NKuma.20 ,

 

Could you please check the memory flash size, page size, dummy cycle...

Are you able to upload a .bin file using the available external loader in STM32CubeProgrammer without issue?

KDJEM1_0-1720425434886.png

I hope this help you.

Thank you.

Kaouthar

 

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Yes, I'm able to upload .bin file using the external loader available in Cube Programmer.

But the custom file which I created is giving us this issue.

KDJEM.1
ST Employee

Hello @NKuma.20 ,

 

Glad to know that you are able to upload .bin file using the external loader available in STM32CubeProgrammer.

I noted in the .ioc file that the flash size "23" is wrong and should be "27". Please check the dummy and page size.

I recommend you when create your customer loader to start with an available example like as MT25TL01G_STM32H743I-EVAL and to follow the steps shared in How to implement and use your own external flash l... - STMicroelectronics Community FAQ.

Could you please share the project for checking?   

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.