summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'boot_loader/examples/i2c/emac/docs/README.txt')
-rw-r--r--boot_loader/examples/i2c/emac/docs/README.txt41
1 files changed, 21 insertions, 20 deletions
diff --git a/boot_loader/examples/i2c/emac/docs/README.txt b/boot_loader/examples/i2c/emac/docs/README.txt
index 5043281..99a59d2 100644
--- a/boot_loader/examples/i2c/emac/docs/README.txt
+++ b/boot_loader/examples/i2c/emac/docs/README.txt
@@ -4,46 +4,47 @@ A simple Hello World example demonstrating EMAC boot over I2C.
4 4
5Steps to build the example: 5Steps to build the example:
6 6
71. Import the i2cemacboot CCS project from tools\boot_loader\examples\i2c\emac\evmc6xxxl directory. (in CCSv5, 71. Import the i2cemacboot CCS project from tools\boot_loader\examples\i2c\emac\evmc66xxl directory. (in CCSv5,
8 Project->Import Existing CCS/CCE Eclipse Projects) 8 Project->Import Existing CCS/CCE Eclipse Projects)
9 9
102. Clean the i2cemacboot project and re-build the project, after build is completed, i2cemacboot_evm6xxxl.out and 102. Clean the i2cemacboot project and re-build the project, after build is completed, i2cemacboot_evm66xxl.out and
11 i2cemacboot_evm6xxxl.map will be generated under tools\boot_loader\examples\i2c\emac\evmc6xxxl\bin directory. 11 i2cemacboot_evm66xxl.map will be generated under tools\boot_loader\examples\i2c\emac\evmc66xxl\bin directory.
12 12
13Steps to run i2cemacboot in CCSv5: 13Steps to run i2cemacboot in CCSv5:
14 14
151. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM, please refer to the EVM technical 151. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM.
16 reference manual on how to set the boot mode dip switches.
17 16
182. Load the program tools\boot_loader\examples\i2c\emac\evmc6xxxl\bin\i2cemacboot_evm6xxxl.out to CCS. 172. Load the program tools\boot_loader\examples\i2c\emac\evmc66xxl\bin\i2cemacboot_evm66xxl.out to CCS.
19 18
203. Connect the 3-pin RS-232 cable from the EVM to the serial port of the PC, and start Hyper Terminal. 193. Connect the 3-pin RS-232 cable from the EVM to the serial port of the PC, and start Hyper Terminal.
21 20
224. Create a new connection with the Baud rate set to 115200 bps, Data bits 8, Parity none, Stop bits 1 and 214. Create a new connection with the Baud rate set to 115200 bps, Data bits 8, Parity none, Stop bits 1 and
23 Flow control none. Be sure the COM port # is set correctly. 22 Flow control none. Be sure the COM port # is set correctly.
24 23
255. Run the program in CCS, POST will send the booting image info to both the CCS console and the Hyper Terminal. 245. Run the program in CCS, i2cemacboot will send the hello world booting info to both the CCS console and the
26 25 Hyper Terminal.
27 26
28Steps to program i2cemacboot to EMAC: 27Steps to program i2cemacboot to EMAC:
29 28
301. Be sure IBL is programmed to I2C EEPROM bus address 81 (0x51), if IBL is not programmed, refer to 291. Be sure IBL and boot configuration table are programmed to I2C EEPROM bus address 81 (0x51), if IBL and/or
31 tools\boot_loader\ibl\doc\README.txt on how to program the IBL to EEPROM. 30 boot configuration table are not programmed, refer to tools\boot_loader\ibl\doc\README.txt on how to program
32 31 the IBL and boot configuration table to EEPROM.
332. Be sure EMAC boot parameter table is programmed to I2C EEPROM bus address 81 (0x51), if the table is not programmed,
34 refer to tools\boot_loader\ibl\doc\README.txt on how to program the boot parameter table to EEPROM.
35 32
363. Copy tools\boot_loader\examples\i2c\emac\evmc6xxxl\bin\i2cemacboot_evm6xxxl.out to tools\bin2ccs and rename 332. Copy tools\boot_loader\examples\i2c\emac\evmc66xxl\bin\i2cemacboot_evm66xxl.out to tools\bin2ccs and rename
37 the file to app.out. 34 the file to app.out.
38 35
394. Double click bin2ccs.bat, which will convert app.out to a CCS format data file app.dat. 363. Double click bin2ccs.bat, which will convert app.out to a CCS format data file app.dat.
40 37
415. Start a TFTP server (you can download a free, open source application from http://tftpd32.jounin.net) and copy 384. Start a TFTP server (you can download a free, open source application from http://tftpd32.jounin.net) and copy
42 app.dat to the TFTP base directory. 39 app.dat to the TFTP base directory.
43 40
446. Set the IP address of the PC that is running the TFTP server to 192.168.2.101, since by default IBL will set the EVM IP 415. Set the IP address of the PC that is running the TFTP server to 192.168.2.101, since by default IBL will set the EVM
45 address to 192.168.2.100 and the TFTP server IP address to 192.168.2.101. 42 IP address to 192.168.2.100 and the TFTP server IP address to 192.168.2.101.
43
446. Set the boot dip switches to I2C master mode, bus address 81 (0x51) and boot parameter index to be 4.
46 45
477. Be sure the EVM and the PC are connected in the same subnet of a local network, after POR, the EVM will download the 467. Be sure the EVM and the PC are connected in the same subnet of a local network, after POR, IBL will download the
48 boot image from TFTP server and boot from it. 47 boot image from TFTP server and boot from it. By default IBL will boot an ELF format image, if user wants to boot
48 an image of other formats, he/she needs to change the boot configuration table accordingly, and re-program the table
49 to the EEPROM.
49 50