RT117x SDK: Bug in CLOCK_GetPllFreq(kCLOCK_PllArm)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RT117x SDK: Bug in CLOCK_GetPllFreq(kCLOCK_PllArm)

Jump to solution
422 Views
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 Kudos
1 Solution
418 Views
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

View solution in original post

0 Kudos
1 Reply
419 Views
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 Kudos