K70 swap indicator

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

K70 swap indicator

781件の閲覧回数
evalproj
Contributor I

I'm trying to determine the flash swap indicator address previously set within a Kinetis K70. From reading the data sheet I'm not clear how this is read and I've seen some posts that indicate there may be errors in these sections.   If I do a FTFE Read Resource at address 0x20000 with a Resource Select Code of 0x00 it looks like the Swap IFR information is returned as :

Swap Enable Word =  ( ( FTFE_FCCOB4 << 8 ) | FTFE_FCCOB5 )

Swap Indicator Address  =  ( ( ( FTFE_FCCOB6 << 8 ) | FTFE_FCCOB7 ) << 4 )

Is this the proper way to determine any existing flash swap indicator address in a Kinetis K70?

ラベル(1)
0 件の賞賛
返信
1 返信

656件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi,

After initialize the Swap system, the swap indicator address(shifted with bits[3:0] removed ) will be programmed into the IFR Swap Field, and the swap enable word will be programmed to 0x0000.

So the it's a proper way to get the swap indicator address by executing the Read Source command.
Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信