This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem erasing sectors on onchip lpc2388 flash(512k)

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

0