Hi jeremyzhou,
Thank you very much for your kind response and I really appreciate your time.
The bit of code that does the part I am interested into is the following:
#include "LPC8xx.h"
#include <stdio.h>
#include "iap_driver.h"
int main(void)
{
iap_status = (__e_iap_status) iap_prepare_sector(1,1);
iap_status = (__e_iap_status) iap_erase_page(16,25);
}
The iap_erase_page command is given in the User Manual on page 294 and the two arguments it accepts is the first and the last page that are going to be erased. Sector 1 includes pages 16-31 and according to the datasheet the erase time should be ~100ms for a page or multiple consecutive pages, a sector or multiple consecutive sectors which means that the process should happen in parallel. However, according to my measurements, each page takes ~100ms to be erased which is not what I expected.
Does this mean that in order to erase consecutive pages/sectors in parallel I need to do it via ISP and when using the IAP commands the process will be executed in series?
Thanks in advance,
Theo