LPC1225 IAP Erase Sector and Page Erase returns BUSY

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Sbriz on Fri Sep 21 04:04:59 MST 2012
Hi to everybody,

I'm new in this forum.
I'm working with a LPC1225/301 microcontroller. I've encountered this problem:

When I'm trying to execute the IAP ERASE SECTOR routine for a single sector, or for a number of sectors that not covers the entire microcontroller memory, I receive always the IAP staus code BUSY.(the PREPARE SECTOR routine instead returns always the CMD_SUCCES).

Otherwise if I execute the IAP ERASE SECTOR routine from start sector number 0 to end sector number 15 (the whole memory), it works properly!

I encounter the same behaviour also for the IAP ERASE PAGE routine, while I can correctly blanckcheck a single or more sectors.

My code runs in RAM, and the other IAP routines (COPY RAM TO FLASH, BLANK CHECK SECTOR, READ PART ID etc.) works correctly.

Is there anyone who encountered the same strange behaviour and could solve this issue?

Thanks in advance for your prompt reply.