From: Andreas F. <and...@gm...> - 2012-07-19 18:23:38
|
On Thu, Jul 19, 2012 at 7:39 PM, Peter Stuge <pe...@st...> 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 |