Dear all,
we are working on LPC controller(LPC55s06x),tried to generate clock at 96Mhz with reference code using configuration as follows,
PDRUNCFGCLR0 = 1 << 5;
/* setting the FRO clock for 12mhz */
SYSCON_PRESETCTRLCLR2 = (1 << 27);
SYSCON_AHBCLKCTRLSET2 = 0x8000000U;
PDRUNCFGCLR0 = 1 << 5;
FRO192M_CTRL |= ((1 << 14) & 0x4000 );
SYSCON_MAINCLKSELA = 0x00;
/* setting the FRO clock for 96mhz */
SYSCON_PRESETCTRLCLR2 = (1 << 27);
SYSCON_AHBCLKCTRLSET2 = 0x8000000U;
PDRUNCFGCLR0 = 1 << 5;
FRO192M_CTRL |= ((1 << 30) & 0x40000000U );
/* Power manager voltage selection */
DCDC0 = 0x01C05CF8;
DCDC1 = 0x010E6E75;
/* flash configuration */
INTCLRSTATUS = 0x1F;
DATAW[0] = ((DATAW[0] & 0xFFFFFFFF) | (7 & (0xF000U >> 12)));
CMD = 0x02;
while((INT_STATUS & 4) == 0);
FMCCR = (FMCCR & ~(0xF000U)) | ((0 << 12) & 0xF000U)
SYSCON_MAINCLKSELA = 0x03;
SYSCON_MAINCLKSELA = 0x00;
SYSCON_AHBCLKDIV = 0x00;
we have tried to flash code to controller through CMSIS DAP.getting error as Fatal erro:Failed to connect to cpu.even though if we tried reset eval board then also not able to flash from next time also tried to flash using JTAG/I-jet debuggers as per pin configuration provided in schematics, then also not able to flash controller.
Please help us to resolve this issue.
best regards,
NagaPrasad.