RT117x SDK: Bug in CLOCK_GetPllFreq(kCLOCK_PllArm)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

RT117x SDK: Bug in CLOCK_GetPllFreq(kCLOCK_PllArm)

ソリューションへジャンプ
706件の閲覧回数
udoeb
Contributor II

Hi,

I found an issue in CLOCK_GetPllFreq():

In case kCLOCK_PllArm the line:

  postDiv = (1UL << (postDiv + 1UL));

does not handle POST_DIV_SEL=3 correctly. The code should be fixed as follows:

  postDiv = (postDiv == 3) ? 1 : (1UL << (postDiv + 1UL));

See also register ARM_PLL_CTRL in the manual.

Thanks,
Udo

0 件の賞賛
返信
1 解決策
702件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @udoeb ,

   Thank you for your contribution.

   You are right!

  It is the SDK but, I will report to the SDK team directly, it will be fixed in the new version.

    Thanks again.

 

Best Regards,

kerry

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
703件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @udoeb ,

   Thank you for your contribution.

   You are right!

  It is the SDK but, I will report to the SDK team directly, it will be fixed in the new version.

    Thanks again.

 

Best Regards,

kerry

0 件の賞賛
返信