Flash memory Swap feature in K64/K63

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

Flash memory Swap feature in K64/K63

853 Views
darshan_shah1
Contributor II

Hi,

We are doing developement on K64 and it will be replaced with K63 in future.

We are currently implementing FOTA and I read many posts related to swap feature of flash memory. Yet I coudn't find project example related to this freature in MXUXpresso.

Please help me with this.

As per my understanding, for K64 we have 1MB flash which is divided in 2 p-flash blocks of 512bytes each. We will have last two block sectors as swap memory. Is this correct?

Labels (1)
Tags (2)
0 Kudos
3 Replies

735 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello

 

The Kinetis with 1MB has four p-flash blocks. You can find more detailed information about the flash swap in this application note: https://www.nxp.com/docs/en/application-note/AN4533.pdf 

pastedImage_2.png

Regarding the examples, we don’t have a specific example for K64/K63 devices however in the twr-k65 or twr-k60 SDK you can find a flash swap example you can use as a reference.

pastedImage_3.png

 

Let me know if this is helpful, if you have more questions do not hesitate to ask me.

Best regards,

Omar

0 Kudos

735 Views
darshan_shah1
Contributor II

Thanks for your reply. I will check the provided SDK. Just want to check is there any way to disable swap memory?

And which address is use by swap memory?

0 Kudos

735 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello Darshan Shah

 

To disable the flash swap please refer to this post K64 FTFE Operations Across PFlash Blocks 

 

In the Application Note 4533 under chapter 5, you can find detailed information to choose the flash swap indicator. https://www.nxp.com/docs/en/application-note/AN4533.pdf 

 

Let me know if this is helpful.

Best regards,

Omar

0 Kudos