Skip to main content
Visitor II
July 30, 2024
Solved

stm32g0b1 dual flash bank address ambiguity

  • July 30, 2024
  • 1 reply
  • 959 views

Hi

i have STM32G0B1KE

i was configuring the cube-eeprom-v7 emulation to use the last two pages from bank2 to store some configuration.

when i came to set `START_PAGE_ADDRESS` i need the address of the second last page.

reading in the 'Table 11. Flash memory organization for 512 Kbytes dual-bank devices' in RM0444 Rev 5  I see that the last page start  address is 0x0807F804 , is this correct or it should be 0x0807F800?

because the last page size is  slightly less than 2K in size and since i need the second last address i usually subtract  0x800 from the last address, so what is the address for the second last page? is it  0x0807F004 or 0x0807F000 ?Screenshot from 2024-07-30 08-24-28.png

    This topic has been closed for replies.
    Best answer by TDK

    It's a clear typo. Should be 0x0807F800 which means the second to last page starts at 0x0807F000.

     

    1 reply

    TDKAnswer
    Super User
    July 30, 2024

    It's a clear typo. Should be 0x0807F800 which means the second to last page starts at 0x0807F000.