Fix TPI mode chip erase code not properly erasing the target memory space.

This commit is contained in:
Dean Camera 2010-02-02 04:33:58 +00:00
parent 8d49480891
commit 5687ac7316
4 changed files with 13 additions and 6 deletions

View file

@ -237,7 +237,7 @@ static void XPROGProtocol_Erase(void)
else
{
/* Erase the target memory, indicate timeout if ocurred */
if (!(TINYNVM_EraseMemory()))
if (!(TINYNVM_EraseMemory(TINY_NVM_CMD_CHIPERASE, Erase_XPROG_Params.Address)))
ReturnStatus = XPRG_ERR_TIMEOUT;
}