1768 IAP - erase sectors returns success but does not erase sector

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by david.harper on Thu Jul 31 11:51:36 MST 2014
I'm using IAP functions to write flash on a 1768.

The IAP_CMD_ERASE_SECTORS command is indicating successful completion (IAP_STA_CMD_SUCCESS) but the flash contents are not being erased. If I use the Keil uVision download functionality I can erase the sector so I don't think it's a hardware problem. A subsequent write to the erased sector works fine.

Any ideas?