SDK_2_16_000_FRDM-MCXA153 API(CLOCK_FROHFTrimConfig()) Bug

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

SDK_2_16_000_FRDM-MCXA153 API(CLOCK_FROHFTrimConfig()) Bug

207件の閲覧回数
lmst-mcu
Contributor I

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

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

138件の閲覧回数
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 件の賞賛
返信

126件の閲覧回数
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 件の賞賛
返信

104件の閲覧回数
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 件の賞賛
返信