Dear Team,
We developed a application specific custom board using LPC4367 MCU and using LPCscrypt V2.1.1 to update the firmware. Boot select mode is USB0.
ISP mode is entered when P2.7 is low and press reset button. we can update the firmware using LPCscrypt.
When we try to enter ISP mode by calling Chip_IAP_ReinvokeISP(); function, except "program" command all command will work.
Please find the below calling function for your reference.
static void BootISPMode(void)
{
uint8_t ret_code;
uint32_t part_id;
part_id = Chip_IAP_ReadPID();
DEBUGOUT("Part ID is: %x\r\n", part_id);
/* Disable interrupt mode so it doesn't fire during FLASH updates */
__disable_irq();
/* Initialize the IAP */
ret_code = Chip_IAP_Init();
/* Error checking */
if (ret_code != IAP_CMD_SUCCESS) {
DEBUGOUT("Command failed to execute, return code is: %x\r\n", ret_code);
}
ret_code = Chip_IAP_ReinvokeISP();
if (ret_code != IAP_CMD_SUCCESS) {
DEBUGOUT("Invoke Command failed to execute, return code is: %x\r\n", ret_code);
}
__enable_irq();
}
Please help us to resolve this issue.
Best Regards,
Chethan kumar
