please do check the code which i have done.
in my board the crystal oscillator of producing frequency range 48 to 96, has been damaged and so i had to use to use the 12 mega hertz crystal oscillator
can i do it so or any other things that associated with that crystal oscillator cannot be done without that one.
if so please do tell me a reply message.
i have attached the code for further reference
#include <stdio.h>
#include "board.h"
#include "peripherals.h"
#include "pin_mux.h"
#include "clock_config.h"
#include "LPC54628.h"
#include "fsl_debug_console.h"
#include"fsl_spifi.h"
int main(void) {
BOARD_BootClockFRO12M();
CLOCK_AttachClk(kFRO12M_to_MAIN_CLK);
CLOCK_AttachClk(kFRO12M_to_FLEXCOMM0);
CLK_GATE_DEFINE(AHB_CLK_CTRL0, 13);
CLK_GATE_DEFINE(AHB_CLK_CTRL0, 10);
SPIFI0->ADDR=0X9F;
SPIFI0->CMD=0X90984000;
SPIFI0->CTRL=0X488EFFFE;
SPIFI0->DATA=000000;
IOCON->PIO[0][24] = 0X00000106;
IOCON->PIO[0][25] = 0X00000106;
IOCON->PIO[0][26] = 0X00000106;
IOCON->PIO[0][27] = 0X00000106;
IOCON->PIO[0][28] = 0X00000106;
IOCON->PIO[0][23] = 0X00000106;
SPIFI0->CMD=0X9098C000;
return 0 ;
}
with regards
suraj