I use lpc812M101 to simulator debug , i found the error during debug/run is
*** error 65: access violation at 0x40048080 : no 'read' permission *** error 65: access violation at 0x40048080 : no 'write' permission *** error 65: access violation at 0x40048040 : no 'write' permission *** error 65: access violation at 0x40048044 : no 'write' permission *** error 65: access violation at 0x40048044 : no 'read' permission *** error 65: access violation at 0x40048044 : no 'read' permission *** error 65: access violation at 0x40048044 : no 'read' permission *** error 65: access violation at 0x40048044 : no 'read' permission ...
I have try add MAP.ini
MAP 0x40048000,0x40048400 read write exec
it Has to solve the original problem but more out of the new problems
i run before main() in system_LPC8xx.c has loop in
void SystemInit (void)
{
...
#if ((MAINCLKSEL_Val & 0x03) == 3) /* Main Clock is PLL Out */
LPC_SYSCON->SYSPLLCTRL = SYSPLLCTRL_Val;
LPC_SYSCON->PDRUNCFG &= ~(1 << 7); /* Power-up SYSPLL */
while (!(LPC_SYSCON->SYSPLLSTAT & 0x01)) __NOP(); /* Wait Until PLL Locked */
#endif
}