Firmware User Manual (AE-step)
54
Revision 1.02
2019-04-24
TLE984x Firmware User Manual
4.4.7
Command 88
H
– NVM: Erase
88
H
This command supports the erasure of NVM pages and NVM sectors.
The host initiates the NVM erase operation by sending a header block message. This message contains
information about the NVM location (offset address based on NVM start address) and selects the erase
granularity.
The BootROM rejects the erase operation if the given NVM location is not page-aligned for page erase
operation, or not sector-aligned for sector erase operation.
Any NVM erase operation is rejected in case any NVM read or write protection is applied to any NVM region.
Details about the NVM access protection are given in
Command 89H – NVM: Protection Set / Clear
This erase command does not erase any NVM CS (Configuration Sector) pages.
The host waiting time before response is sent back/can be asked for:
• Page erase (128 bytes) / sector erase (4 KB): 5 ms
Header Block
Returned error codes
The message can return the following error codes:
- ERR_LOG_SUCCESS
- ERR_LOG_CODE_NVM_IS_READ_PROTECTED
- ERR_LOG_CODE_NVM_ADDR_RANGE_INVALID
- ERR_LOG_CODE_NVM_ERASE_PARAMS_INVALID (includes NVM write protection check)
- ERR_LOG_CODE_NVM_SEMAPHORE_RESERVED
Table 4-22 “Command 88
H
– NVM: Erase” Header Block Field Description
Field
Description
Length
Number of following bytes in the header block. Always set to 05
H
Message Type
NVM erase command. Always set to 88
H
Address Byte #0(MSB) 24-bit NVM address offset for page or sector erase selection.
The offset starts counting from the NVM start address 1100.0000
H
Address Byte #1
Address Byte #2(LSB)
Erase Type
Supported erase type field values:
•
0 -
NVM page erase
•
1 -
NVM sector erase
BSL20_MODE06_HEADER
.
Erase
Type
0
1
2
3
4
5
Length
Message
Type
Address
Byte #0
(MSB)
Address
Byte #1
Address
Byte #2
(LSB)