K70 flash Swap Indicator Address

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

K70 flash Swap Indicator Address

ソリューションへジャンプ
1,143件の閲覧回数
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 解決策
899件の閲覧回数
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 返信
900件の閲覧回数
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 件の賞賛
返信