Fix TPI mode chip erase code not properly erasing the target memory space.
This commit is contained in:
parent
8d49480891
commit
5687ac7316
4 changed files with 13 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue