question of MCUXpresso Config Tool 25.6's clock config function for lpc54114

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

question of MCUXpresso Config Tool 25.6's clock config function for lpc54114

610 Views
yhc123
Contributor III

Hi,

I am trying to configure the CPU clock of the LPC54114 using MCUXpresso Config Tools 25.6. I want to use FRO_96M as the CPU clock, so I first selected ‘Board BootClockFROHF96M’ in the CFG view. Then I set MAINCLKSELA to ‘FRO 96’ and MAINCLKSELB to ‘MAINCLKSELA’.

yhc123_0-1771337124762.png

However, I found that in the generated code (clock_config.c), the BOARD_InitBootClocks function still calls BOARD_BootClockPLL150M() instead of the modified BOARD_BootClockFROHF96M() function.

yhc123_2-1771337225508.png

Do I need to perform any additional configuration steps in the CFG view to ensure that the tool generates code using BOARD_BootClockFROHF96M()?

Labels (1)
0 Kudos
Reply
1 Reply

578 Views
luis_maravilla
NXP Employee
NXP Employee

Hello

Could you help us confirm that the "Update Code" option in Overview tab from Clocks Tools is enabled?

In [Functional group properties] in the toolbar, you can select BOARD_BootClockFROHF96M and enable the "Called by the default initialization function" so the BOARD_InitBootClocks initializes the BOARD_BootClockFROHF96M.

luis_maravilla_3-1771454748628.png

I notice in your first photo that when selecting the MAINCLKSELA it shows 48 MHz instead of the 96MHz; according to LPC5411x User manual [UM10914] Chapter 6 Table 153. FRO Control Register, bit 14 is fro_hf_output status bit, if read as 0, fro_hf is 48 MHz. If read as 1, fro_hf is 96 MHz.

Could you help us select in the clocks diagram the option FRO96 (fro_hf) and "Update Code".

 

luis_maravilla_6-1771454807527.png

Then in Registers tool search for SYSCON_FROCTRL>SEL to confirm its on 1 [96MHz]

 

luis_maravilla_7-1771454830271.png

Let me know your findings,

Best Regards, Luis

0 Kudos
Reply