diff options
author | Hao Zhang | 2011-05-01 15:52:39 -0500 |
---|---|---|
committer | Hao Zhang | 2011-05-01 15:52:39 -0500 |
commit | 01e47d52e2b0f57045a8c6ba4091773f6204d7f5 (patch) | |
tree | 2a0db3e053240006317cd3e90b65a6e986fc190b /boot_loader/examples | |
parent | ac56ca1b9cedc3918227cddaac5acb886b81902e (diff) | |
download | mcsdk-tools-01e47d52e2b0f57045a8c6ba4091773f6204d7f5.tar.gz mcsdk-tools-01e47d52e2b0f57045a8c6ba4091773f6204d7f5.tar.xz mcsdk-tools-01e47d52e2b0f57045a8c6ba4091773f6204d7f5.zip |
Added boot examples for C6670, updated IBL build script to support Msys
Diffstat (limited to 'boot_loader/examples')
24 files changed, 864 insertions, 57 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 | ||
diff --git a/boot_loader/examples/i2c/emac/evmc6670l/.ccsproject b/boot_loader/examples/i2c/emac/evmc6670l/.ccsproject new file mode 100644 index 0000000..79d3116 --- /dev/null +++ b/boot_loader/examples/i2c/emac/evmc6670l/.ccsproject | |||
@@ -0,0 +1,10 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <?ccsproject version="1.0"?> | ||
3 | |||
4 | <projectOptions> | ||
5 | <deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/> | ||
6 | <deviceEndianness value="little"/> | ||
7 | <codegenToolVersion value="7.2.0"/> | ||
8 | <isElfFormat value="true"/> | ||
9 | <rts value="rts6600_elf.lib"/> | ||
10 | </projectOptions> | ||
diff --git a/boot_loader/examples/i2c/emac/evmc6670l/.cproject b/boot_loader/examples/i2c/emac/evmc6670l/.cproject new file mode 100644 index 0000000..b056636 --- /dev/null +++ b/boot_loader/examples/i2c/emac/evmc6670l/.cproject | |||
@@ -0,0 +1,82 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <?fileVersion 4.0.0?> | ||
3 | |||
4 | <cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
5 | <storageModule moduleId="org.eclipse.cdt.core.settings"> | ||
6 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513"> | ||
7 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
8 | <externalSettings/> | ||
9 | <extensions> | ||
10 | <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/> | ||
11 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
12 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
13 | <extension id="org.eclipse.rtsc.xdctools.parsers.ErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
14 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
15 | </extensions> | ||
16 | </storageModule> | ||
17 | <storageModule moduleId="org.eclipse.cdt.core.pathentry"/> | ||
18 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
19 | <configuration artifactExtension="out" artifactName="../bin/i2cemacboot_evm6670l" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="org.eclipse.rtsc.xdctools.parsers.ErrorParser;com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" name="Debug" parent="com.ti.ccstudio.buildDefinitions.C6000.Debug"> | ||
20 | <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513." name="/" resourcePath=""> | ||
21 | <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain.2097842143" name="TI Code Generation Tools" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311"> | ||
22 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.732314103" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
23 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/> | ||
24 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
25 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
26 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/> | ||
27 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/> | ||
28 | <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/> | ||
29 | <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.9;"/> | ||
30 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/> | ||
31 | </option> | ||
32 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/> | ||
33 | <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug.30003368" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug"/> | ||
34 | <builder buildPath="${workspace_loc:/i2cemacboot/Debug}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug.1571910857" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug"/> | ||
35 | <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug.1787566966" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug"> | ||
36 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING.1206666269" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING" valueType="stringList"> | ||
37 | <listOptionValue builtIn="false" value="225"/> | ||
38 | </option> | ||
39 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH.1353471041" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
40 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
41 | <listOptionValue builtIn="false" value=""${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform""/> | ||
42 | </option> | ||
43 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.1765753112" name="Application binary interface (coffabi, eabi) (--abi)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.eabi" valueType="enumerated"/> | ||
44 | <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS.397546270" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS"/> | ||
45 | <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS.1186530295" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS"/> | ||
46 | <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS.46202294" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS"/> | ||
47 | <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS.2124959934" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS"/> | ||
48 | </tool> | ||
49 | <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311" name="C6000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug"> | ||
50 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE.572435525" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE" value=""../bin/i2cemacboot_evm6670l.out"" valueType="string"/> | ||
51 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE.405326097" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE" value=""../bin/i2cemacboot_evm6670l.map"" valueType="string"/> | ||
52 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY.1992557769" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY" valueType="libs"> | ||
53 | <listOptionValue builtIn="false" value=""rts6600_elf.lib""/> | ||
54 | <listOptionValue builtIn="false" value=""ti.platform.evm6670l.ae66""/> | ||
55 | </option> | ||
56 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH.352622214" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH" valueType="stringList"> | ||
57 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
58 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
59 | <listOptionValue builtIn="false" value=""${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform/evmc6670l/platform_lib/lib/debug""/> | ||
60 | </option> | ||
61 | </tool> | ||
62 | <tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.1242540186" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool"> | ||
63 | <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.496009253" name="Code generation tool directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value=""${CG_TOOL_ROOT}"" valueType="string"/> | ||
64 | <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.1742151819" name="RTSC target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.elf.C66" valueType="string"/> | ||
65 | <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.1677251639" name="RTSC platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.evm6670" valueType="string"/> | ||
66 | <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1512447741" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/> | ||
67 | <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.997241669" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList"/> | ||
68 | </tool> | ||
69 | </toolChain> | ||
70 | </folderInfo> | ||
71 | </configuration> | ||
72 | </storageModule> | ||
73 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
74 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> | ||
75 | <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> | ||
76 | <storageModule moduleId="scannerConfiguration"/> | ||
77 | </cconfiguration> | ||
78 | </storageModule> | ||
79 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
80 | <project id="i2cemacboot.com.ti.ccstudio.buildDefinitions.C6000.ProjectType.1742876545" name="C6000" projectType="com.ti.ccstudio.buildDefinitions.C6000.ProjectType"/> | ||
81 | </storageModule> | ||
82 | </cproject> | ||
diff --git a/boot_loader/examples/i2c/emac/evmc6670l/.project b/boot_loader/examples/i2c/emac/evmc6670l/.project new file mode 100644 index 0000000..459c24e --- /dev/null +++ b/boot_loader/examples/i2c/emac/evmc6670l/.project | |||
@@ -0,0 +1,96 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>i2cemacboot_evmc6670l</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <arguments> | ||
11 | <dictionary> | ||
12 | <key>?name?</key> | ||
13 | <value></value> | ||
14 | </dictionary> | ||
15 | <dictionary> | ||
16 | <key>org.eclipse.cdt.make.core.append_environment</key> | ||
17 | <value>true</value> | ||
18 | </dictionary> | ||
19 | <dictionary> | ||
20 | <key>org.eclipse.cdt.make.core.autoBuildTarget</key> | ||
21 | <value>all</value> | ||
22 | </dictionary> | ||
23 | <dictionary> | ||
24 | <key>org.eclipse.cdt.make.core.buildArguments</key> | ||
25 | <value>-k</value> | ||
26 | </dictionary> | ||
27 | <dictionary> | ||
28 | <key>org.eclipse.cdt.make.core.buildCommand</key> | ||
29 | <value>${CCS_INSTALL_ROOT}/utils/gmake/gmake</value> | ||
30 | </dictionary> | ||
31 | <dictionary> | ||
32 | <key>org.eclipse.cdt.make.core.buildLocation</key> | ||
33 | <value>${workspace_loc:/i2cemacboot/Debug}</value> | ||
34 | </dictionary> | ||
35 | <dictionary> | ||
36 | <key>org.eclipse.cdt.make.core.cleanBuildTarget</key> | ||
37 | <value>clean</value> | ||
38 | </dictionary> | ||
39 | <dictionary> | ||
40 | <key>org.eclipse.cdt.make.core.contents</key> | ||
41 | <value>org.eclipse.cdt.make.core.activeConfigSettings</value> | ||
42 | </dictionary> | ||
43 | <dictionary> | ||
44 | <key>org.eclipse.cdt.make.core.enableAutoBuild</key> | ||
45 | <value>true</value> | ||
46 | </dictionary> | ||
47 | <dictionary> | ||
48 | <key>org.eclipse.cdt.make.core.enableCleanBuild</key> | ||
49 | <value>true</value> | ||
50 | </dictionary> | ||
51 | <dictionary> | ||
52 | <key>org.eclipse.cdt.make.core.enableFullBuild</key> | ||
53 | <value>true</value> | ||
54 | </dictionary> | ||
55 | <dictionary> | ||
56 | <key>org.eclipse.cdt.make.core.fullBuildTarget</key> | ||
57 | <value>all</value> | ||
58 | </dictionary> | ||
59 | <dictionary> | ||
60 | <key>org.eclipse.cdt.make.core.stopOnError</key> | ||
61 | <value>true</value> | ||
62 | </dictionary> | ||
63 | <dictionary> | ||
64 | <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key> | ||
65 | <value>true</value> | ||
66 | </dictionary> | ||
67 | </arguments> | ||
68 | </buildCommand> | ||
69 | <buildCommand> | ||
70 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
71 | <triggers>full,incremental,</triggers> | ||
72 | <arguments> | ||
73 | </arguments> | ||
74 | </buildCommand> | ||
75 | </buildSpec> | ||
76 | <natures> | ||
77 | <nature>org.eclipse.rtsc.xdctools.buildDefinitions.XDC.xdcNature</nature> | ||
78 | <nature>com.ti.ccstudio.managedbuild.core.ccsNature</nature> | ||
79 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
80 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
81 | <nature>org.eclipse.cdt.core.ccnature</nature> | ||
82 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
83 | </natures> | ||
84 | <linkedResources> | ||
85 | <link> | ||
86 | <name>README.txt</name> | ||
87 | <type>1</type> | ||
88 | <location>TI_MCSDK_I2CEXAMPLES_DIR/emac/docs/README.txt</location> | ||
89 | </link> | ||
90 | <link> | ||
91 | <name>src</name> | ||
92 | <type>2</type> | ||
93 | <locationURI>TI_MCSDK_I2CEXAMPLES_DIR/emac/src</locationURI> | ||
94 | </link> | ||
95 | </linkedResources> | ||
96 | </projectDescription> | ||
diff --git a/boot_loader/examples/i2c/emac/evmc6670l/i2c_boot_emac_example.cmd b/boot_loader/examples/i2c/emac/evmc6670l/i2c_boot_emac_example.cmd new file mode 100644 index 0000000..cab1993 --- /dev/null +++ b/boot_loader/examples/i2c/emac/evmc6670l/i2c_boot_emac_example.cmd | |||
@@ -0,0 +1,77 @@ | |||
1 | /****************************************************************************** | ||
2 | * Copyright (c) 2011 Texas Instruments Incorporated - http://www.ti.com | ||
3 | * | ||
4 | * Redistribution and use in source and binary forms, with or without | ||
5 | * modification, are permitted provided that the following conditions | ||
6 | * are met: | ||
7 | * | ||
8 | * Redistributions of source code must retain the above copyright | ||
9 | * notice, this list of conditions and the following disclaimer. | ||
10 | * | ||
11 | * Redistributions in binary form must reproduce the above copyright | ||
12 | * notice, this list of conditions and the following disclaimer in the | ||
13 | * documentation and/or other materials provided with the | ||
14 | * distribution. | ||
15 | * | ||
16 | * Neither the name of Texas Instruments Incorporated nor the names of | ||
17 | * its contributors may be used to endorse or promote products derived | ||
18 | * from this software without specific prior written permission. | ||
19 | * | ||
20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
21 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
22 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
23 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
24 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
25 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
26 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
27 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
28 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
29 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
30 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
31 | * | ||
32 | *****************************************************************************/ | ||
33 | /* | ||
34 | * Linker command file | ||
35 | * | ||
36 | */ | ||
37 | |||
38 | -c | ||
39 | -heap 0x40000 | ||
40 | -stack 0x8000 | ||
41 | |||
42 | /* Memory Map 1 - the default */ | ||
43 | MEMORY | ||
44 | { | ||
45 | L1PSRAM (RWX) : org = 0x0E00000, len = 0x7FFF | ||
46 | L1DSRAM (RWX) : org = 0x0F00000, len = 0x7FFF | ||
47 | |||
48 | L2SRAM (RWX) : org = 0x0820000, len = 0xe0000 | ||
49 | MSMCSRAM (RWX) : org = 0xc000000, len = 0x200000 | ||
50 | DDR3 (RWX) : org = 0x80000000,len = 0x10000000 | ||
51 | } | ||
52 | |||
53 | SECTIONS | ||
54 | { | ||
55 | .csl_vect > L2SRAM | ||
56 | .cppi > L2SRAM | ||
57 | .linkram > L2SRAM | ||
58 | .mac_buffer > L2SRAM | ||
59 | platform_lib > L2SRAM | ||
60 | .text > L2SRAM | ||
61 | GROUP (NEAR_DP) | ||
62 | { | ||
63 | .neardata | ||
64 | .rodata | ||
65 | .bss | ||
66 | } load > L2SRAM | ||
67 | .stack > L2SRAM | ||
68 | .cinit > L2SRAM | ||
69 | .cio > L2SRAM | ||
70 | .const > L2SRAM | ||
71 | .data > L2SRAM | ||
72 | .switch > L2SRAM | ||
73 | .sysmem > L2SRAM | ||
74 | .far > L2SRAM | ||
75 | .testMem > L2SRAM | ||
76 | .fardata > L2SRAM | ||
77 | } | ||
diff --git a/boot_loader/examples/i2c/emac/evmc6670l/macros.ini b/boot_loader/examples/i2c/emac/evmc6670l/macros.ini new file mode 100644 index 0000000..f4e4f7b --- /dev/null +++ b/boot_loader/examples/i2c/emac/evmc6670l/macros.ini | |||
@@ -0,0 +1 @@ | |||
TI_MCSDK_I2CEXAMPLES_DIR="../../../../ | |||
diff --git a/boot_loader/examples/i2c/emac/evmc6678l/.cproject b/boot_loader/examples/i2c/emac/evmc6678l/.cproject index b31f384..da96a73 100644 --- a/boot_loader/examples/i2c/emac/evmc6678l/.cproject +++ b/boot_loader/examples/i2c/emac/evmc6678l/.cproject | |||
@@ -75,6 +75,7 @@ | |||
75 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | 75 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> |
76 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> | 76 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> |
77 | <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> | 77 | <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> |
78 | <storageModule moduleId="scannerConfiguration"/> | ||
78 | </cconfiguration> | 79 | </cconfiguration> |
79 | </storageModule> | 80 | </storageModule> |
80 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | 81 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> |
diff --git a/boot_loader/examples/i2c/emac/evmc6678l/.project b/boot_loader/examples/i2c/emac/evmc6678l/.project index f844a5e..e1f5627 100644 --- a/boot_loader/examples/i2c/emac/evmc6678l/.project +++ b/boot_loader/examples/i2c/emac/evmc6678l/.project | |||
@@ -1,6 +1,6 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <projectDescription> | 2 | <projectDescription> |
3 | <name>i2cemacboot</name> | 3 | <name>i2cemacboot_evmc6678l</name> |
4 | <comment></comment> | 4 | <comment></comment> |
5 | <projects> | 5 | <projects> |
6 | </projects> | 6 | </projects> |
diff --git a/boot_loader/examples/i2c/nand/docs/README.txt b/boot_loader/examples/i2c/nand/docs/README.txt index 889e074..049095d 100644 --- a/boot_loader/examples/i2c/nand/docs/README.txt +++ b/boot_loader/examples/i2c/nand/docs/README.txt | |||
@@ -4,44 +4,51 @@ A simple Hello World example demonstrating NAND boot over I2C. | |||
4 | 4 | ||
5 | Steps to build the example: | 5 | Steps to build the example: |
6 | 6 | ||
7 | 1. Import the i2cnandboot CCS project from tools\boot_loader\examples\i2c\nand\evmc6xxxl directory. (in CCSv5, | 7 | 1. Import the i2cnandboot CCS project from tools\boot_loader\examples\i2c\nand\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 i2cnandboot project and re-build the project, after build is completed, i2cnandboot_evm6xxxl.out and | 10 | 2. Clean the i2cnandboot project and re-build the project, after build is completed, i2cnandboot_evm66xxl.out and |
11 | i2cnandboot_evm6xxxl.map will be generated under tools\boot_loader\examples\i2c\nand\evmc6xxxl\bin directory. | 11 | i2cnandboot_evm66xxl.map will be generated under tools\boot_loader\examples\i2c\nand\evmc66xxl\bin directory. |
12 | 12 | ||
13 | Steps to run i2cnandboot in CCSv5: | 13 | Steps to run i2cnandboot 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\nand\evmc6xxxl\bin\i2cnandboot_evm6xxxl.out to CCS. | 17 | 2. Load the program tools\boot_loader\examples\i2c\nand\evmc66xxl\bin\i2cnandboot_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, i2cnandboot will send the hello world booting info to both the CCS console and the |
26 | 25 | Hyper Terminal. | |
27 | 26 | ||
28 | Steps to program i2cnandboot to NAND: | 27 | Steps to program i2cnandboot to NAND: |
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 is programmed to I2C EEPROM bus address 81 (0x51), if IBL is not programmed, refer to |
31 | tools\boot_loader\ibl\doc\README.txt on how to program the IBL to EEPROM. | 30 | tools\boot_loader\ibl\doc\README.txt on how to program the IBL to EEPROM. |
32 | 31 | ||
33 | 2. Be sure NAND boot parameter table is programmed to I2C EEPROM bus address 81 (0x51), if the table is not programmed, | 32 | 2. By default, IBL will boot a BBLOB image (Linux kernel) from NAND, to run this example, we need to change the |
34 | refer to tools\boot_loader\ibl\doc\README.txt on how to program the boot parameter table to EEPROM. | 33 | NAND boot image format to ELF: |
35 | 34 | a. In setConfig_c66xx_main() of tools\boot_loader\ibl\src\util\i2cConfig\i2cConfig.gel, | |
36 | 3. Copy tools\boot_loader\examples\i2c\nand\evmc6xxxl\bin\i2cnandboot_evm6xxxl.out to tools\bin2ccs and rename | 35 | replace |
36 | ibl.bootModes[1].u.nandBoot.bootFormat = ibl_BOOT_FORMAT_BBLOB; | ||
37 | with | ||
38 | ibl.bootModes[1].u.nandBoot.bootFormat = ibl_BOOT_FORMAT_ELF; | ||
39 | b. Re-program the boot configuration table, refer to tools\boot_loader\ibl\doc\README.txt on how to program | ||
40 | the boot configuration table to EEPROM. | ||
41 | |||
42 | 3. Copy tools\boot_loader\examples\i2c\nand\evmc66xxl\bin\i2cnandboot_evm66xxl.out to tools\bin2ccs and rename | ||
37 | the file to app.out. | 43 | the file to app.out. |
38 | 44 | ||
39 | 4. Double click bin2ccs.bat, which will convert app.out to a CCS format data file app.dat. | 45 | 4. Double click bin2ccs.bat, which will convert app.out to a CCS format data file app.dat. |
40 | 46 | ||
41 | 5. Copy app.dat to tools\writer\nand\evmc6xxxl\bin and refer to tools\writer\nand\docs\README.txt on how to program | 47 | 5. Copy app.dat to tools\writer\nand\evmc66xxl\bin and refer to tools\writer\nand\docs\README.txt on how to program |
42 | the app.dat to NAND flash. | 48 | the app.dat to NAND flash. |
43 | 49 | ||
44 | 7. Once the programming is completed successfully, user can set the boot mode to I2C mode with bus address 0x51 | 50 | 6. Once the programming is completed successfully, set the boot dip switches to I2C master mode, |
45 | (please refer to the EVM technical reference manual on how to set the boot mode dip switches) and | 51 | bus address 81 (0x51) and boot parameter index to be 2. |
46 | boot the Hello World image from the NAND flash after POR. | 52 | |
53 | 7. After POR, IBL will boot the hello world image from NAND. | ||
47 | 54 | ||
diff --git a/boot_loader/examples/i2c/nand/evmc6670l/.ccsproject b/boot_loader/examples/i2c/nand/evmc6670l/.ccsproject new file mode 100644 index 0000000..79d3116 --- /dev/null +++ b/boot_loader/examples/i2c/nand/evmc6670l/.ccsproject | |||
@@ -0,0 +1,10 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <?ccsproject version="1.0"?> | ||
3 | |||
4 | <projectOptions> | ||
5 | <deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/> | ||
6 | <deviceEndianness value="little"/> | ||
7 | <codegenToolVersion value="7.2.0"/> | ||
8 | <isElfFormat value="true"/> | ||
9 | <rts value="rts6600_elf.lib"/> | ||
10 | </projectOptions> | ||
diff --git a/boot_loader/examples/i2c/nand/evmc6670l/.cproject b/boot_loader/examples/i2c/nand/evmc6670l/.cproject new file mode 100644 index 0000000..da2ec0b --- /dev/null +++ b/boot_loader/examples/i2c/nand/evmc6670l/.cproject | |||
@@ -0,0 +1,82 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <?fileVersion 4.0.0?> | ||
3 | |||
4 | <cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
5 | <storageModule moduleId="org.eclipse.cdt.core.settings"> | ||
6 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513"> | ||
7 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
8 | <externalSettings/> | ||
9 | <extensions> | ||
10 | <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/> | ||
11 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
12 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
13 | <extension id="org.eclipse.rtsc.xdctools.parsers.ErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
14 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
15 | </extensions> | ||
16 | </storageModule> | ||
17 | <storageModule moduleId="org.eclipse.cdt.core.pathentry"/> | ||
18 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
19 | <configuration artifactExtension="out" artifactName="../bin/i2cnandboot_evm6670l" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="org.eclipse.rtsc.xdctools.parsers.ErrorParser;com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" name="Debug" parent="com.ti.ccstudio.buildDefinitions.C6000.Debug"> | ||
20 | <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513." name="/" resourcePath=""> | ||
21 | <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain.2097842143" name="TI Code Generation Tools" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311"> | ||
22 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.732314103" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
23 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/> | ||
24 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
25 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
26 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/> | ||
27 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/> | ||
28 | <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/> | ||
29 | <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.9;"/> | ||
30 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/> | ||
31 | </option> | ||
32 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/> | ||
33 | <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug.30003368" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug"/> | ||
34 | <builder buildPath="${workspace_loc:/i2cnandboot/Debug}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug.1571910857" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug"/> | ||
35 | <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug.1787566966" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug"> | ||
36 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING.1206666269" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING" valueType="stringList"> | ||
37 | <listOptionValue builtIn="false" value="225"/> | ||
38 | </option> | ||
39 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH.1353471041" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
40 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
41 | <listOptionValue builtIn="false" value=""${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform""/> | ||
42 | </option> | ||
43 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.1765753112" name="Application binary interface (coffabi, eabi) (--abi)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.eabi" valueType="enumerated"/> | ||
44 | <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS.397546270" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS"/> | ||
45 | <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS.1186530295" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS"/> | ||
46 | <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS.46202294" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS"/> | ||
47 | <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS.2124959934" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS"/> | ||
48 | </tool> | ||
49 | <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311" name="C6000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug"> | ||
50 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE.572435525" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE" value=""../bin/i2cnandboot_evm6670l.out"" valueType="string"/> | ||
51 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE.405326097" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE" value=""../bin/i2cnandboot_evm6670l.map"" valueType="string"/> | ||
52 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY.1992557769" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY" valueType="libs"> | ||
53 | <listOptionValue builtIn="false" value=""rts6600_elf.lib""/> | ||
54 | <listOptionValue builtIn="false" value=""ti.platform.evm6670l.ae66""/> | ||
55 | </option> | ||
56 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH.352622214" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH" valueType="stringList"> | ||
57 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
58 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
59 | <listOptionValue builtIn="false" value=""${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform/evmc6670l/platform_lib/lib/debug""/> | ||
60 | </option> | ||
61 | </tool> | ||
62 | <tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.1242540186" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool"> | ||
63 | <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.496009253" name="Code generation tool directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value=""${CG_TOOL_ROOT}"" valueType="string"/> | ||
64 | <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.1742151819" name="RTSC target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.elf.C66" valueType="string"/> | ||
65 | <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.1677251639" name="RTSC platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.evm6670" valueType="string"/> | ||
66 | <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1512447741" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/> | ||
67 | <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.997241669" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList"/> | ||
68 | </tool> | ||
69 | </toolChain> | ||
70 | </folderInfo> | ||
71 | </configuration> | ||
72 | </storageModule> | ||
73 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
74 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> | ||
75 | <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> | ||
76 | <storageModule moduleId="scannerConfiguration"/> | ||
77 | </cconfiguration> | ||
78 | </storageModule> | ||
79 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
80 | <project id="i2cnandboot.com.ti.ccstudio.buildDefinitions.C6000.ProjectType.1742876545" name="C6000" projectType="com.ti.ccstudio.buildDefinitions.C6000.ProjectType"/> | ||
81 | </storageModule> | ||
82 | </cproject> | ||
diff --git a/boot_loader/examples/i2c/nand/evmc6670l/.project b/boot_loader/examples/i2c/nand/evmc6670l/.project new file mode 100644 index 0000000..d7af0c2 --- /dev/null +++ b/boot_loader/examples/i2c/nand/evmc6670l/.project | |||
@@ -0,0 +1,96 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>i2cnandboot_evmc6670l</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <arguments> | ||
11 | <dictionary> | ||
12 | <key>?name?</key> | ||
13 | <value></value> | ||
14 | </dictionary> | ||
15 | <dictionary> | ||
16 | <key>org.eclipse.cdt.make.core.append_environment</key> | ||
17 | <value>true</value> | ||
18 | </dictionary> | ||
19 | <dictionary> | ||
20 | <key>org.eclipse.cdt.make.core.autoBuildTarget</key> | ||
21 | <value>all</value> | ||
22 | </dictionary> | ||
23 | <dictionary> | ||
24 | <key>org.eclipse.cdt.make.core.buildArguments</key> | ||
25 | <value>-k</value> | ||
26 | </dictionary> | ||
27 | <dictionary> | ||
28 | <key>org.eclipse.cdt.make.core.buildCommand</key> | ||
29 | <value>${CCS_INSTALL_ROOT}/utils/gmake/gmake</value> | ||
30 | </dictionary> | ||
31 | <dictionary> | ||
32 | <key>org.eclipse.cdt.make.core.buildLocation</key> | ||
33 | <value>${workspace_loc:/i2cnandboot/Debug}</value> | ||
34 | </dictionary> | ||
35 | <dictionary> | ||
36 | <key>org.eclipse.cdt.make.core.cleanBuildTarget</key> | ||
37 | <value>clean</value> | ||
38 | </dictionary> | ||
39 | <dictionary> | ||
40 | <key>org.eclipse.cdt.make.core.contents</key> | ||
41 | <value>org.eclipse.cdt.make.core.activeConfigSettings</value> | ||
42 | </dictionary> | ||
43 | <dictionary> | ||
44 | <key>org.eclipse.cdt.make.core.enableAutoBuild</key> | ||
45 | <value>true</value> | ||
46 | </dictionary> | ||
47 | <dictionary> | ||
48 | <key>org.eclipse.cdt.make.core.enableCleanBuild</key> | ||
49 | <value>true</value> | ||
50 | </dictionary> | ||
51 | <dictionary> | ||
52 | <key>org.eclipse.cdt.make.core.enableFullBuild</key> | ||
53 | <value>true</value> | ||
54 | </dictionary> | ||
55 | <dictionary> | ||
56 | <key>org.eclipse.cdt.make.core.fullBuildTarget</key> | ||
57 | <value>all</value> | ||
58 | </dictionary> | ||
59 | <dictionary> | ||
60 | <key>org.eclipse.cdt.make.core.stopOnError</key> | ||
61 | <value>true</value> | ||
62 | </dictionary> | ||
63 | <dictionary> | ||
64 | <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key> | ||
65 | <value>true</value> | ||
66 | </dictionary> | ||
67 | </arguments> | ||
68 | </buildCommand> | ||
69 | <buildCommand> | ||
70 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
71 | <triggers>full,incremental,</triggers> | ||
72 | <arguments> | ||
73 | </arguments> | ||
74 | </buildCommand> | ||
75 | </buildSpec> | ||
76 | <natures> | ||
77 | <nature>org.eclipse.rtsc.xdctools.buildDefinitions.XDC.xdcNature</nature> | ||
78 | <nature>com.ti.ccstudio.managedbuild.core.ccsNature</nature> | ||
79 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
80 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
81 | <nature>org.eclipse.cdt.core.ccnature</nature> | ||
82 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
83 | </natures> | ||
84 | <linkedResources> | ||
85 | <link> | ||
86 | <name>README.txt</name> | ||
87 | <type>1</type> | ||
88 | <location>TI_MCSDK_I2CEXAMPLES_DIR/nand/docs/README.txt</location> | ||
89 | </link> | ||
90 | <link> | ||
91 | <name>src</name> | ||
92 | <type>2</type> | ||
93 | <locationURI>TI_MCSDK_I2CEXAMPLES_DIR/nand/src</locationURI> | ||
94 | </link> | ||
95 | </linkedResources> | ||
96 | </projectDescription> | ||
diff --git a/boot_loader/examples/i2c/nand/evmc6670l/i2c_boot_nand_example.cmd b/boot_loader/examples/i2c/nand/evmc6670l/i2c_boot_nand_example.cmd new file mode 100644 index 0000000..cab1993 --- /dev/null +++ b/boot_loader/examples/i2c/nand/evmc6670l/i2c_boot_nand_example.cmd | |||
@@ -0,0 +1,77 @@ | |||
1 | /****************************************************************************** | ||
2 | * Copyright (c) 2011 Texas Instruments Incorporated - http://www.ti.com | ||
3 | * | ||
4 | * Redistribution and use in source and binary forms, with or without | ||
5 | * modification, are permitted provided that the following conditions | ||
6 | * are met: | ||
7 | * | ||
8 | * Redistributions of source code must retain the above copyright | ||
9 | * notice, this list of conditions and the following disclaimer. | ||
10 | * | ||
11 | * Redistributions in binary form must reproduce the above copyright | ||
12 | * notice, this list of conditions and the following disclaimer in the | ||
13 | * documentation and/or other materials provided with the | ||
14 | * distribution. | ||
15 | * | ||
16 | * Neither the name of Texas Instruments Incorporated nor the names of | ||
17 | * its contributors may be used to endorse or promote products derived | ||
18 | * from this software without specific prior written permission. | ||
19 | * | ||
20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
21 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
22 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
23 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
24 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
25 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
26 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
27 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
28 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
29 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
30 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
31 | * | ||
32 | *****************************************************************************/ | ||
33 | /* | ||
34 | * Linker command file | ||
35 | * | ||
36 | */ | ||
37 | |||
38 | -c | ||
39 | -heap 0x40000 | ||
40 | -stack 0x8000 | ||
41 | |||
42 | /* Memory Map 1 - the default */ | ||
43 | MEMORY | ||
44 | { | ||
45 | L1PSRAM (RWX) : org = 0x0E00000, len = 0x7FFF | ||
46 | L1DSRAM (RWX) : org = 0x0F00000, len = 0x7FFF | ||
47 | |||
48 | L2SRAM (RWX) : org = 0x0820000, len = 0xe0000 | ||
49 | MSMCSRAM (RWX) : org = 0xc000000, len = 0x200000 | ||
50 | DDR3 (RWX) : org = 0x80000000,len = 0x10000000 | ||
51 | } | ||
52 | |||
53 | SECTIONS | ||
54 | { | ||
55 | .csl_vect > L2SRAM | ||
56 | .cppi > L2SRAM | ||
57 | .linkram > L2SRAM | ||
58 | .mac_buffer > L2SRAM | ||
59 | platform_lib > L2SRAM | ||
60 | .text > L2SRAM | ||
61 | GROUP (NEAR_DP) | ||
62 | { | ||
63 | .neardata | ||
64 | .rodata | ||
65 | .bss | ||
66 | } load > L2SRAM | ||
67 | .stack > L2SRAM | ||
68 | .cinit > L2SRAM | ||
69 | .cio > L2SRAM | ||
70 | .const > L2SRAM | ||
71 | .data > L2SRAM | ||
72 | .switch > L2SRAM | ||
73 | .sysmem > L2SRAM | ||
74 | .far > L2SRAM | ||
75 | .testMem > L2SRAM | ||
76 | .fardata > L2SRAM | ||
77 | } | ||
diff --git a/boot_loader/examples/i2c/nand/evmc6670l/macros.ini b/boot_loader/examples/i2c/nand/evmc6670l/macros.ini new file mode 100644 index 0000000..f4e4f7b --- /dev/null +++ b/boot_loader/examples/i2c/nand/evmc6670l/macros.ini | |||
@@ -0,0 +1 @@ | |||
TI_MCSDK_I2CEXAMPLES_DIR="../../../../ | |||
diff --git a/boot_loader/examples/i2c/nand/evmc6678l/.cproject b/boot_loader/examples/i2c/nand/evmc6678l/.cproject index d67cafb..7f10c5b 100644 --- a/boot_loader/examples/i2c/nand/evmc6678l/.cproject +++ b/boot_loader/examples/i2c/nand/evmc6678l/.cproject | |||
@@ -75,6 +75,7 @@ | |||
75 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | 75 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> |
76 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> | 76 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> |
77 | <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> | 77 | <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> |
78 | <storageModule moduleId="scannerConfiguration"/> | ||
78 | </cconfiguration> | 79 | </cconfiguration> |
79 | </storageModule> | 80 | </storageModule> |
80 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | 81 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> |
diff --git a/boot_loader/examples/i2c/nand/evmc6678l/.project b/boot_loader/examples/i2c/nand/evmc6678l/.project index 50fbc4c..61e23d0 100644 --- a/boot_loader/examples/i2c/nand/evmc6678l/.project +++ b/boot_loader/examples/i2c/nand/evmc6678l/.project | |||
@@ -1,6 +1,6 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <projectDescription> | 2 | <projectDescription> |
3 | <name>i2cnandboot</name> | 3 | <name>i2cnandboot_evmc6678l</name> |
4 | <comment></comment> | 4 | <comment></comment> |
5 | <projects> | 5 | <projects> |
6 | </projects> | 6 | </projects> |
diff --git a/boot_loader/examples/i2c/nor/docs/README.txt b/boot_loader/examples/i2c/nor/docs/README.txt index 0d685b6..1718136 100644 --- a/boot_loader/examples/i2c/nor/docs/README.txt +++ b/boot_loader/examples/i2c/nor/docs/README.txt | |||
@@ -4,44 +4,42 @@ A simple Hello World example demonstrating NOR boot over I2C. | |||
4 | 4 | ||
5 | Steps to build the example: | 5 | Steps to build the example: |
6 | 6 | ||
7 | 1. Import the i2cnorboot CCS project from tools\boot_loader\examples\i2c\nor\evmc6xxxl directory. (in CCSv5, | 7 | 1. Import the i2cnorboot CCS project from tools\boot_loader\examples\i2c\nor\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 i2cnorboot project and re-build the project, after build is completed, i2cnorboot_evm6xxxl.out and | 10 | 2. Clean the i2cnorboot project and re-build the project, after build is completed, i2cnorboot_evm66xxl.out and |
11 | i2cnorboot_evm6xxxl.map will be generated under tools\boot_loader\examples\i2c\nor\evmc6xxxl\bin directory. | 11 | i2cnorboot_evm66xxl.map will be generated under tools\boot_loader\examples\i2c\nor\evmc66xxl\bin directory. |
12 | 12 | ||
13 | Steps to run i2cnorboot in CCSv5: | 13 | Steps to run i2cnorboot 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\nor\evmc6xxxl\bin\i2cnorboot_evm6xxxl.out to CCS. | 17 | 2. Load the program tools\boot_loader\examples\i2c\nor\evmc66xxl\bin\i2cnorboot_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, i2cnorboot will send the hello world booting info to both the CCS console and the |
25 | Hyper Terminal. | ||
26 | 26 | ||
27 | 27 | ||
28 | Steps to program i2cnorboot to NOR: | 28 | Steps to program i2cnorboot to NOR: |
29 | 29 | ||
30 | 1. Be sure IBL is programmed to I2C EEPROM bus address 81 (0x51), if IBL is not programmed, refer to | 30 | 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. | 31 | boot configuration table are not programmed, refer to tools\boot_loader\ibl\doc\README.txt on how to program |
32 | the IBL and boot configuration table to EEPROM. | ||
32 | 33 | ||
33 | 2. Be sure NOR boot parameter table is programmed to I2C EEPROM bus address 81 (0x51), if the table is not programmed, | 34 | 2. Copy tools\boot_loader\examples\i2c\nor\evmc66xxl\bin\i2cnorboot_evm66xxl.out to tools\bin2ccs and rename |
34 | refer to tools\boot_loader\ibl\doc\README.txt on how to program the boot parameter table to EEPROM. | ||
35 | |||
36 | 3. Copy tools\boot_loader\examples\i2c\nor\evmc6xxxl\bin\i2cnorboot_evm6xxxl.out to tools\bin2ccs and rename | ||
37 | the file to app.out. | 35 | the file to app.out. |
38 | 36 | ||
39 | 4. Double click bin2ccs.bat, which will convert app.out to a CCS format data file app.dat. | 37 | 3. Double click bin2ccs.bat, which will convert app.out to a CCS format data file app.dat. |
40 | 38 | ||
41 | 5. Copy app.dat to tools\writer\nor\evmc6xxxl\bin and refer to tools\writer\nor\docs\README.txt on how to program | 39 | 4. Copy app.dat to tools\writer\nor\evmc66xxl\bin and refer to tools\writer\nor\docs\README.txt on how to program |
42 | the app.dat to NOR flash. | 40 | the app.dat to NOR flash. |
43 | 41 | ||
44 | 7. Once the programming is completed successfully, user can set the boot mode to I2C mode with bus address 0x51 | 42 | 5. Once the programming is completed successfully, set the boot dip switches to I2C master mode, |
45 | (please refer to the EVM technical reference manual on how to set the boot mode dip switches) and | 43 | bus address 81 (0x51) and boot parameter index to be 0. |
46 | boot the Hello World image from the NOR flash after POR. | ||
47 | 44 | ||
45 | 6. After POR, IBL will boot the hello world image from NOR. | ||
diff --git a/boot_loader/examples/i2c/nor/evmc6670l/.ccsproject b/boot_loader/examples/i2c/nor/evmc6670l/.ccsproject new file mode 100644 index 0000000..79d3116 --- /dev/null +++ b/boot_loader/examples/i2c/nor/evmc6670l/.ccsproject | |||
@@ -0,0 +1,10 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <?ccsproject version="1.0"?> | ||
3 | |||
4 | <projectOptions> | ||
5 | <deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/> | ||
6 | <deviceEndianness value="little"/> | ||
7 | <codegenToolVersion value="7.2.0"/> | ||
8 | <isElfFormat value="true"/> | ||
9 | <rts value="rts6600_elf.lib"/> | ||
10 | </projectOptions> | ||
diff --git a/boot_loader/examples/i2c/nor/evmc6670l/.cproject b/boot_loader/examples/i2c/nor/evmc6670l/.cproject new file mode 100644 index 0000000..0a5aee8 --- /dev/null +++ b/boot_loader/examples/i2c/nor/evmc6670l/.cproject | |||
@@ -0,0 +1,82 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <?fileVersion 4.0.0?> | ||
3 | |||
4 | <cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
5 | <storageModule moduleId="org.eclipse.cdt.core.settings"> | ||
6 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513"> | ||
7 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
8 | <externalSettings/> | ||
9 | <extensions> | ||
10 | <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/> | ||
11 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
12 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
13 | <extension id="org.eclipse.rtsc.xdctools.parsers.ErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
14 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
15 | </extensions> | ||
16 | </storageModule> | ||
17 | <storageModule moduleId="org.eclipse.cdt.core.pathentry"/> | ||
18 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
19 | <configuration artifactExtension="out" artifactName="../bin/i2cnorboot_evm6670l" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="org.eclipse.rtsc.xdctools.parsers.ErrorParser;com.ti.ccstudio.errorparser.LinkErrorParser;com.ti.ccstudio.errorparser.CoffErrorParser;com.ti.ccstudio.errorparser.AsmErrorParser" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" name="Debug" parent="com.ti.ccstudio.buildDefinitions.C6000.Debug"> | ||
20 | <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513." name="/" resourcePath=""> | ||
21 | <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain.2097842143" name="TI Code Generation Tools" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311"> | ||
22 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.732314103" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
23 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/> | ||
24 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
25 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
26 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/> | ||
27 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/> | ||
28 | <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/> | ||
29 | <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.9;"/> | ||
30 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/> | ||
31 | </option> | ||
32 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1263633169" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/> | ||
33 | <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug.30003368" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug"/> | ||
34 | <builder buildPath="${workspace_loc:/i2cnorboot/Debug}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug.1571910857" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug"/> | ||
35 | <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug.1787566966" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug"> | ||
36 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING.1206666269" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING" valueType="stringList"> | ||
37 | <listOptionValue builtIn="false" value="225"/> | ||
38 | </option> | ||
39 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH.1353471041" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
40 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
41 | <listOptionValue builtIn="false" value=""${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform""/> | ||
42 | </option> | ||
43 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.1765753112" name="Application binary interface (coffabi, eabi) (--abi)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.eabi" valueType="enumerated"/> | ||
44 | <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS.397546270" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS"/> | ||
45 | <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS.1186530295" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS"/> | ||
46 | <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS.46202294" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS"/> | ||
47 | <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS.2124959934" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS"/> | ||
48 | </tool> | ||
49 | <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.854128311" name="C6000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug"> | ||
50 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE.572435525" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE" value=""../bin/i2cnorboot_evm6670l.out"" valueType="string"/> | ||
51 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE.405326097" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE" value=""../bin/i2cnorboot_evm6670l.map"" valueType="string"/> | ||
52 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY.1992557769" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY" valueType="libs"> | ||
53 | <listOptionValue builtIn="false" value=""rts6600_elf.lib""/> | ||
54 | <listOptionValue builtIn="false" value=""ti.platform.evm6670l.ae66""/> | ||
55 | </option> | ||
56 | <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH.352622214" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH" valueType="stringList"> | ||
57 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
58 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
59 | <listOptionValue builtIn="false" value=""${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform/evmc6670l/platform_lib/lib/debug""/> | ||
60 | </option> | ||
61 | </tool> | ||
62 | <tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.1242540186" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool"> | ||
63 | <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.496009253" name="Code generation tool directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value=""${CG_TOOL_ROOT}"" valueType="string"/> | ||
64 | <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.1742151819" name="RTSC target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.elf.C66" valueType="string"/> | ||
65 | <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.1677251639" name="RTSC platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.evm6670" valueType="string"/> | ||
66 | <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1512447741" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/> | ||
67 | <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.997241669" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList"/> | ||
68 | </tool> | ||
69 | </toolChain> | ||
70 | </folderInfo> | ||
71 | </configuration> | ||
72 | </storageModule> | ||
73 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
74 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> | ||
75 | <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> | ||
76 | <storageModule moduleId="scannerConfiguration"/> | ||
77 | </cconfiguration> | ||
78 | </storageModule> | ||
79 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
80 | <project id="i2cnorboot.com.ti.ccstudio.buildDefinitions.C6000.ProjectType.1742876545" name="C6000" projectType="com.ti.ccstudio.buildDefinitions.C6000.ProjectType"/> | ||
81 | </storageModule> | ||
82 | </cproject> | ||
diff --git a/boot_loader/examples/i2c/nor/evmc6670l/.project b/boot_loader/examples/i2c/nor/evmc6670l/.project new file mode 100644 index 0000000..0b1d76f --- /dev/null +++ b/boot_loader/examples/i2c/nor/evmc6670l/.project | |||
@@ -0,0 +1,96 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>i2cnorboot_evmc6670l</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <arguments> | ||
11 | <dictionary> | ||
12 | <key>?name?</key> | ||
13 | <value></value> | ||
14 | </dictionary> | ||
15 | <dictionary> | ||
16 | <key>org.eclipse.cdt.make.core.append_environment</key> | ||
17 | <value>true</value> | ||
18 | </dictionary> | ||
19 | <dictionary> | ||
20 | <key>org.eclipse.cdt.make.core.autoBuildTarget</key> | ||
21 | <value>all</value> | ||
22 | </dictionary> | ||
23 | <dictionary> | ||
24 | <key>org.eclipse.cdt.make.core.buildArguments</key> | ||
25 | <value>-k</value> | ||
26 | </dictionary> | ||
27 | <dictionary> | ||
28 | <key>org.eclipse.cdt.make.core.buildCommand</key> | ||
29 | <value>${CCS_INSTALL_ROOT}/utils/gmake/gmake</value> | ||
30 | </dictionary> | ||
31 | <dictionary> | ||
32 | <key>org.eclipse.cdt.make.core.buildLocation</key> | ||
33 | <value>${workspace_loc:/i2cnorboot/Debug}</value> | ||
34 | </dictionary> | ||
35 | <dictionary> | ||
36 | <key>org.eclipse.cdt.make.core.cleanBuildTarget</key> | ||
37 | <value>clean</value> | ||
38 | </dictionary> | ||
39 | <dictionary> | ||
40 | <key>org.eclipse.cdt.make.core.contents</key> | ||
41 | <value>org.eclipse.cdt.make.core.activeConfigSettings</value> | ||
42 | </dictionary> | ||
43 | <dictionary> | ||
44 | <key>org.eclipse.cdt.make.core.enableAutoBuild</key> | ||
45 | <value>true</value> | ||
46 | </dictionary> | ||
47 | <dictionary> | ||
48 | <key>org.eclipse.cdt.make.core.enableCleanBuild</key> | ||
49 | <value>true</value> | ||
50 | </dictionary> | ||
51 | <dictionary> | ||
52 | <key>org.eclipse.cdt.make.core.enableFullBuild</key> | ||
53 | <value>true</value> | ||
54 | </dictionary> | ||
55 | <dictionary> | ||
56 | <key>org.eclipse.cdt.make.core.fullBuildTarget</key> | ||
57 | <value>all</value> | ||
58 | </dictionary> | ||
59 | <dictionary> | ||
60 | <key>org.eclipse.cdt.make.core.stopOnError</key> | ||
61 | <value>true</value> | ||
62 | </dictionary> | ||
63 | <dictionary> | ||
64 | <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key> | ||
65 | <value>true</value> | ||
66 | </dictionary> | ||
67 | </arguments> | ||
68 | </buildCommand> | ||
69 | <buildCommand> | ||
70 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
71 | <triggers>full,incremental,</triggers> | ||
72 | <arguments> | ||
73 | </arguments> | ||
74 | </buildCommand> | ||
75 | </buildSpec> | ||
76 | <natures> | ||
77 | <nature>org.eclipse.rtsc.xdctools.buildDefinitions.XDC.xdcNature</nature> | ||
78 | <nature>com.ti.ccstudio.managedbuild.core.ccsNature</nature> | ||
79 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
80 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
81 | <nature>org.eclipse.cdt.core.ccnature</nature> | ||
82 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
83 | </natures> | ||
84 | <linkedResources> | ||
85 | <link> | ||
86 | <name>README.txt</name> | ||
87 | <type>1</type> | ||
88 | <location>TI_MCSDK_I2CEXAMPLES_DIR/nor/docs/README.txt</location> | ||
89 | </link> | ||
90 | <link> | ||
91 | <name>src</name> | ||
92 | <type>2</type> | ||
93 | <locationURI>TI_MCSDK_I2CEXAMPLES_DIR/nor/src</locationURI> | ||
94 | </link> | ||
95 | </linkedResources> | ||
96 | </projectDescription> | ||
diff --git a/boot_loader/examples/i2c/nor/evmc6670l/i2c_boot_nor_example.cmd b/boot_loader/examples/i2c/nor/evmc6670l/i2c_boot_nor_example.cmd new file mode 100644 index 0000000..cab1993 --- /dev/null +++ b/boot_loader/examples/i2c/nor/evmc6670l/i2c_boot_nor_example.cmd | |||
@@ -0,0 +1,77 @@ | |||
1 | /****************************************************************************** | ||
2 | * Copyright (c) 2011 Texas Instruments Incorporated - http://www.ti.com | ||
3 | * | ||
4 | * Redistribution and use in source and binary forms, with or without | ||
5 | * modification, are permitted provided that the following conditions | ||
6 | * are met: | ||
7 | * | ||
8 | * Redistributions of source code must retain the above copyright | ||
9 | * notice, this list of conditions and the following disclaimer. | ||
10 | * | ||
11 | * Redistributions in binary form must reproduce the above copyright | ||
12 | * notice, this list of conditions and the following disclaimer in the | ||
13 | * documentation and/or other materials provided with the | ||
14 | * distribution. | ||
15 | * | ||
16 | * Neither the name of Texas Instruments Incorporated nor the names of | ||
17 | * its contributors may be used to endorse or promote products derived | ||
18 | * from this software without specific prior written permission. | ||
19 | * | ||
20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
21 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
22 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
23 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
24 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
25 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
26 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
27 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
28 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
29 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
30 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
31 | * | ||
32 | *****************************************************************************/ | ||
33 | /* | ||
34 | * Linker command file | ||
35 | * | ||
36 | */ | ||
37 | |||
38 | -c | ||
39 | -heap 0x40000 | ||
40 | -stack 0x8000 | ||
41 | |||
42 | /* Memory Map 1 - the default */ | ||
43 | MEMORY | ||
44 | { | ||
45 | L1PSRAM (RWX) : org = 0x0E00000, len = 0x7FFF | ||
46 | L1DSRAM (RWX) : org = 0x0F00000, len = 0x7FFF | ||
47 | |||
48 | L2SRAM (RWX) : org = 0x0820000, len = 0xe0000 | ||
49 | MSMCSRAM (RWX) : org = 0xc000000, len = 0x200000 | ||
50 | DDR3 (RWX) : org = 0x80000000,len = 0x10000000 | ||
51 | } | ||
52 | |||
53 | SECTIONS | ||
54 | { | ||
55 | .csl_vect > L2SRAM | ||
56 | .cppi > L2SRAM | ||
57 | .linkram > L2SRAM | ||
58 | .mac_buffer > L2SRAM | ||
59 | platform_lib > L2SRAM | ||
60 | .text > L2SRAM | ||
61 | GROUP (NEAR_DP) | ||
62 | { | ||
63 | .neardata | ||
64 | .rodata | ||
65 | .bss | ||
66 | } load > L2SRAM | ||
67 | .stack > L2SRAM | ||
68 | .cinit > L2SRAM | ||
69 | .cio > L2SRAM | ||
70 | .const > L2SRAM | ||
71 | .data > L2SRAM | ||
72 | .switch > L2SRAM | ||
73 | .sysmem > L2SRAM | ||
74 | .far > L2SRAM | ||
75 | .testMem > L2SRAM | ||
76 | .fardata > L2SRAM | ||
77 | } | ||
diff --git a/boot_loader/examples/i2c/nor/evmc6670l/macros.ini b/boot_loader/examples/i2c/nor/evmc6670l/macros.ini new file mode 100644 index 0000000..f4e4f7b --- /dev/null +++ b/boot_loader/examples/i2c/nor/evmc6670l/macros.ini | |||
@@ -0,0 +1 @@ | |||
TI_MCSDK_I2CEXAMPLES_DIR="../../../../ | |||
diff --git a/boot_loader/examples/i2c/nor/evmc6678l/.cproject b/boot_loader/examples/i2c/nor/evmc6678l/.cproject index 7c5cd2d..9d9e256 100644 --- a/boot_loader/examples/i2c/nor/evmc6678l/.cproject +++ b/boot_loader/examples/i2c/nor/evmc6678l/.cproject | |||
@@ -75,6 +75,7 @@ | |||
75 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | 75 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> |
76 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> | 76 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/> |
77 | <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> | 77 | <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> |
78 | <storageModule moduleId="scannerConfiguration"/> | ||
78 | </cconfiguration> | 79 | </cconfiguration> |
79 | </storageModule> | 80 | </storageModule> |
80 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | 81 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> |
diff --git a/boot_loader/examples/i2c/nor/evmc6678l/.project b/boot_loader/examples/i2c/nor/evmc6678l/.project index 4933746..e1b9f97 100644 --- a/boot_loader/examples/i2c/nor/evmc6678l/.project +++ b/boot_loader/examples/i2c/nor/evmc6678l/.project | |||
@@ -1,6 +1,6 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <projectDescription> | 2 | <projectDescription> |
3 | <name>i2cnorboot</name> | 3 | <name>i2cnorboot_evmc6678l</name> |
4 | <comment></comment> | 4 | <comment></comment> |
5 | <projects> | 5 | <projects> |
6 | </projects> | 6 | </projects> |