Content originally posted in LPCWare by jgorsk on Sun Mar 24 09:51:32 MST 2013
Problem solved. Flash programming and erasing started working when I disabled interrupts.
BTW, information in table 287 in UM10441 suggests that not all the sectors contain the same number of pages. According to the table sectors 16-19 contain 5.5 pages each. Someone at NXP may want to check this.