cancel
Showing results for 
Search instead for 
Did you mean: 

Flash page numbering in RM0444 and 0454 correct?

Andreas Bolsch
Lead II

Rev. 5 of those RMs introduced dual-bank devices. According to "3.3.1 FLASH memory organization" the page numbers in bank 2 start at 256, which seems to be very odd as the PNB field in FLASH_CR has 10 bits, so one would expect 1024 instead.

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

Hi @Andreas Bolsch​ ,

This is more than the device is having 256 pages which are sequential :

After performed a trial on G0B and in fact PNB is clamped at 0x7F.

0693W000007Dtz9QAC.jpgSo, if you wish to erase last page of the device (the 256th page), you must set PNB to 0x7F and BKER to ‘1’.

I highlighted this internally to update the reference manuals in the coming releases.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

2 REPLIES 2
Imen.D
ST Employee

Hello @Andreas Bolsch​ ,

Thanks for pointing out this error.

I am checking it internally and I will come back to you with update.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Imen.D
ST Employee

Hi @Andreas Bolsch​ ,

This is more than the device is having 256 pages which are sequential :

After performed a trial on G0B and in fact PNB is clamped at 0x7F.

0693W000007Dtz9QAC.jpgSo, if you wish to erase last page of the device (the 256th page), you must set PNB to 0x7F and BKER to ‘1’.

I highlighted this internally to update the reference manuals in the coming releases.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen