cancel
Showing results for 
Search instead for 
Did you mean: 

stm32g0b1 dual flash bank address ambiguity

encoder
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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

 

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

1 REPLY 1
TDK
Guru

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

 

If you feel a post has answered your question, please click "Accept as Solution".