Hi,
I am using LPC2364 controller. I tried to invoke ISP via IAP. I used the below code.
#define IAP_LOCATION 0x7FFFFFF1 #define IAP_CMD_ReinvokeISP 57 #define iap_entry(a, b) ((void (*)())(IAP_LOCATION))(a, b) void ReinvokeIAP() {
/* disconnect PLL */ PLLCON = 0x00; PLLFEED = 0xaa; PLLFEED = 0x55; CLKSRCSEL=0x00; command[0] = IAP_CMD_ReinvokeISP ; iap_entry(command, result);
}
But the controller is behaving differently. It responds to the command sent via UART0. As we give "?" command "Synchronized" message is received.For the further commands controller just echoing the command given.
Also the LED(P2.4) which is usually ON during ISP mode is OFF.
Also we are unable to flash code using FlashMagic tool.The tool shows" Auto baud rate not set" error.
For the same board if ISP is invoked using hardware, Flash magic works fine.
Kindly help me to fix the issue.
Regards, Neethu
View all questions in Keil forum