Processor Expert sets wrong clock mode for K02FN64

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

Processor Expert sets wrong clock mode for K02FN64

844 次查看
scottm
Senior Contributor II

I'm using PEx with KSDK 1.3 on one project (yeah, I know, I'm working on moving off of it) and I discovered that it's not setting the MCG BLPE mode correctly.  If you choose BLPE in a clock configuration, it comes out as kMcgModePBE - which doesn't exist on this part.  The result is that when you try to switch to it, it looks up the appropriate transition from its matrix and gets the wrong answer, so it's perpetually stuck transitioning to FEI mode.

Here's a screenshot:

Screenshot 2017-11-25 17.01.37.png

My fix for now is to disable the 'read only' option for the structure that it generates and override the setting myself:

clkLowPower.mcgConfig.mcg_mode = kMcgModeBLPE;

The clock manager is such a large chunk of code that I'm planning to ditch it as soon as I have time, so I'm not too worried about this but I thought I'd warn anyone else who might come across it.

Scott

标记 (1)
0 项奖励
回复
1 回复

703 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello ,

Thanks for your sharing.

BR

Alice

0 项奖励
回复