TINYNVM_SendWriteNVMRegister(XPROG_Param_NVMCMDRegAddr);\r
XPROGTarget_SendByte(EraseCommand);\r
\r
- /* Write to a location within the target address space to start the erase process */\r
- TINYNVM_SendPointerAddress(Address);\r
+ /* Write to a high byte location within the target address space to start the erase process */\r
+ TINYNVM_SendPointerAddress(Address | 0x0001);\r
XPROGTarget_SendByte(TPI_CMD_SST | TPI_POINTER_INDIRECT);\r
XPROGTarget_SendByte(0x00);\r
\r
- /* Wait until the NVM bus is ready again */\r
- if (!(TINYNVM_WaitWhileNVMBusBusy()))\r
+ /* Wait until the NVM controller is no longer busy */\r
+ if (!(TINYNVM_WaitWhileNVMControllerBusy()))\r
return false;\r
\r
return true;\r