lpcware

LPC18xx failed to use IAP programming

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by CH Wu on Thu May 22 02:38:56 MST 2014
Hello,

I'm using the periph_flashiap sample code of lpcopen_2_12_keil_iar_keil_mcb_1857 with the Keil MCB1800 demo board.
I always failed at erase sector. I think the sample code should be ok, right?
Could you help me to solve this issue?
Thanks.

/* Erase the last sector */
ret_code = Chip_IAP_EraseSector(IAP_LAST_SECTOR, IAP_LAST_SECTOR, IAP_FLASH_BANK_A);

CH Wu

Outcomes