Edgar Grimberg wrote:
>> The str7 write protection is a bit quirky as once set can only be removed
>> temporarily anyway - until the next reset.
> 
> I'm thinking more of this situation:
> 
> * I reset and try to write something to the flash
> * It will fail, since the protection is on.
> * I check the flash, with flash info 0, I see the protection on
> * I issue flash protect 0 0 last off
> * I check to see if the operation was OK, by looking at "flash info 0"
> * At this point, the information I see is invalid. If I don't trust
> OpenOCD, I just
> move on and write to flash.
> * If I trust OpenOCD, I start wasting time investigating what went wrong.
> 

I see what you are saying, but if the user runs the default script then 
the write protection will always be removed.

this assumes you are reseting with reset init.

Cheers
Spen
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to