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?
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
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.
Let me know if this is helpful, if you have more questions do not hesitate to ask me.
Best regards,
Omar
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?
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