LM3S102-IRN20(T) Luminary Micro, Inc., LM3S102-IRN20(T) Datasheet - Page 331
![no-image](/images/no-image-200.jpg)
LM3S102-IRN20(T)
Manufacturer Part Number
LM3S102-IRN20(T)
Description
Microcontroller
Manufacturer
Luminary Micro, Inc.
Datasheet
1.LM3S102-IRN20T.pdf
(335 pages)
- Current page: 331 of 335
- Download datasheet (2Mb)
A.2.1
A.2.2
A.2.3
A.3
October 6, 2006
format for receiving and sending packets, including the method used to acknowledge successful or
unsuccessful reception of a packet.
Packet Format
All packets sent and received from the device use the following byte-packed format.
struct
{
};
ucSize – The first byte received holds the total size of the transfer including the size and checksum
bytes.
ucChecksum – This holds a simple checksum of the bytes in the data buffer only. The algorithm is
Data[0]+Data[1]+…+ Data[ucSize-3].
Data – This is the raw data intended for the device, which is formatted in some form of command
interface. There should be ucSize – 2 bytes of data provided in this buffer to or from the device.
Sending Packets
The actual bytes of the packet can be sent individually or all at once, the only limitation is that
commands that cause flash memory access should limit the download sizes to prevent losing
bytes during flash programming. This limitation is discussed further in the commands that interact
with the flash.
Once the packet has been formatted correctly by the host, it should be sent out over the UART or
SSI interface. Then the host should poll the UART or SSI interface for the first non-zero data
returned from the device. The first non-zero byte will either be an ACK (0xCC) or a NAK (0x33)
byte from the device indicating the packet was received successfully (ACK) or unsuccessfully
(NAK). This does not indicate that the actual contents of the command issued in the data portion of
the packet were valid, just that the packet was received correctly.
Receiving Packets
The flash loader sends a packet of data in the same format that it receives a packet. The flash
loader may transfer leading zero data before the first actual byte of data is sent out. The first
non-zero byte is the size of the packet followed by a checksum byte, and finally followed by the
data itself. There is no break in the data after the first non-zero byte is sent from the flash loader.
Once the device communicating with the flash loader receives all the bytes, it must either ACK or
NAK the packet to indicate that the transmission was successful. The appropriate response after
sending a NAK to the flash loader is to resend the command that failed and request the data again.
If needed, the host may send leading zeros before sending down the ACK/NAK signal to the flash
loader, as the flash loader only accepts the first non-zero data as a valid response. This zero
padding is needed by the SSI interface in order to receive data to or from the flash loader.
Commands
The next section defines the list of commands that can be sent to the flash loader. The first byte of
the data should always be one of the defined commands, followed by data or parameters as
determined by the command that is sent.
unsigned char ucSize;
unsigned char ucCheckSum;
unsigned char Data[];
Preliminary
LM3S102 Data Sheet
331
Related parts for LM3S102-IRN20(T)
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![LM3S102](/images/no-image3.png)
Part Number:
Description:
Lm3s102 Arm Microcontroller
Manufacturer:
Luminary Micro, Inc
Datasheet:
![LM3S102-IRN20](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S101](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S101-CRN20-XNPT](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S1150-IQC50-A1](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S1150-IQC50](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S1911-IRN20-A0T](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S2110-IQN20-A0](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S2965-IQC20-A0T](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S316](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S315](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S316-IQN25](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S317-IQN20-A0T](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S328](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet:
![LM3S328-IRN20-A0T](/images/no-image3.png)
Part Number:
Description:
Microcontroller
Manufacturer:
Luminary Micro, Inc.
Datasheet: