Texas Instruments HFDEMOKITII Manuale Utente

Pagina di 45
44
Downloading Data to FLASH Memory
The S 6350 Reader FLASH memory contains two areas: the application area for the Reader
application firmware and a boot-loader area for the boot-loader firmware. The boot-loader
memory is factory locked.
After a reset the boot-loader firmware runs the following sequence:
 
Control registers are initialized
 
IO ports are initialized
 
Application memory is scanned and verified
 
If the application memory checksums are valid then control is transferred to the
application memory
 
If the checksums fail then the boot-loader takes control of the communications.
The boot-loader will only accept the following commands:
 
Initiate FLASH Loader Command (D0
 hex
)
 
Send Data to FLASH Command (D8
hex
)
 
Read reader  Version Command (F0
hex
)
The boot loader only operates at 57600 baud with 8 data bits, 1 start bit, 1 stop bit and no parity.
The application firmware will always accept the Initiate FLASH Loader Command (D0
 hex
).
When this command is received by the application firmware, control is transferred to the boot-
loader. If the boot-loader does not receive a Send Data to FLASH Command (D8
hex
within 5
seconds of the Initiate FLASH Loader Command (D0
 hex
then a system reset is generated.
The application firmware is provided in a single file and contains all the necessary checksums.
The file will always contain 29700 bytes of data.
The file must be sent to the reader in one session if any errors occur the whole file must be
resent. The file is sent in 225 segments, 132 bytes at a time (225 x 132 = 29700). Each segment
is sent using the Send Data to FLASH Command (D8
hex
). The 132 bytes of data are contained
in the data section of the packet.
Appendix A