Hi Nordic,
I am trying to figure out the relation between a certain page number (say, 0xFE) and the group of addresses that it contains. How can I get this relation?
Thanks!
Hi Nordic,
I am trying to figure out the relation between a certain page number (say, 0xFE) and the group of addresses that it contains. How can I get this relation?
Thanks!
All values in decimal.
If the page size is Y bytes then Page number X will contain all the addresses from
X * Y
to ((X+1) * Y )- 1
inversely
address Z belongs to Page number Z/Y
which is an integer (equals 0 if Z < Y)
If in this case (nRF51422), PAGE_SIZE = 1024 (0x400), page 0xFE would have the addresses from 0x3F800 to 0x3FBFF, correct?
That is correct