diff options
Diffstat (limited to 'boot_loader/examples/i2c/emac/docs/README.txt')
-rw-r--r-- | boot_loader/examples/i2c/emac/docs/README.txt | 41 |
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 | ||
5 | Steps to build the example: | 5 | Steps to build the example: |
6 | 6 | ||
7 | 1. Import the i2cemacboot CCS project from tools\boot_loader\examples\i2c\emac\evmc6xxxl directory. (in CCSv5, | 7 | 1. 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 | ||
10 | 2. Clean the i2cemacboot project and re-build the project, after build is completed, i2cemacboot_evm6xxxl.out and | 10 | 2. 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 | ||
13 | Steps to run i2cemacboot in CCSv5: | 13 | Steps to run i2cemacboot in CCSv5: |
14 | 14 | ||
15 | 1. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM, please refer to the EVM technical | 15 | 1. 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 | ||
18 | 2. Load the program tools\boot_loader\examples\i2c\emac\evmc6xxxl\bin\i2cemacboot_evm6xxxl.out to CCS. | 17 | 2. Load the program tools\boot_loader\examples\i2c\emac\evmc66xxl\bin\i2cemacboot_evm66xxl.out to CCS. |
19 | 18 | ||
20 | 3. Connect the 3-pin RS-232 cable from the EVM to the serial port of the PC, and start Hyper Terminal. | 19 | 3. Connect the 3-pin RS-232 cable from the EVM to the serial port of the PC, and start Hyper Terminal. |
21 | 20 | ||
22 | 4. Create a new connection with the Baud rate set to 115200 bps, Data bits 8, Parity none, Stop bits 1 and | 21 | 4. 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 | ||
25 | 5. Run the program in CCS, POST will send the booting image info to both the CCS console and the Hyper Terminal. | 24 | 5. 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 | ||
28 | Steps to program i2cemacboot to EMAC: | 27 | Steps to program i2cemacboot to EMAC: |
29 | 28 | ||
30 | 1. Be sure IBL is programmed to I2C EEPROM bus address 81 (0x51), if IBL is not programmed, refer to | 29 | 1. 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. | |
33 | 2. 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 | ||
36 | 3. Copy tools\boot_loader\examples\i2c\emac\evmc6xxxl\bin\i2cemacboot_evm6xxxl.out to tools\bin2ccs and rename | 33 | 2. 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 | ||
39 | 4. Double click bin2ccs.bat, which will convert app.out to a CCS format data file app.dat. | 36 | 3. Double click bin2ccs.bat, which will convert app.out to a CCS format data file app.dat. |
40 | 37 | ||
41 | 5. Start a TFTP server (you can download a free, open source application from http://tftpd32.jounin.net) and copy | 38 | 4. 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 | ||
44 | 6. 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 | 41 | 5. 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 | |||
44 | 6. Set the boot dip switches to I2C master mode, bus address 81 (0x51) and boot parameter index to be 4. | ||
46 | 45 | ||
47 | 7. Be sure the EVM and the PC are connected in the same subnet of a local network, after POR, the EVM will download the | 46 | 7. 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 | ||