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.
I would like to apologize for the delay. I got sick suddenly and couldn't write a response to you.
Regarding your issue, it is my pleasure to help you with your concern, but firstly, may you tell me if you are using your custom board or a development board for LPC?
Also as a question, were you able sometime before to flash that mcu? Did you try flashing a simple led blinky code to your mcu?
I will stay tune to your response, so I can help you with it. Please let me know if you have more questions.
Thank you so much.
Sincerely,
Pablo Avalos.