K70 flash Swap Indicator Address

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

K70 flash Swap Indicator Address

跳至解决方案
1,135 次查看
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 项奖励
回复
1 解答
891 次查看
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 项奖励
回复
1 回复
892 次查看
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 项奖励
回复