STM32F100 Flash write fails

Status
Not open for further replies.

akshada

Member level 3
Joined
Jun 29, 2010
Messages
67
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
india
Activity points
1,746
I an trying to write into flash. i can write a few bytes but after that the writing fails.what should i do in that case?should i retry writing for that particular address for say 3 times. for rewriting i will have to erase and than try rewriting to the same address again. but i am not sure whether i'll be able to erase that particular address in between writing. please suggest.


thanks in advance..
 

but i need it for flash. while writing in a page,if at any point it failed to write can i erase that particular address and retry again?

thanks for the reply
 

Your question seem related to writing internal flash and I link to the related ST application note.
If have you some issue to writing into a external flash memory, please give more info to get some help.
 

yes it is related to internal flash
 

Well,
If for any reason you fail to write you can:
Reading in your target address: if have all bit=1 then you can retry to write.
If some bit is already cleared , you must before erase the entire page.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…