Hi,
I have called the BOARD_BootClockFROHF96M() api function and run it on my LPC54606j256 Microcontroller, but I have problem in this function. Let me know if any other way to find this issue. Past 2weeks working on this still now I didn't solve this issue. So, I need help for this. Please if you have any suggestions tell me and what should i do next?
I'm using IAR Embedded workbench IDE - Arm 9.32.2 tool and SDK version - 2.13.0
Example - dev_cdc_vcom_bm for USB
I'm also using same BOARD_BootClockFROHF96M(void) function same code, but I don't know, why its not working?
can you tell? should I change tool or SDK version (or) anything changes in my code?
void BOARD_BootClockFROHF96M(void)
{
/*! < Set up the clock sources */
/*! < Set up FRO */
POWER_DisablePD(kPDRUNCFG_PD_FRO_EN); /*!< Ensure FRO is on */
CLOCK_AttachClk(kFRO12M_to_MAIN_CLK); /*!< Switch to FRO 12MHz first to ensure we can change voltage without
accidentally being below the voltage for current speed */
POWER_SetVoltageForFreq(96000000U); /*!< Set voltage for the one of the fastest clock outputs: System clock output */
CLOCK_SetFLASHAccessCyclesForFreq(96000000U); /*!< Set FLASH wait states for core */
/*! < Need to make sure ROM and OTP has power(PDRUNCFG0[17,29]= 0U)
before calling this API since this API is implemented in ROM code */
CLOCK_SetupFROClocking(96000000U); /*!< Set up high frequency FRO output to selected frequency */
/*! < Set up dividers */
CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 1U, false); /*! < Reset divider counter and set divider to value 1 */
/*! < Set up clock selectors - Attach clocks to the peripheries */
CLOCK_AttachClk(kFRO_HF_to_MAIN_CLK); /*! < Switch MAIN_CLK to FRO_HF */
/* Set SystemCoreClock variable. */
SystemCoreClock = BOARD_BOOTCLOCKFROHF96M_CORE_CLOCK;
}