SIM Clock Config Error

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

SIM Clock Config Error

跳至解决方案
4,003 次查看
nicholas2000
Contributor I

Kinetis Microcontrollers 

Hello, I am using the MKS20FN128VLL12 micro controller for a new project. I have not added any source code yet to the project, I have only configured the pins and clocks.

When I attempt to configure the clock in MCG Mode: PEE and then update the generated code I receive the following errors:

../board/clock_config.c:140:10: error: 'sim_clock_config_t' {aka 'const struct _sim_clock_config'} has no member named 'pllFllFrac'
140 | .pllFllFrac = 0, /* PLLFLLSEL clock divider fraction: multiplied by 1 */
| ^~~~~~~~~~

and,

../board/clock_config.c:139:10: error: 'sim_clock_config_t' {aka 'const struct _sim_clock_config'} has no member named 'pllFllDiv'; did you mean 'pllFllSel'?
139 | .pllFllDiv = 0, /* PLLFLLSEL clock divider divisor: divided by 1 */
| ^~~~~~~~~
| pllFllSel

The only work around was to manually delete the lines of code to avoid any errors when building the code. Is there anyway to manually set these settings on the SIM clock?

Thanks,
Nicholas

标签 (1)
0 项奖励
回复
1 解答
3,994 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Nicholas,

Sorry for the inconvenience we bring you! 
Thank you for the report, I'll inform the SDK team about this.
You can add these two lines. This should be fixed in KSDK 2.5.0.

sim_clock_config_t.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

在原帖中查看解决方案

5 回复数
3,995 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Nicholas,

Sorry for the inconvenience we bring you! 
Thank you for the report, I'll inform the SDK team about this.
You can add these two lines. This should be fixed in KSDK 2.5.0.

sim_clock_config_t.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

3,972 次查看
nicholas2000
Contributor I

This worked well, thanks for the help Robin. Is there an ETA for when KSDK 2.5.0 will be released?

0 项奖励
回复
3,960 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

You are welcome.
Sorry to tell you that there is no ETA for when SDK_2_5_0_MKS20FN128xxx12 will be released.

0 项奖励
回复
3,990 次查看
myke_predko
Senior Contributor III

@Robin_Shen 

Is this an "SDK" or "KSDK" problem?  @nicholas2000 showed a picture of what looked like the MCUXpresso Clock Wizard - does the KSDK work with MCUXpresso?  

标记 (1)
3,986 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

It's SDK problem. I have reproduce this problem on MCUXpresso IDE with SDK_2_4_1_MKS20FN128xxx12.