Flash Swap supported device revisions

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

Flash Swap supported device revisions

Jump to solution
1,017 Views
pavelst
Contributor II

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

Labels (1)
Tags (3)
0 Kudos
Reply
1 Solution
846 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
3 Replies
847 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply
846 Views
pavelst
Contributor II

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

0 Kudos
Reply
846 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply