2022-08-02 11:43 PM
How to write the register values using offset address in flash memory?what is the base address to consider for offset values?
2022-08-03 03:58 AM
It's the off the base address of the FLASH peripheral within the ARM's 4GB address space. Perhaps search source for FLASH or USART3 to find their address. Likely to be in DM or RM docs for part.
2022-08-03 07:50 AM
If FLASH register's offset[ex:FLASH_OPTR offset:0x020] refers from the address of Flash memory,writing the user code in flash memory starting address [0x08000000] will overwrite the existing flash registers data?
2022-08-03 08:18 AM
Just saw your other post. See reference manual RM0444 Rev 5:
0x1FFF 7800 - 0x1FFF 787F 128B Option bytes
0x0800 0000 - 0x0807 FFFF 512KB Main Flash memory
0x4002 2000 - 0x4002 23FF 1KB FLASH <-- register block
hth
KnarfB
2022-08-03 11:03 PM
Thanks for the reply.
So the flash registers use the AHB FLASH address[0x4002 2000] as the base address for read/write.I tried to read the flash registers using the base address of 0x40022000 through i2c.I received NACK.How to read and write flash registers using i2c programming?