On Thu, Jul 19, 2012 at 7:39 PM, Peter Stuge <[email protected]> wrote:
> Andreas Fritiofson wrote:
>> stm32f2x otp enable
>
> This is a very good idea.
>
>
>> flash write flash_and_otp.elf
>> stm32f2x otp disable
>
> But the disable is redundant after having written once.

Not if you want to do

stm32f2x otp enable
flash write flash_and_otp.elf
flash write secret_key.bin 0x1fff7900
flash fillb 0x1fff7980 0x00 128
stm32f2x otp disable

The enable flag should probably autoreset *sometime* but I would have
to read the code to determine what's a reasonable point or event that
can be detected from the flash driver. I'll leave to Laurent to make a
suggestion. Having a possibility to manually disable it seems like a
good idea.

/Andreas

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to