Firmware User Manual (AE-step)
47
Revision 1.02
2019-04-24
TLE984x Firmware User Manual
4.4.4
Command 05
H
– NVM: Write Data/Program
Firmware supports programming of data and code to the device’s internal NVM via command 05
H
.
The host initiates the NVM program by sending a header block message. This message contains information
about the NVM location (offset address based on NVM start address). The data bytes follow by Data Block
messages and the last data bytes are sent by an EOT block message.
The overall download must be terminated with an EOT block message. The Data Block messages are used if
the downloaded data exceeds the Data field size of the EOT block message.
BootROM does not support NVM cross page boundary programming. It stops the programming when it
reaches a NVM page boundary. No bytes are programmed if the data does not fit the page size.
NVM pages can only be written if there is no NVM read or write protection applied to any NVM region. Details
about the NVM access protection are given in
Command 89H – NVM: Protection Set / Clear
This message supports downloading of a maximum of 128 bytes into the NVM. Larger memory blocks need to
be split into multiple
Command 05H – NVM: Write Data/Program
.
The host waiting time before response is sent back/can be asked for:
• 8 ms
Header Block
Table 4-15 “Command 05
H
– NVM: Write Data/Program” Header Block Description
Field
Description
Length
Number of following bytes in the header block. Always set to 06
H
Message Type
NVM write data/program command. Always set to 05
H
Address Byte #0(MSB) 24-bit NVM address offset where to store the download data.
The offset starts counting from the NVM start address 1100.0000
H
Address Byte #1
Address Byte #2(LSB)
Number
8-bit number of data bytes to write with the whole message. The BootROM expects to
receive these bytes in Data Blocks and an EOT block.
Maximum supported length: 128 bytes.
BSL20_MODE03_HEADER
.
Length
0
1
2
3
4
5
Message
Type
Reserved
Number
6
Address
Byte #0
(MSB)
Address
Byte #1
Address
Byte #2
(LSB)