SDK_2_16_000_FRDM-MCXA153 API(CLOCK_FROHFTrimConfig()) Bug

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

SDK_2_16_000_FRDM-MCXA153 API(CLOCK_FROHFTrimConfig()) Bug

703 次查看
lmst-mcu
Contributor I

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

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

634 次查看
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 项奖励
回复

622 次查看
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 项奖励
回复

600 次查看
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 项奖励
回复