cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, I am using STM32L4S9 with macronix Octa flash(MX25LM51245GXDI00) and I am trying to erase octa flash getting the error "Mass erase operation failed." is their any feedback from ST team We are using STM32CubeProgrammer 2.5.0 Thanks, Ashok

ab.7
Associate II
12 REPLIES 12

Isn't that a very old version of the software?

You mention a chip, is this on a custom board or one from ST?

Do you have a board appropriate external loader?​

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

Hello @ab.7​ ,

I advise you to try with latest release of STM32CubeProgrammer v2.9.0.

Then, please keep us informed about your update.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

I already used STM32CubeProgrammer V 2.9.0 and tested again. This did not change anything.

log for the cube programmer

 13:04:45 : RUNNING Program ... 

 13:04:45 :  Address:   : 0x08010000

 13:04:45 : Application is running, Please Hold on...

 13:04:45 : Start operation achieved successfully

 13:04:58 : MASS ERASE ... 

 13:09:58 : Error: Mass erase operation failed.Please verify flash protection

Thanks,

Ashok

1)Downloaded new version V.2.9.0 still facing the same issue

2 )Custom board

3) Yes

Attach a full log at Verbose 3 level.

Currently looks to have hit a 5 minute timeout​.

I​n your own experiments/testing of the BSP, how long does the full chip erase on the OCTOSPI usually take?

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

Attached the complete log file.

Thanks,

Ashok

Downloaded new version V.2.9.0 still facing the same issue

@Imen DAHMEN​ @Nawres GHARBI​ 

Can someone perhaps look at why the tool times out after 5 minutes for a memory that has a maximum mass erase time of 10.5 minutes? Typical is >3 min.

https://www.macronix.com/Lists/Datasheet/Attachments/7574/MX25L51245G,%203V,%20512Mb,%20v1.3.pdf

Perhaps need a better method for communicating these times, and making sure the loader is still alive/functioning. Perhaps a progress call-back, or a TestReady type call-in.

>>I​n your own experiments/testing of the BSP, how long does the full chip erase on the OCTOSPI usually take?

@ab.7​ ​ Any information on this? Testing your BSP (BOARD SUPPORT PACKAGE) in a normal application, outside of the loader to establish the performance and function of the chip on your board. This would be a normal part of custom board bring-up and validation tasks.

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

for full chip erase it's taking around 3 minutes.