DOWNLOADING
Example on the AT91RM9200DK
A Default Boot
Program is stored in ROM-based AT91RM9200 Products. Its features are:
·
Downloads and Runs an Application from External Storage
Media into Internal SRAM
·
Up to 64K Bytes Downloaded Code Size
·
Automatic Detection of Valid Application
·
Bootloader Supporting a Wide Range of Non-volatile
Memories
§
SPI DataFlash® connected on SPI NCS0
§
Two-wire EEPROM
§
8-bit Parallel Memories on NCS0
·
Boot Uploader in Case No Valid Program is Detected in
External NVM and Supporting Several Communication Media
·
Serial Communication on a DBGU (XMODEM Protocol)
·
USB Device Port (DFU protocol)
A default boot Program is stored in the parallel flash of
the AT91RM9200DK board. Its features are:
By default this is the external boot
on parallel FLASH which is active.
Obviously, a project can be downloaded and debugged using
the board’s JTAG access.
Using DBGU or USB DFU,
the binary will be loaded in RAM at 0x200000, then the bootrom will remap
before doing a jump at 0.
Connect the DBGU serial
port of the AT91RM9200DK to the PC RS232
Configure a serial tool
to communicate at 115200Kbps, 8N1N
Send the binary using
Xmodem protocol
Connect the AT91RM9200DK
to the PC using the USB link.
Send the binary using the
ATMEL DFU application
Previously, an Ethernet specific initialisation
must be done.:
·
Connect the DBGU serial port of the AT91RM9200DK to the
PC RS232
·
Configure a serial tool to communicate at 115200Kbps,
8N1N
·
Configure the board Ethernet MAC address, the board IP
address and the TFTP server IP address
THUNDER>setenv ethaddr
12.24.96.78.9A.BC
THUNDER>setenv ipaddr
192.168.1.1
THUNDER>setenv serverip 192.168.1.2
·
Enter a command executed by thunderboot just after the
initialisation
THUNDER>setenv bootcmd tftp
file.bin 200000; go 200000
·
Save all this environment
THUNDER>saveenv
Reboot the board. The binary is loaded and
executed immediately.
Connect the DBGU serial
port of the AT91RM9200DK to the PC RS232
Configure a serial tool
to communicate at 115200Kbps, 8N1N
THUNDER>loadb 200000
## Ready
for binary (Kermit) download …
## Start
Addr =0x200000
THUNDER>go 200000