The External Memory Programmer uses an ACK/NACK communication method to transfer the data contained in the HEX file to the device. All packets from the host to device must be ACK/NACKed, but do not require a payload.
The following is a description of the communication method with uploading a HEX file.
- An echo packet is sent. This packet has no payload and is used to establish communication between the host and device.
- A packet requesting the maximum packet size is sent. This is used by the host to ensure that the packet length is never larger than the device's resources. Devices are able to dictate the resource requirements for the packet.
- A packet requesting that the memory be erased. The device will need to make sure that the memory is in the proper state to write data.
- The memory write packets are sent. The amount of packets required depend on the HEX file and the maximum packet size.
- The verify memory packets are sent. The device will perform a checksum over a memory region.
- The done packet will be sent. The device is notified that all memory uploading and verifying are complete.
Topics
Name |
Description |
The binary packets used in the External Memory consist of a header followed by a payload. The payload size can range from 0 to 65,000 bytes. The payload size is determined by the device.
| |
The binary packets use commands to instruct the device what actions are required. The following commands are supported by the External Memory Programmer
|