summaryrefslogtreecommitdiffstats
blob: 341eedc6a1fc0439a3eab5a4b882b968dca030b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Power On Self Test Utility

POST is a test program that can be programmed to I2C EEPROM and boot directly from I2C bus address 0x50 after POR.
It performs board specific tests, such as external memory test, NAND/NOR/EEPROM read test, LED test, etc.

Steps to build POST:

1. Import the POST CCS project from tools\post\evmc66xxl directory. (in CCSv5, Project->Import Existing CCS/
   CCE Eclipse Projects)

2. Be sure the lite version of the Platform Lib is pre-built: 
   pdk_C66xx_1_x_x_x\packages\ti\platform\evmc66xxl\platform_lib\lib\debug\ti.platform.evm6670l.lite.lib
   If the lib is not pre-built, refer to Platform Lib User Guide under pdk_C66xx_x_x_x\packages\ti\platform\docs 
   on how to build the platform library.

   Note that the lite version of platform lib only contains the functions that are required by the POST, so that 
   POST can be fit into the EEPROM.

3. Clean the POST project and re-build the project, after build is completed, post_evm66xxl.out and post_evm66xxl.map
   will be generated under tools\post\evmc66xxl\bin directory.


Steps to run POST in CCSv5:

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 
   reference manual on how to set the boot mode dip switches)

2. Load the program tools\post\evmc66xxl\bin\post_evm66xxl.out to CCS.

3. Connect the 3-pin RS-232 cable from the EVM to the serial port of the PC, and start Hyper Terminal.

4. Create a new connection with the Baud rate set to 115200 bps, Data bits 8, Parity none, Stop bits 1 and 
   Flow control none. Be sure the COM port # is set correctly.

5. Run the program in CCS, POST will send the test status and result to the Hyper Terminal.


Steps to program POST to EEPROM:

1. Be sure that IBL romparse.exe is pre-built under tools\boot_loader\ibl\src\util\romparse, if IBL is not built,
   refer to tools\boot_loader\ibl\doc\release_info.txt on how to build IBL for EVMC66xxL.

2. Go to the tools\post\evmc66xxl\bin directory in Windows Explorer and open the post_romparse.bat in a text editor, 
   change "C6000_CG_DIR", "TARGET", "ENDIAN" and "IBL_ROOT_DIR" parameters accordingly and set the Cygwin PATH 
   where you installed.

3. Double click post_romparse.bat. This will generate a CCS format image file "post_i2crom.dat", which can be programmed 
   to I2C EEPROM slave bus address 80 (0x50), below are the steps how to program the EEPROM using the EEPROM writer utility:

   * Copy post_i2crom.dat to tools\writer\eeprom\evmc66xxl\bin directory and rename it to "app.dat".
   * Change bus_addr to "80" (0x50) in tools\writer\eeprom\evmc66xxl\bin\eepromwriter_input.txt and save the file.
   * Refer to tools\writer\eeprom\evmc66xxl\docs\README.txt on how to program the CCS data file to EEPROM.

4. Once the programming is completed successfully, user can set the boot mode to I2C mode with bus address 0x50 
   (please refer to the EVM technical reference manual on how to set the boot mode dip switches) and
   boot the POST directly from the EEPROM after POR. The boot status and test result can be monitored using the Hyper
   Terminal as mentioned in "Steps to run POST in CCSv5".