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

@ -322,7 +322,7 @@ bool XMEGANVM_EraseMemory(const uint8_t EraseCommand, const uint32_t Address)
{
/* Other erase modes just need us to address a byte within the target memory space */
XPROGTarget_SendByte(PDI_CMD_STS | (PDI_DATSIZE_4BYTES << 2));
XMEGANVM_SendAddress(Address);
XMEGANVM_SendAddress(Address);
XPROGTarget_SendByte(0x00);
}