Content originally posted in LPCWare by ali_asadzadeh on Thu May 05 04:56:30 MST 2016
Thanks the problem is that the J-link can not detect the cores, so I can not debuge the cores, the crystal is 12MHz and I have confirmed it's frequncy on the scope to be 12MHz,
I can flash magic the chip, here is a simple blinky program to flash a led that's connected to the P6_5 of MCU, but when I flash it on the MCU using flash magic it would not do anything!!!
Quote:
#include "LPC43xx.h" // Device header
#include "cmsis_os.h" // ARM::CMSIS:RTOS:Keil RTX
#include "GPIO_LPC43xx.h" // Keil::Device:GPIO
#include "SCU_LPC43xx.h" // Keil::Device:SCU
int main()
{
static int i=0;
SystemInit();
GPIO_PortClock(0);
//Turn on LED0
SCU_PinConfigure(6,5,SCU_CFG_MODE_FUNC0);
GPIO_SetDir(3,4, GPIO_DIR_OUTPUT);
while(1)
{
GPIO_PinWrite(3,4, 0);
for(i=0;i<10000000;i++);
GPIO_PinWrite(3,4, 1);
for(i=0;i<10000000;i++);
i++;
}
}