Erase-All-Blocks is disabled or not when swap is initialized on FRDM-K64F board?

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

Erase-All-Blocks is disabled or not when swap is initialized on FRDM-K64F board?

Jump to solution
1,817 Views
haizhouli
Contributor III

I am testing flash swap features on FRDM-K64F board.  The SIM->SDID = 0x62001348


I assume the K64F is using K64 family, but the SDID shows it is in K62 family.  I remember K64 is one of K2, which I assume it is V2.x version, right?  

base on K60 rev 1.x rev2.x unique firmware

the silicon version is 1.1.

Then refer to New Kinetis Flash SWAP mechanism

Kinetis (100MHz devices)

Rev 1.0 – old swap method

Rev 1.1 – new swap method - more robust to power loss

•  When swap system is initialized Erase-All-Blocks is disabled

•  Swap system cannot go back to uninitialized

Rev 1.2

•  Same as rev 1.1 except slight change to initialization

Rev 1.4 – swap enhancement

• Erase-All-Blocks is not disabled when swap is initialized

• Swap system can be set back to uninitialized

     (using mass erase / erase-all-blocks command)

Now, I am quite confused. Does the K64F board is using a K62 mcu? I do not want to lock my mcu when I turn on the swap feature.

Thanks!

0 Kudos
Reply
1 Solution
1,309 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

There is an errata record about K64 chip SIM_SDID with incorrect info of sub_family.

More detailed info, please check below link:

e7534: SUBFAMID read back incorrect sub-family of the Kinetis device

http://cache.freescale.com/files/microcontrollers/doc/errata/KINETIS_1N83J.pdf

K64 is belong to K2 – The Next Generation of Kinetis , more detailed info please check below link:

http://otp.investis.com/clients/us/free_scale/usn/usnews-story.aspx?cid=896&newsid=16935

The SWAP function should works as expected with K64 product.

Wish it helps.


Have a great day,
best regards,

Ma Hui

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

View solution in original post

0 Kudos
Reply
3 Replies
1,310 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

There is an errata record about K64 chip SIM_SDID with incorrect info of sub_family.

More detailed info, please check below link:

e7534: SUBFAMID read back incorrect sub-family of the Kinetis device

http://cache.freescale.com/files/microcontrollers/doc/errata/KINETIS_1N83J.pdf

K64 is belong to K2 – The Next Generation of Kinetis , more detailed info please check below link:

http://otp.investis.com/clients/us/free_scale/usn/usnews-story.aspx?cid=896&newsid=16935

The SWAP function should works as expected with K64 product.

Wish it helps.


Have a great day,
best regards,

Ma Hui

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

0 Kudos
Reply
1,309 Views
haizhouli
Contributor III

非常感谢!

0 Kudos
Reply
1,309 Views
JeffLynne
Contributor II

My experiments with K64F chip shows that after enabling swap (it reports Ready state, after reboot) all erase functions, containing swap sector will fail. External erase trough J-Link also reports error erasing the sector with swap flags.

But if you secure the chip trough FSEC register, then J-Link triggers unsecure process which in place restores swap to uninitialized mode, so you get back full access to swap flash sector.

My K64F chip reports REVID=1, so rev1.1 of swap implementation.

0 Kudos
Reply