Firmware User Manual (AE-step)
41
Revision 1.02
2019-04-24
TLE984x Firmware User Manual
4.4.1
Command 02
H
– RAM: Write Data/Program
Firmware supports downloading of data and code to the device’s internal RAM via command 02
H
.
The host initiates the RAM download by sending a header block message. This message contains information
about the RAM location (offset address based on RAM start address). The data bytes are followed 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 exceed the Data field size of the EOT block message.
This command does not support to write RAM locations which BootROM uses for global variable and stack
storage.
This command rejects the write operation if any NVM read or write protection is applied to any NVM region,
the offset is out of range, or offset plus count is out of range. Details about the NVM access protection are given
in
“Command 89H – NVM: Protection Set / Clear” on Page 56
. It returns an error code in the response
message.
This message supports downloading of a maximum of 128 bytes into the RAM. Larger memory blocks need to
be split into multiple
Command 02H – RAM: Write Data/Program
messages.
Header Block
Data Block
This block is only used for LIN communication, because the LIN frame length is too short to place the
maximum supported data length into the EOT block.
Table 4-8 “Command 02
H
– RAM: Write Data/Program” Header Block Field Description
Field
Description
Length
Number of following bytes in the header block. Always set to 06
H
Message Type
RAM write command. Always set to 02
H
Address Byte #0 (MSB) 24-bit RAM address offset where to store the download data.
The offset starts counting from the RAM start address 1800.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_MODE00_HEADER
.
Address
Byte #0
(MSB)
Address
Byte #1
Address
Byte #2
(LSB)
Reserved
Length
0
1
2
3
4
5
Message
Type
Number
6