SDK_2_16_000_FRDM-MCXA153 API(CLOCK_FROHFTrimConfig()) Bug

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

SDK_2_16_000_FRDM-MCXA153 API(CLOCK_FROHFTrimConfig()) Bug

208 Views
lmst-mcu
Contributor I

0 is not written in FIRCCSR.LK, so the remaining bits cannot be modified.

Labels (1)
0 Kudos
Reply
3 Replies

139 Views
Alphabert_Liu
NXP Employee
NXP Employee

Dear @lmst-mcu ,

From the MCX A153 Reference Manual 22.6.3.1, we can find that FIRC normal configuration write 0 to FIRCCSR[LK] to unlock FIRCCSR.

屏幕截图 2024-07-24 182838.png

And I find that in my MCXA153 SDK 2.16 configuration, the register in fsl_clock.c has been successfully unlocked.

屏幕截图 2024-07-24 180919.png

Could you please tell me where the problem lies in your case?

Best Regard

Liu

0 Kudos
Reply

127 Views
lmst-mcu
Contributor I

Hi. @Alphabert_Liu 

Thank you for the response. 

Here is a screenshot of my file contents (full file attached), it seems that the LK bit is not cleared in this function.

lmstmcu_0-1721836955325.png

0 Kudos
Reply

105 Views
Alphabert_Liu
NXP Employee
NXP Employee

Hello @lmst-mcu ,

In my understanding, the default value of the LK bit is 0, and in the following code, the LK bit of this register is also set to 0.

    /* Set trim mode. */
    SCG0->FIRCCSR = (uint32_t)config.trimMode;

You can connect your development board and debug the demo from the SDK you are using. In the debug process, navigate to the FIRCCSR register located within SCG0 in the "Perapherals+" column value of the bit you are interested in.

屏幕截图 2024-07-25 112735.png

Best Regard

Liu

0 Kudos
Reply