Hi Andreas, Spencer, Peter,

Thank you for your ideas.
- I added an additional bank for OTP
- I added a command to enable/disable OTP write commands for a specific bank 
(it is per bank basis for a finer granularity):
stm32f2x otp <bank#> enable|disable|show
- I could not figure out a way to "autoreset" the enable OTP write flag 
[Andreas' idea].

Here is patch (in attachment).

I did test the OTP with the following TCL commands:

telnet localhost 4444
flash banks
flash probe 0
flash probe 1
stm32f2x otp 1 show
stm32f2x otp 1 enable
stm32f2x otp 1 disable
flash info 1
flash erase_sector 1 0 1
stm32f2x mass_erase 1
stm32f2x otp 1 enable
flash write_bank 1 otp_img_test.bin 0
mdw 0x1fff7800 4
verify_image otp_img_test.bin 0x1fff7800

Laurent

Attachment: 0001-Added-OTP-One-Time-Programmable-memory-support-for-S.patch
Description: Binary data

------------------------------------------------------------------------------
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