Hi,
I am implementing a secondary bootloader, which updates nxp-application for NXP LPC2388. When I try to erase sectors 15-26 on flash it hangs at function: iap_entry(command, result); and reboots. The first step before erase: IAP_PrepareSec(15, 26) has been executed successfully.
code snippet for erasing sectors:
if (IAP_PrepareSec(15, 26) != IAP_STA_CMD_SUCCESS) printf("\nFailed to prepare sectors"); if ( IAP_EraseSec(15, 26) != IAP_STA_CMD_SUCCESS) printf("\nFailed to erase sectors");
Any pointer to this problem would be helpful.
Regards, Tirumal