SPRADN0 December 2024 F29H850TU , F29H859TU-Q1
Packets are sent in a standard format between the host and device. The packet allows for a variable amount of data to be sent while making sure the correct transmission and reception of the packet. The header, footer and checksum fields help to make sure that the data was not corrupted during transmission. The checksum is the summation of the bytes in the command and data fields.
Note that the a shared f29h85x_kernel_commands_cpu1.h are used by both uart flash kernel and the host programmer to synchronize packet macros such as header, footer, nak, ack, command and status error values. Users are welcome to make new or modifications to existing macros.
| Header | Data Length | Command | Data | Checksum | Footer |
|---|---|---|---|---|---|
| 2 Bytes | 2 Bytes | 2 Bytes | Length Bytes | 2 Bytes | 2 Bytes |
| 0x1BE4 | Length of Data in Bytes | Command | Data | Checksum of Command and Data | 0xE41B |
Both the host and device respond to a packet with an ACK or NAK.
| ACK | NAK |
|---|---|
| 0x2D | 0xA5 |