UM10503 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2012. All rights reserved.User manual Rev. 1.3 — 6 July 2012 1192 of 1269NXP Semiconductors UM10503Chapter 46: LPC43xx flash programming/ISP and IAP46.8.10 Re-invoke ISP46.8.11 Erase pageThe erase page command allows to erase one page (512 B) in a given sector.46.8.12 Set active boot flash bankThis command is only valid if two flash banks exist on the part and selects one of the twobanks for booting from flash. The command inserts a valid signature (seeSection 46.4.4.1) in the selected flash bank and invalidates the signature in the other flashbank. After a reset, the part will boot from the selected flash bank and apply any code readprotection (CRP) that is included in the flash image of the selected bank to the entire flash(bank A and bank B).The set active boot flash bank command is disabled with CRP levels 1, 2, and 3. Thismeans that the boot flash bank cannot be changed if CRP is enabled. If CRP is includedin the new flash image to be activated by this command, ensure that the flash imagecontent is executing as expected. Otherwise, the part may fail to boot after reset and, forCRP level 3, external boot or ISP may not be accessible to update the flash.Remark: This command uses a large stack space. See Table 1054.Table 1052.IAP Re-invoke ISPCommand CompareInput Command code: 57 (decimal)Return Code NoneResult None.Description This command is used to invoke the boot loader in ISP mode. It configuresUART0 pins U0_RX and U0_TX. Use this command when a valid user program ispresent in the internal flash memory and the P2_7 pin is not accessible to forcethe ISP mode. The command does not change CCLK, It does sets the sourcedependent clock accordingly assuming that PLL1 is running at 288 MHz.Stack usage 192 BTable 1053.IAP Erase pageCommand Erase pageInput Command code: 59 (decimal)Param0: Start flash address.Param1: End flash address.Param2: CPU clock frequency in kHz.Return Code CMD_SUCCESS | BUSY |SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION | INVALID_SECTOR |INVALID_FLASH_UNITResult None.Description This command is used to erase a page or multiple pages of on-chip flash memory.To erase a single page use the same "Start" and "End" flash address. Start andEnd addresses must be in the same sector.Stack usage 168 B