cancel
Showing results for 
Search instead for 
Did you mean: 

Flash ReadOut Protection Problem

jki79ros81
Associate II
Posted on November 07, 2008 at 02:49

Flash ReadOut Protection Problem

15 REPLIES 15
jki79ros81
Associate II
Posted on May 17, 2011 at 12:49

Oh, good friend, heavelove!

Thank you very much for your continuos help.

I tried to erase by using ISP (both eispV02 ,eispV04), but it is fail in connecting.

The error message is ''Time over, not able to connect.''

Is there other method?

Please help to a finish.

I am sorry for giving you trouble.

[ This message was edited by: jki79ros81 on 03-11-2008 14:29 ]

jilisegiar
Associate II
Posted on May 17, 2011 at 12:49

Try to use the STM32 flash loader.

http://www.st.com/mcu/modules.php?name=mcu&file=familiesdocs&FAM=110#Software - PC

jki79ros81
Associate II
Posted on May 17, 2011 at 12:49

Dear jilisegiar, thank you for your response.

I tried to use it, but occur error ''No response from the target, the Bootloader can not be started. ....''.

Please help me.

heavelove1
Associate II
Posted on May 17, 2011 at 12:49

Before use ISP, the Bootloader inside stm32f must run first.

See AN2606 to find out how to assert BOOT0 and BOOT1.

Cheers!

jki79ros81
Associate II
Posted on May 17, 2011 at 12:49

Dear heavelove, thank you very much.

I finally succeed.

Thank you from my heart.

There is a question.

If I set read-out protect the flash, then my code not work.

In datasheet say follow.

''Once the protection byte has been programmed to a value:

Main Flash memory read access is not allowed except for the user code (when booting from main Flash memory itself with the debug mode not active).

....''

Why my code not work?

I am sorry.Please help me.

jki79ros81
Associate II
Posted on May 17, 2011 at 12:49

I set read-out protect falsh by FLASH_ReadOutProtection(ENABLE) ;

, then my code not work .

So i can't Un-protect it.

In datasheet say follow.

''Once the protection byte has been programmed to a value:

Main Flash memory read access is not allowed except for the user code (when booting from main Flash memory itself with the debug mode not active).

....''

Why my code not work?

I am sorry.Please help me.