Error in CLOCK_SYS_GetBusClockFreq() SDK function on K64F when running max clock config.

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

Error in CLOCK_SYS_GetBusClockFreq() SDK function on K64F when running max clock config.

497 次查看
obi_kwiet
Contributor I

I am using the K64F with KSDK 1.3.

By inserting the line:

#define CLOCK_SETUP     1u

into the system_MK64F12.h file I have configured the chip to run the pre-configured "Maximum achievable clock frequency configuration".

 

Unfortunately, this breaks the the functions that retrieve clock speeds, for example CLOCK_SYS_GetBusClockFreq(). It always returns zero. I debugged a little, and found that it was returning the value of g_xtal0ClkFreq which is also zero.

I can workaround by hard coding the what I know the bus frequency to be, but it's not a preferred solution. Is this an error in the SDK? The function documentation didn't say anything relevant to this issue.

 

Thanks,

 

Seth

标签 (1)
标记 (3)
0 项奖励
回复
0 回复数