<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPC MicrocontrollersのトピックRe: Setting LPCXpresso54102 CPU to 150 MHz</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-LPCXpresso54102-CPU-to-150-MHz/m-p/1357533#M46825</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;MRenshaw,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I use MCUXpresso IDE with clocks configuration tool , configure the CPU to 150M, based on led demo, it can work well, I attached it for you, you can refer to.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 03:55:34 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2021-10-19T03:55:34Z</dc:date>
    <item>
      <title>Setting LPCXpresso54102 CPU to 150 MHz</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-LPCXpresso54102-CPU-to-150-MHz/m-p/1357059#M46818</link>
      <description>&lt;P&gt;I've been trying to get an LPC54102 processor running at 150 MHz and have managed to leave a couple of boards in a un-programmable state (error: "Can't find debug component in ROM table" in Rowley CrossStudio).&lt;/P&gt;&lt;P&gt;I have tried both the code provided in the example projects in&amp;nbsp;SDK_2_6_1_LPCXpresso54102.zip and code generated by the MCUXpresso Config Tool.&lt;/P&gt;&lt;P&gt;This is what the tool generated code looked like:&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;#include "fsl_power.h"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;#include "fsl_clock.h"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;#include "clock_config.h"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;/* System clock frequency. */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;extern uint32_t SystemCoreClock;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;void BOARD_InitBootClocks(void)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;BOARD_BootClockPLL150M();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_AttachClk(kIRC12M_to_USART); /* attach 12 MHz clock to USART0 */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_EnableClock(kCLOCK_Usart0);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_EnableClock(kCLOCK_Usart3);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_EnableClock(kCLOCK_Iocon);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_EnableClock(kCLOCK_Gpio0);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_EnableClock(kCLOCK_Gpio1);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_EnableClock(kCLOCK_Rit);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_EnableClock(kCLOCK_Spi1);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;/*******************************************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;******************** Configuration BOARD_BootClockPLL150M *********************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;******************************************************************************/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;/* clang-format off */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;!!Configuration&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;name: BOARD_BootClockPLL150M&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;outputs:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: ASYNCAPB_clock.outFreq, value: 150 MHz}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: FRG_clock.outFreq, value: 150 MHz}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: MAIN_clock.outFreq, value: 150 MHz}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: System_clock.outFreq, value: 150 MHz}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;settings:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: PLL_Mode, value: Normal}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: SYSCON.DIRECTO.sel, value: SYSCON.PLL}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: SYSCON.MAINCLKSELB.sel, value: SYSCON.PLL_BYPASS}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: SYSCON.M_MULT.scale, value: '150', locked: true}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: SYSCON.N_DIV.scale, value: '12', locked: true}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: SYSCON.PLL_BYPASS.sel, value: SYSCON.DIRECTO}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;/* clang-format on */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;/*******************************************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;* Variables for BOARD_BootClockPLL150M configuration&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;******************************************************************************/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;/*******************************************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;* Code for BOARD_BootClockPLL150M configuration&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;******************************************************************************/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;void BOARD_BootClockPLL150M(void)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;/*!&amp;lt; Set up the clock sources */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;/*!&amp;lt; Set up IRC */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;POWER_DisablePD(kPDRUNCFG_PD_IRC_OSC); /*!&amp;lt; Ensure IRC OSC is on */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;POWER_DisablePD(kPDRUNCFG_PD_IRC); /*!&amp;lt; Ensure IRC is on */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_AttachClk(kIRC12M_to_MAIN_CLK); /*!&amp;lt; Switch to IRC 12MHz first to ensure we can change voltage without accidentally&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;being below the voltage for current speed */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;/*!&amp;lt; Set up PLL */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_AttachClk(kIRC12M_to_SYS_PLL); /*!&amp;lt; Switch SYSPLLCLKSEL to IRC12M */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;POWER_DisablePD(kPDRUNCFG_PD_SYS_PLL); /*!&amp;lt; Ensure PLL is on */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;const pll_setup_t pllSetup = {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;.syspllctrl = SYSCON_SYSPLLCTRL_BANDSEL_MASK | SYSCON_SYSPLLCTRL_SELI(26U) | SYSCON_SYSPLLCTRL_SELP(31U) | SYSCON_SYSPLLCTRL_DIRECTO_MASK,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;.syspllndec = SYSCON_SYSPLLNDEC_NDEC(199U),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;.syspllpdec = SYSCON_SYSPLLPDEC_PDEC(2U),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;.syspllssctrl = {(SYSCON_SYSPLLSSCTRL0_MDEC(9637U) | SYSCON_SYSPLLSSCTRL0_SEL_EXT_MASK),0x0U},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;.pllRate = 150000000U,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;.flags = PLL_SETUPFLAG_WAITLOCK&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;};&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_SetPLLFreq(&amp;amp;pllSetup); /*!&amp;lt; Configure PLL to the desired values */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;POWER_SetVoltageForFreq(150000000U); /*!&amp;lt; Set voltage for the one of the fastest clock outputs: System clock output */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_SetFLASHAccessCyclesForFreq(150000000U); /*!&amp;lt; Set FLASH wait states for core */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;/*!&amp;lt; Set up dividers */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 1U, false); /*!&amp;lt; Set AHBCLKDIV divider to value 1 */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;SYSCON-&amp;gt;ASYNCAPBCTRL = SYSCON_ASYNCAPBCTRL_ENABLE_MASK; /*!&amp;lt; Enable ASYNC APB subsystem */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Clock_SetAsyncClkDiv(1U); /*!&amp;lt; Set ASYNCCLKDIV divider to value 1 */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;ASYNC_SYSCON-&amp;gt;FRGCTRL = ((ASYNC_SYSCON-&amp;gt;FRGCTRL &amp;amp; ~ASYNC_SYSCON_FRGCTRL_MULT_MASK) | ASYNC_SYSCON_FRGCTRL_MULT(0U)); /*!&amp;lt; Set FRG MULT to value 0 */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;ASYNC_SYSCON-&amp;gt;ASYNCAPBCLKCTRL |= ASYNC_SYSCON_ASYNCAPBCLKCTRL_FRG0_MASK; /*!&amp;lt; Enable FRG clock */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;/*!&amp;lt; Set up clock selectors - Attach clocks to the peripheries */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_AttachClk(kSYS_PLL_OUT_to_MAIN_CLK); /*!&amp;lt; Switch MAIN_CLK to SYS_PLL_OUT */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;/*!&amp;lt; Set SystemCoreClock variable. */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;SystemCoreClock = BOARD_BOOTCLOCKPLL150M_CORE_CLOCK;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what the original example code looked like:&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;#include "fsl_power.h"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;#include "fsl_clock.h"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;#include "clock_config.h"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;/* System clock frequency. */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;extern uint32_t SystemCoreClock;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;void BOARD_InitBootClocks(void)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;BOARD_BootClockPLL150M();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_AttachClk(kIRC12M_to_USART); /* attach 12 MHz clock to USART0 */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_EnableClock(kCLOCK_Usart0);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_EnableClock(kCLOCK_Usart3);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_EnableClock(kCLOCK_Iocon);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_EnableClock(kCLOCK_Gpio0);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_EnableClock(kCLOCK_Gpio1);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_EnableClock(kCLOCK_Rit);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_EnableClock(kCLOCK_Spi1);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;/*******************************************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;******************** Configuration BOARD_BootClockPLL150M *********************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;******************************************************************************/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;/* clang-format off */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;!!Configuration&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;name: BOARD_BootClockPLL150M&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;called_from_default_init: true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;outputs:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: ASYNCAPB_clock.outFreq, value: 150 MHz}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: FRG_clock.outFreq, value: 150 MHz}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: MAIN_clock.outFreq, value: 150 MHz}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: System_clock.outFreq, value: 150 MHz}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;settings:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: PLL_Mode, value: Normal}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: SYSCON.DIRECTO.sel, value: SYSCON.PLL}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: SYSCON.MAINCLKSELB.sel, value: SYSCON.PLL_BYPASS}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: SYSCON.M_MULT.scale, value: '150', locked: true}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: SYSCON.N_DIV.scale, value: '12', locked: true}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;- {id: SYSCON.PLL_BYPASS.sel, value: SYSCON.DIRECTO}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;/* clang-format on */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;/*******************************************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;* Variables for BOARD_BootClockPLL150M configuration&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;******************************************************************************/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;/*******************************************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;* Code for BOARD_BootClockPLL150M configuration&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;******************************************************************************/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;void BOARD_BootClockPLL150M(void)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;/*!&amp;lt; Set up the clock sources */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;/*!&amp;lt; Set up IRC */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;POWER_DisablePD(kPDRUNCFG_PD_IRC_OSC); /*!&amp;lt; Ensure IRC OSC is on */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;POWER_DisablePD(kPDRUNCFG_PD_IRC); /*!&amp;lt; Ensure IRC is on */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_AttachClk(kIRC12M_to_MAIN_CLK); /*!&amp;lt; Switch to IRC 12MHz first to ensure we can change voltage without&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;accidentally being below the voltage for current speed */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;/*!&amp;lt; Set up PLL */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_AttachClk(kIRC12M_to_SYS_PLL); /*!&amp;lt; Switch SYSPLLCLKSEL to IRC12M */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;POWER_DisablePD(kPDRUNCFG_PD_SYS_PLL); /*!&amp;lt; Ensure PLL is on */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;const pll_setup_t pllSetup = {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;.syspllctrl = SYSCON_SYSPLLCTRL_BANDSEL_MASK | SYSCON_SYSPLLCTRL_SELI(26U) | SYSCON_SYSPLLCTRL_SELP(31U) |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;SYSCON_SYSPLLCTRL_DIRECTO_MASK,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;.syspllndec = SYSCON_SYSPLLNDEC_NDEC(199U),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;.syspllpdec = SYSCON_SYSPLLPDEC_PDEC(2U),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;.syspllssctrl = {(SYSCON_SYSPLLSSCTRL0_MDEC(9637U) | SYSCON_SYSPLLSSCTRL0_SEL_EXT_MASK), 0x0U},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;.pllRate = 150000000U,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;.flags = PLL_SETUPFLAG_WAITLOCK};&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_SetPLLFreq(&amp;amp;pllSetup); /*!&amp;lt; Configure PLL to the desired values */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;POWER_SetVoltageForFreq(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;150000000U); /*!&amp;lt; Set voltage for the one of the fastest clock outputs: System clock output */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_SetFLASHAccessCyclesForFreq(150000000U); /*!&amp;lt; Set FLASH wait states for core */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;/*!&amp;lt; Set up dividers */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 1U, false); /*!&amp;lt; Set AHBCLKDIV divider to value 1 */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;/*!&amp;lt; Set up clock selectors - Attach clocks to the peripheries */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;CLOCK_AttachClk(kSYS_PLL_OUT_to_MAIN_CLK); /*!&amp;lt; Switch MAIN_CLK to SYS_PLL_OUT */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;/*&amp;lt; Set SystemCoreClock variable. */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;SystemCoreClock = BOARD_BOOTCLOCKPLL150M_CORE_CLOCK;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to build and run both of these has left these boards in an unprogrammable state.&lt;/P&gt;&lt;P&gt;Before attempting this, the boards were running at 96MHz and had no issues.&lt;/P&gt;&lt;P&gt;Is there something I have missed that would cause this issue/what would be the correct way to get them running at 150MHz? And is there a simple way to fix the state that these boards are in?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 08:28:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-LPCXpresso54102-CPU-to-150-MHz/m-p/1357059#M46818</guid>
      <dc:creator>MRenshaw</dc:creator>
      <dc:date>2021-10-18T08:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting LPCXpresso54102 CPU to 150 MHz</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-LPCXpresso54102-CPU-to-150-MHz/m-p/1357533#M46825</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;MRenshaw,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I use MCUXpresso IDE with clocks configuration tool , configure the CPU to 150M, based on led demo, it can work well, I attached it for you, you can refer to.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 03:55:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-LPCXpresso54102-CPU-to-150-MHz/m-p/1357533#M46825</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-10-19T03:55:34Z</dc:date>
    </item>
  </channel>
</rss>

