cancel
Showing results for 
Search instead for 
Did you mean: 

Erase: Failed Error: Flash driver function execute error how to solve this error? sorry for my english

knight master
Associate II
Posted on June 14, 2017 at 16:29

hallo everyone,

i was  doing program flash write protection i run the program first time it get flash protected .

now i am cant able to  download any program it shows me 

    Erase: Failed

     Error: Flash driver function execute error.

I have check in stm utility also  i tried to erase flash chip 

but cant able to do it says 

some flash pages are write protected 

how to solve this problem ?

please help!!

#flash-writing #flash-memory-read-protection #write-flash-memory-pgerr-error
3 REPLIES 3
Posted on June 14, 2017 at 19:46

What part specifically? What did you do exactly?

You want to try and connect to the part and do a Mass Erase. Try also with BOOT0 pulled high.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 15, 2017 at 03:20

I was working on srm32f407 discovery board in coocox .

I was doing write protection program, after first run I want to disable the write protection  so I download code in board but  error is coming flash drive exicute error.

First thing I am not able doaload my code in board so programing wont help me . 

So I was using STM  st- utility  ,I can erase  chip or sector but  while erasing it shows me  some pages are write protected so not able erase.

knight master
Associate II
Posted on June 22, 2017 at 10:58

hey guys i solved problem finaly,in st -utility option bytes option is there using that we can make the disable the flash protection after that erase sectors .