K70 flash Swap Indicator Address

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

K70 flash Swap Indicator Address

Jump to solution
634 Views
evalproj
Contributor I

I'm looking to implement a flash swap on a Kinetis K70.  AN4533 states that for the flash swap indicator "Any flash sector can be used except the first two sectors which contain the vectors and flash configuration fields". The K70 has 4KB erase sector size so the second sector begins at 0x1000. Can the flash swap indicator be located within the flash sector from 0x1000 to 0x2000 on a K70?

0 Kudos
1 Solution
390 Views
miduo
NXP Employee
NXP Employee

Hi,

Yes, you can use this address as the flash swap indicator address. For a 1 Meg part, the two 512K halves swap. So the lower half (blocks 0 & 1) will have one flash swap indicator and the upper half (blocks 2 & 3) will have the other flash swap indicator. The location is the same offset from the base of each half. The location is set by feeding in an address in the initialization option of the swap command. 

View solution in original post

0 Kudos
1 Reply
391 Views
miduo
NXP Employee
NXP Employee

Hi,

Yes, you can use this address as the flash swap indicator address. For a 1 Meg part, the two 512K halves swap. So the lower half (blocks 0 & 1) will have one flash swap indicator and the upper half (blocks 2 & 3) will have the other flash swap indicator. The location is the same offset from the base of each half. The location is set by feeding in an address in the initialization option of the swap command. 

0 Kudos