Hello,
We are using the Kinetis MK11DN512VMC5 MCU, and after some effort succeeded operating its flash swap feature.
On the way of achieving that we had to disable the following reference code revision check:
/* first check if silicon is rev 1.4 or later */
/* For rev 1.4 (4N30D), REVID = 3 */
rev = ((SIM_SDID & SIM_SDID_REVID(0xF))>>SIM_SDID_REVID_SHIFT);
if(rev < 3)
{ /* old rev - don't swap */
printf("Old revision detected (%d)- Kinetis 100MHz mask rev id 4 or later required \n", rev);
goto QUIT;
}
Our chip is 50MHz, with SDID=0x1229, i.e. rev=1.
Why is the reference code checking for 100MHz devices only? Isn't it supposed to work in other devices as well with the two flash banks?
Since we already managed operating the swap feature at least in the first few tests, are we expected to have problems with it in other scenarios with our product?
Thank you,
Pavel
Solved! Go to Solution.
Hi Pavel,
In fact, the Kinetis 50MHz example code originate from Kinetis 100MHz product example code.
During the porting work, some obsolete code was still be kept there.
Sorry for that may bring any confusion.
Wish it helps.
best regards
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Pavel,
In fact, the Kinetis 50MHz example code originate from Kinetis 100MHz product example code.
During the porting work, some obsolete code was still be kept there.
Sorry for that may bring any confusion.
Wish it helps.
best regards
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Ma Hui,
Thank you for your reply!
Great to make sure that the flash swap in 50MHz is indeed good.
Then I guess that's also the reason that AN4533 doesn't mention the 50MHz devices well.
It would be nice if the AN4533 doc and its code would get updated for 50MHz devices too.
Thanks,
Pavel
Hi Pavel,
Kinetis 50MHz product do support SWAP feature.
Yes, the AN4533 document without update the Kinetis 50MHz info.
Wish it helps.
best regards
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------