Hi thiagow,
Yes, flash swap functionality is available on MQX 4.1.1 for K64FN1M0M12.
This is just misunderstanding. You are right K64FN1M0M12 have physically 4 flash banks of 256 kB each.
Flash swap will cause switching two halves of program flash in memory map. So, after swap, banks 0 and 1 will be located at address 0x80000 and banks 2 and 3 will be located at address 0x00000.
So, data in bank 1 will stay untouched except last sector.
For proper functionality of flash swap (This swap feature enables the lower half of the program flash space to be operational while the upper half is being updated for future use.), you code have to fit inside 508kB = 1024kB/2 - 4k(for Flash swap indicator).
I hope it helps you.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------