Flash Swap supported device revisions

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Flash Swap supported device revisions

跳至解决方案
973 次查看
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

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
802 次查看
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 项奖励
回复
3 回复数
803 次查看
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 项奖励
回复
802 次查看
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 项奖励
回复
802 次查看
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 项奖励
回复