summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Pang2012-05-09 18:54:57 -0500
committerIvan Pang2012-05-09 18:54:57 -0500
commit2c385bf82cea0003a127b1b020458879f5a9ad67 (patch)
treeefadfaa531731d27e5d82dda7b3780f30cd4eaa1 /boot_loader/examples/srio/srioboot_helloworld
parenta2c2ce580c7d420df64c1062325a35f1b638169a (diff)
downloadmcsdk-tools-2c385bf82cea0003a127b1b020458879f5a9ad67.tar.gz
mcsdk-tools-2c385bf82cea0003a127b1b020458879f5a9ad67.tar.xz
mcsdk-tools-2c385bf82cea0003a127b1b020458879f5a9ad67.zip
Updates for SRIO boot examples for Gauss
Diffstat (limited to 'boot_loader/examples/srio/srioboot_helloworld')
-rw-r--r--boot_loader/examples/srio/srioboot_helloworld/evmc6657l/.ccsproject10
-rw-r--r--boot_loader/examples/srio/srioboot_helloworld/evmc6657l/.cproject93
-rw-r--r--boot_loader/examples/srio/srioboot_helloworld/evmc6657l/.project102
-rw-r--r--boot_loader/examples/srio/srioboot_helloworld/evmc6657l/bin/header.txt33
-rw-r--r--boot_loader/examples/srio/srioboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.bat27
-rw-r--r--boot_loader/examples/srio/srioboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.sh22
-rw-r--r--boot_loader/examples/srio/srioboot_helloworld/evmc6657l/bin/helloworld_image.rmd11
-rw-r--r--boot_loader/examples/srio/srioboot_helloworld/evmc6657l/macros.ini1
-rw-r--r--boot_loader/examples/srio/srioboot_helloworld/evmc6657l/srioboot_helloworld.cmd74
-rw-r--r--boot_loader/examples/srio/srioboot_helloworld/src/srioboot_helloworld.c4
10 files changed, 377 insertions, 0 deletions
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/.ccsproject b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/.ccsproject
new file mode 100644
index 0000000..f8e7770
--- /dev/null
+++ b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/.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.4"/>
8<isElfFormat value="true"/>
9<rts value="rts6600_elf.lib"/>
10</projectOptions>
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/.cproject b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/.cproject
new file mode 100644
index 0000000..226d8b7
--- /dev/null
+++ b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/.cproject
@@ -0,0 +1,93 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<?fileVersion 4.0.0?>
3
4<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
5 <storageModule configRelations="2" 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 <macros>
9 <stringMacro name="TI_MCSDK_SRIOBOOT_DIR" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
10 </macros>
11 <externalSettings/>
12 <extensions>
13 <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
14 <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
15 <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
16 <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
17 </extensions>
18 </storageModule>
19 <storageModule moduleId="org.eclipse.cdt.core.pathentry"/>
20 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
21 <configuration artifactExtension="out" artifactName="../bin/srioboot_helloworld_evm6657l" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" errorParsers="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">
22 <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513." name="/" resourcePath="">
23 <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.DebugToolchain.1438462952" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.linkerDebug.1493407596">
24 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.2072109973" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
25 <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C6000.GenericC66xxDevice"/>
26 <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
27 <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
28 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.1.0.01"/>
29 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
30 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6657:1.0.0.0;"/>
31 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
32 </option>
33 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1659337050" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.3.1" valueType="string"/>
34 <targetPlatform id="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.targetPlatformDebug.194494051" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.targetPlatformDebug"/>
35 <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.builderDebug.1830160955" name="GNU Make.Debug" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.builderDebug"/>
36 <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.compilerDebug.1322883373" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.compilerDebug">
37 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.SILICON_VERSION.2017599174" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.SILICON_VERSION" value="6600" valueType="string"/>
38 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DEBUGGING_MODEL.1158287809" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
39 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DEFINE.492436224" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DEFINE" valueType="definedSymbols">
40 <listOptionValue builtIn="false" value="_EVMC6657L_"/>
41 </option>
42 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.INCLUDE_PATH.1985071324" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.INCLUDE_PATH" valueType="includePath">
43 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
44 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6657_INSTALL_DIR}/packages/ti/platform&quot;"/>
45 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6657_INSTALL_DIR}/packages&quot;"/>
46 </option>
47 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DIAG_WARNING.1188872761" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DIAG_WARNING" valueType="stringList">
48 <listOptionValue builtIn="false" value="225"/>
49 </option>
50 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.ABI.704879091" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.ABI" value="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.ABI.eabi" valueType="enumerated"/>
51 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DISPLAY_ERROR_NUMBER.9754002" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
52 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compiler.inputType__C_SRCS.272903696" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compiler.inputType__C_SRCS"/>
53 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compiler.inputType__CPP_SRCS.998738679" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compiler.inputType__CPP_SRCS"/>
54 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compiler.inputType__ASM_SRCS.1459648526" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compiler.inputType__ASM_SRCS"/>
55 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.3.compiler.inputType__ASM2_SRCS.1930196670" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.compiler.inputType__ASM2_SRCS"/>
56 </tool>
57 <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.linkerDebug.1493407596" name="C6000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.exe.linkerDebug">
58 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.linkerID.OUTPUT_FILE.746501250" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.linkerID.OUTPUT_FILE" value="&quot;../bin/srioboot_helloworld_evm6657l.out&quot;" valueType="string"/>
59 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.linkerID.MAP_FILE.1160608194" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.linkerID.MAP_FILE" value="&quot;../bin/srioboot_helloworld_evm6657l.map&quot;" valueType="string"/>
60 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.linkerID.LIBRARY.725706451" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.linkerID.LIBRARY" valueType="libs">
61 <listOptionValue builtIn="false" value="&quot;ti.platform.evm6657l.ae66&quot;"/>
62 <listOptionValue builtIn="false" value="&quot;libc.a&quot;"/>
63 </option>
64 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.3.linkerID.SEARCH_PATH.912370057" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.3.linkerID.SEARCH_PATH" valueType="stringList">
65 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/lib&quot;"/>
66 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
67 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6657_INSTALL_DIR}/packages/ti/platform/evmc6657l/platform_lib/lib/debug&quot;"/>
68 </option>
69 </tool>
70 </toolChain>
71 </folderInfo>
72 </configuration>
73 </storageModule>
74 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
75 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
76 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
77 </cconfiguration>
78 </storageModule>
79 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
80 <project id="srioboot_helloworld.com.ti.ccstudio.buildDefinitions.C6000.ProjectType.1742876545" name="C6000" projectType="com.ti.ccstudio.buildDefinitions.C6000.ProjectType"/>
81 </storageModule>
82 <storageModule moduleId="org.eclipse.cdt.core.language.mapping">
83 <project-mappings>
84 <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
85 <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
86 <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
87 <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
88 <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
89 </project-mappings>
90 </storageModule>
91 <storageModule moduleId="refreshScope"/>
92 <storageModule moduleId="scannerConfiguration"/>
93</cproject>
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/.project b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/.project
new file mode 100644
index 0000000..a3492c1
--- /dev/null
+++ b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/.project
@@ -0,0 +1,102 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<projectDescription>
3 <name>srioboot_helloworld_evmc6657l</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_UTILS_DIR}/bin/gmake</value>
30 </dictionary>
31 <dictionary>
32 <key>org.eclipse.cdt.make.core.buildLocation</key>
33 <value>${BuildDirectory}</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>false</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>com.ti.ccstudio.managedbuild.core.ccsNature</nature>
78 <nature>com.ti.ccstudio.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.pdf</name>
87 <type>1</type>
88 <locationURI>TI_MCSDK_SRIOBOOT_DIR/docs/README.pdf</locationURI>
89 </link>
90 <link>
91 <name>src</name>
92 <type>2</type>
93 <locationURI>TI_MCSDK_SRIOBOOT_DIR/srioboot_helloworld/src</locationURI>
94 </link>
95 </linkedResources>
96 <variableList>
97 <variable>
98 <name>TI_MCSDK_SRIOBOOT_DIR</name>
99 <value>$%7BPARENT-2-PROJECT_LOC%7D</value>
100 </variable>
101 </variableList>
102</projectDescription>
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/bin/header.txt b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/bin/header.txt
new file mode 100644
index 0000000..9786996
--- /dev/null
+++ b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/bin/header.txt
@@ -0,0 +1,33 @@
1/*
2 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33 */
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.bat b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.bat
new file mode 100644
index 0000000..d58788c
--- /dev/null
+++ b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.bat
@@ -0,0 +1,27 @@
1set C6000_CG_DIR="C:\ti\ccsv5\tools\compiler\c6000"
2set TOOL_DIR="..\..\..\..\..\..\"
3set TARGET=6657
4set ENDIAN=little
5set PATH=%PATH%;%SystemRoot%\system32;%SystemRoot%;
6
7
8@echo off
9
10echo C6000_CG_DIR set as: %C6000_CG_DIR%
11echo TARGET set as: %TARGET%
12echo IBL_ROOT_DIR set as : %IBL_ROOT_DIR%
13
14echo Converting .out to HEX ...
15if %ENDIAN% == little (
16%C6000_CG_DIR%\bin\hex6x -order L helloworld_image.rmd srioboot_helloworld_evm%TARGET%l.out
17) else (
18%C6000_CG_DIR%\bin\hex6x -order M helloworld_image.rmd srioboot_helloworld_evm%TARGET%l.out
19)
20
21..\..\..\..\..\..\bttbl2hfile\Bttbl2Hfile srioboot_helloworld.btbl srioboot_helloworld.h srioboot_helloworld.bin
22
23..\..\..\..\..\..\hfile2array\hfile2array srioboot_helloworld.h srioBootCode.h bootCode
24
25move srioBootCode.h ..\..\..\srioboot_example\src\
26
27
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.sh b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.sh
new file mode 100644
index 0000000..e5722d3
--- /dev/null
+++ b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/bin/helloworld_elf2HBin.sh
@@ -0,0 +1,22 @@
1export CGT_INSTALL_DIR=~/ti/TI_CGT_C6000_7.2.4
2export TOOL_DIR="../../../../../../"
3export TARGET=6678
4export ENDIAN=little
5
6echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
7echo TARGET set as: ${TARGET}
8echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}
9
10echo Converting .out to HEX ...
11if [ ${ENDIAN} == little ]
12then
13${CGT_INSTALL_DIR}/bin/hex6x -order L helloworld_image.rmd srioboot_helloworld_evm${TARGET}l.out
14else
15${CGT_INSTALL_DIR}/bin/hex6x -order M helloworld_image.rmd srioboot_helloworld_evm${TARGET}l.out
16fi
17
18../../../../../../bttbl2hfile/Bttbl2Hfile srioboot_helloworld.btbl srioboot_helloworld.h srioboot_helloworld.bin
19
20../../../../../../hfile2array/hfile2array srioboot_helloworld.h srioBootCode.h bootCode
21
22mv srioBootCode.h ../../../srioboot_example/src/
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/bin/helloworld_image.rmd b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/bin/helloworld_image.rmd
new file mode 100644
index 0000000..d5410cc
--- /dev/null
+++ b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/bin/helloworld_image.rmd
@@ -0,0 +1,11 @@
1-a
2-boot
3-e _c_int00
4
5ROMS
6{
7 ROM1: org = 0xc000000, length = 0x20000, memwidth = 32, romwidth = 32
8 files = { srioboot_helloworld.btbl }
9}
10
11
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/macros.ini b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/macros.ini
new file mode 100644
index 0000000..6be232e
--- /dev/null
+++ b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/macros.ini
@@ -0,0 +1 @@
TI_MCSDK_SRIOBOOT_DIR="../../../../
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/srioboot_helloworld.cmd b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/srioboot_helloworld.cmd
new file mode 100644
index 0000000..05ca549
--- /dev/null
+++ b/boot_loader/examples/srio/srioboot_helloworld/evmc6657l/srioboot_helloworld.cmd
@@ -0,0 +1,74 @@
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 0x2000
40-stack 0x2000
41
42/* Memory Map 1 - the default */
43MEMORY
44{
45 DDR (RWX) : org = 0x80000000, len = 0x20000000
46}
47
48SECTIONS
49{
50 .text:_boot_entry > DDR
51 .csl_vect > DDR
52 .cppi > DDR
53 .linkram > DDR
54 .mac_buffer > DDR
55 platform_lib > DDR
56 .text > DDR
57 GROUP (NEAR_DP)
58 {
59 .neardata
60 .rodata
61 .bss
62 } load > DDR
63 .stack > DDR
64 .cinit > DDR
65 .cio > DDR
66 .const > DDR
67 .data > DDR
68 .switch > DDR
69 .sysmem > DDR
70 .far > DDR
71 .testMem > DDR
72 .fardata > DDR
73}
74
diff --git a/boot_loader/examples/srio/srioboot_helloworld/src/srioboot_helloworld.c b/boot_loader/examples/srio/srioboot_helloworld/src/srioboot_helloworld.c
index 0eedb41..87aeba9 100644
--- a/boot_loader/examples/srio/srioboot_helloworld/src/srioboot_helloworld.c
+++ b/boot_loader/examples/srio/srioboot_helloworld/src/srioboot_helloworld.c
@@ -52,6 +52,10 @@
52#define KICK1 (CHIP_LEVEL_REG + 0x003C) 52#define KICK1 (CHIP_LEVEL_REG + 0x003C)
53 53
54/* Magic address RBL is polling */ 54/* Magic address RBL is polling */
55#ifdef _EVMC6657L_
56#define MAGIC_ADDR 0x8ffffc
57#endif
58
55#ifdef _EVMC6678L_ 59#ifdef _EVMC6678L_
56#define MAGIC_ADDR 0x87fffc 60#define MAGIC_ADDR 0x87fffc
57#endif 61#endif