AnsweredAssumed Answered

Self programming, where is the half word to be programmed put?

Question asked by Wood.Robert on Mar 29, 2012
Latest reply on Mar 30, 2012 by alokm
I am putting together a little self-programming bootloader. It looks to me like you program two bytes at a time, by putting the address in to the FLASH_AR and setting bit 0 in the FLASH_CR register. The manual doesn't seem to tell you where to put the bytes to be programmed. I suppose it could be bits 25-10 in the FLASH_OBR as that says Data1 and Data 0.

If that is the case is Byte 1 the byte to go in the address in FLASH_CR+1 and Byte 0 the byte to go in FLASH_CR?

Thanks!

Outcomes