DLPU110B April 2021 – August 2022 DLPC6540
For large data handling commands such as flash download and flash read, the user can allow some commands to support variable number of data bytes. To support this use case, the commands that require variable data size, is mandated to include length as part of the Command packet header. The Command Handler uses the given length to decode the received Command packet and execute correctly. Similar to the Command packet, the data in the Response packet may also be variable. The Command Handler includes length in the Response packet header for such commands.
The command protocol is designed to support commands up to a length of 65535 bytes (2-byte length field). However, due to memory limitations, the command handler implementation limits it to a maximum size of 512 bytes in a Command packet (this includes all bytes in the command like header, checksum etc.).