Question
Self programming, where is the half word to be programmed put?
Posted on March 29, 2012 at 22:09
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!