summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHao Zhang2011-08-29 14:55:35 -0500
committerHao Zhang2011-08-29 14:55:35 -0500
commitccbda54b08b4c74b68f9c55489a091270489ec97 (patch)
tree4e6a1ab70305bd7d7627263900d1e413e4d7bbb6
parentd76f90755d114e3a1316449bbdc396f059a61b69 (diff)
downloadmcsdk-tools-ccbda54b08b4c74b68f9c55489a091270489ec97.tar.gz
mcsdk-tools-ccbda54b08b4c74b68f9c55489a091270489ec97.tar.xz
mcsdk-tools-ccbda54b08b4c74b68f9c55489a091270489ec97.zip
Add MAD boot example for SCBP6618XSC-MCSDK-01.00.00.05DEV.SC-MCSDK-01.00.00.06
-rw-r--r--boot_loader/examples/mad/docs/README.txt71
-rw-r--r--boot_loader/examples/mad/mad_helloworld/scbp6618x/.ccsproject10
-rw-r--r--boot_loader/examples/mad/mad_helloworld/scbp6618x/.cproject161
-rw-r--r--boot_loader/examples/mad/mad_helloworld/scbp6618x/.project96
-rw-r--r--boot_loader/examples/mad/mad_helloworld/scbp6618x/macros.ini1
-rw-r--r--boot_loader/examples/mad/mad_helloworld/scbp6618x/mad_helloworld.cmd76
-rw-r--r--boot_loader/examples/mad/mad_helloworld/src/mad_helloworld.c102
-rw-r--r--boot_loader/examples/mad/utils/scbp6618x/build_mad_image_be.bat6
-rw-r--r--boot_loader/examples/mad/utils/scbp6618x/build_mad_image_le.bat6
-rw-r--r--boot_loader/examples/mad/utils/scbp6618x/config-files/deployment_template_scbp6618x_windows_be.json69
-rw-r--r--boot_loader/examples/mad/utils/scbp6618x/config-files/deployment_template_scbp6618x_windows_le.json69
-rw-r--r--boot_loader/examples/mad/utils/scbp6618x/config-files/maptoolCfg_scbp6618x_windows_be.json9
-rw-r--r--boot_loader/examples/mad/utils/scbp6618x/config-files/maptoolCfg_scbp6618x_windows_le.json9
-rwxr-xr-xboot_loader/examples/pcie/pcieboot_ddrinit/evmc6670l/bin/pcieboot_ddrinit_elf2HBin.sh40
14 files changed, 705 insertions, 20 deletions
diff --git a/boot_loader/examples/mad/docs/README.txt b/boot_loader/examples/mad/docs/README.txt
new file mode 100644
index 0000000..10d660a
--- /dev/null
+++ b/boot_loader/examples/mad/docs/README.txt
@@ -0,0 +1,71 @@
1Introduction:
2
3A simple example using MAD tools to link NDK Client image (running on Core 0) and Hello World image (running on
4non-zero Cores) into a BBLOB image with MAD loader. The BBLOB image can be loaded by IBL via TFTP and the MAD loader will
5boot NDK Client on Core 0 and Hello World on non-zero Cores.
6
7
8Directory structure:
9
10docs - directory contains the README.txt
11mad_helloworld - directory contains the Hello World example
12utils - directory contains utilities used with this example (e.g. MAD tool configurations)
13
14
15Steps to build the Hello World example:
16
171. Import the mad_helloworld CCS project from tools\boot_loader\examples\mad\mad_helloworld\scbp6618x directory. (in CCSv5,
18 Project->Import Existing CCS/CCE Eclipse Projects)
19
202. Clean the mad_helloworld project and re-build the project, after build is completed, mad_helloworld_scbp6618x.out and
21 mad_helloworld_scbp6618x.map will be generated under tools\boot_loader\examples\mad\mad_helloworld\scbp6618x\Debug directory
22 (for little endian build) or tools\boot_loader\examples\mad\mad_helloworld\scbp6618x\DebugBE directory (for big enidan build).
23
24
25Steps to build the NDK Client example:
26
271. Import the NDK Client CCS project from examples\ndk\client\scbp6618x directory. (in CCSv5,
28 Project->Import Existing CCS/CCE Eclipse Projects)
29
302. Clean the NDK Client project and re-build the project, after build is completed, client_scbp6618x.out and
31 client_scbp6618x.map will be generated under examples\ndk\client\scbp6618x\Debug directory
32 (for little endian build) or examples\ndk\client\scbp6618x\DebugBE directory (for big enidan build).
33
34
35Multicore booting using MAD utilities (2.0.1+ feature)
36
37The detailed information on the Multicore Application Deployment a.k.a MAD utility is provided in MAD user guide page.
38The BIOS MCSDK installation provides MAD tool in <MCSDK INSTALL DIR>\tools\boot_loader\mad-utils. This package contains
39necessary tools to link multiple applications to a single bootable image.
40
41The NDK Client and Hello World should have following updates to create a MAD image:
42
431. The master (NDK Client) and slave (Hello World) images are linked with --dynamic and --relocatable options.
442. The MAD config files (both little and big endians) used to link the master and slave programs are provided in
45 tools\boot_loader\examples\mad\utils\scbp6618x\config-files. Following are few items to note on the config file.
46 * maptoolCfg_scbp6618x_windows_#e.json has the directory and file name information for the tools
47 * deployment_template_scbp6618x_windows_#e.json has the deployment configuration (it has device name, partition
48 and application information).
49 * For C66x devices, the physical address is 36 bits and virtual address is 32 bits
50 * The secNamePat element string is a regular expression string
51 * The sections bss, neardata, rodata must be placed in one partition and in the order it is shown here
523. The build script tools\boot_loader\examples\mad\utils\scbp6618xl\build_mad_image_#e.bat can be used to re-create the image,
53 customer may need to modify the script to set the PATH of the Code Gen and Python tools installed.
544. The bootable image is placed in tools\boot_loader\examples\mad\utils\scbp6618x\images
55
56
57Booting the application image using IBL
58
59 Please refer to tools\boot_loader\ibl\doc\scbp6618-instructions.txt, after the IBL boots the application image,
60 Core 0 will be running NDK client server and print out the server IP address to the UART console, non-zero cores
61 will be running the Hello World and write 0xBABEFACE to the last word of local L2 memory (0x8ffffc for C6670).
62
63 To verify the IBL booting, customer can set the pin 8 to "off" on dip switch S1 to print the DSP UART output and
64 use TELNET to connect to ARM to send the commands.
65
66Notes:
671. Please refer to the MAD Utilities User's Guide (http://processors.wiki.ti.com/index.php/MAD_Utils_User_Guide) for
68 more details.
692. Please refer to the Image Processing User's Guide
70 (http://processors.wiki.ti.com/index.php/MCSDK_Image_Processing_Demonstration_Guide) for more details.
71
diff --git a/boot_loader/examples/mad/mad_helloworld/scbp6618x/.ccsproject b/boot_loader/examples/mad/mad_helloworld/scbp6618x/.ccsproject
new file mode 100644
index 0000000..f8e7770
--- /dev/null
+++ b/boot_loader/examples/mad/mad_helloworld/scbp6618x/.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/mad/mad_helloworld/scbp6618x/.cproject b/boot_loader/examples/mad/mad_helloworld/scbp6618x/.cproject
new file mode 100644
index 0000000..697565a
--- /dev/null
+++ b/boot_loader/examples/mad/mad_helloworld/scbp6618x/.cproject
@@ -0,0 +1,161 @@
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 configRelations="2" moduleId="org.eclipse.cdt.core.settings">
6 <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513.836429177">
7 <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513.836429177" moduleId="org.eclipse.cdt.core.settings" name="DebugBE">
8 <externalSettings/>
9 <extensions>
10 <extension id="com.ti.ccstudio.binaryparser.CoffParser" 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="mad_helloworld_scbp6618x" 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.836429177" name="DebugBE" parent="com.ti.ccstudio.buildDefinitions.C6000.Debug">
20 <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513.836429177." name="/" resourcePath="">
21 <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain.1944395835" 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.1362810604">
22 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1707599342" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
23 <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C6000.GenericC66xxDevice"/>
24 <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=big"/>
25 <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
26 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.3"/>
27 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
28 <listOptionValue builtIn="false" value="XDC_VERSION=3.22.01.21"/>
29 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.12;"/>
30 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
31 </option>
32 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.644397581" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.4" valueType="string"/>
33 <targetPlatform id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug.1738501202" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug"/>
34 <builder buildPath="${workspace_loc:/mad_helloworld_scbp6618x/DebugBE}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug.431934824" 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.1662302665" 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.148600442" name="Treat diagnostic &lt;id&gt; 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.SILICON_VERSION.138750529" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.SILICON_VERSION" value="6600" valueType="string"/>
40 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH.595466618" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH" valueType="includePath">
41 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
42 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform&quot;"/>
43 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages&quot;"/>
44 </option>
45 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.1685104587" 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"/>
46 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.BIG_ENDIAN.261050550" name="Generate big endian code (--big_endian, -me)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.BIG_ENDIAN" value="true" valueType="boolean"/>
47 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEFINE.609729872" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEFINE" valueType="definedSymbols"/>
48 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS.250710220" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS"/>
49 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS.1309036871" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS"/>
50 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS.1152934171" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS"/>
51 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS.1558172058" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS"/>
52 </tool>
53 <tool commandLinePattern="${command} ${flags} --dynamic ${output_flag} ${output} ${inputs}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.1362810604" name="C6000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug">
54 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE.99238417" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE" value="&quot;mad_helloworld_scbp6618x.out&quot;" valueType="string"/>
55 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE.1181690549" name="Input and output sections listed into &lt;file&gt; (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE" value="&quot;mad_helloworld_scbp6618x.map&quot;" valueType="string"/>
56 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY.462154484" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY" valueType="libs">
57 <listOptionValue builtIn="false" value="&quot;ti.platform.scbp6618x.ae66e&quot;"/>
58 <listOptionValue builtIn="false" value="&quot;libc.a&quot;"/>
59 </option>
60 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH.178902111" name="Add &lt;dir&gt; to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH" valueType="stringList">
61 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/lib&quot;"/>
62 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
63 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform/scbp6618x/platform_lib/lib/debug&quot;"/>
64 </option>
65 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.RELOCATABLE.1535000250" name="Produce a relocatable output module (--relocatable, -r)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.RELOCATABLE" value="true" valueType="boolean"/>
66 </tool>
67 <tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.1804975726" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool">
68 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.1112999895" name="RTSC target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.elf.C66_big_endian" valueType="string"/>
69 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.1623023890" name="RTSC platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.evm6670" valueType="string"/>
70 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.721320215" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/>
71 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.1530838237" name="Code generation tool directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value="&quot;${CG_TOOL_ROOT}&quot;" valueType="string"/>
72 </tool>
73 </toolChain>
74 </folderInfo>
75 </configuration>
76 </storageModule>
77 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
78 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
79 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
80 <storageModule moduleId="scannerConfiguration"/>
81 </cconfiguration>
82 <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.773105805">
83 <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.773105805" moduleId="org.eclipse.cdt.core.settings" name="Debug">
84 <externalSettings/>
85 <extensions>
86 <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
87 <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
88 <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
89 <extension id="org.eclipse.rtsc.xdctools.parsers.ErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
90 <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
91 </extensions>
92 </storageModule>
93 <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
94 <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
95 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
96 <configuration artifactExtension="out" artifactName="mad_helloworld_scbp6618x" 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.773105805" name="Debug" parent="com.ti.ccstudio.buildDefinitions.C6000.Debug">
97 <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.773105805." name="/" resourcePath="">
98 <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain.527968579" 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.1457152405">
99 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1814103903" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
100 <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C6000.GenericC66xxDevice"/>
101 <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
102 <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
103 <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.3"/>
104 <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
105 <listOptionValue builtIn="false" value="XDC_VERSION=3.22.01.21"/>
106 <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.13;"/>
107 <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
108 </option>
109 <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1815852532" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.4" valueType="string"/>
110 <targetPlatform id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug.2075945037" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug"/>
111 <builder buildPath="${workspace_loc:/mad_helloworld_scbp6618x/Debug}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug.1351439413" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug"/>
112 <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug.1646345893" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug">
113 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING.884849478" name="Treat diagnostic &lt;id&gt; as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING" valueType="stringList">
114 <listOptionValue builtIn="false" value="225"/>
115 </option>
116 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.SILICON_VERSION.964449043" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.SILICON_VERSION" value="6600" valueType="string"/>
117 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEFINE.473148914" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEFINE"/>
118 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH.571531381" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH" valueType="includePath">
119 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/include&quot;"/>
120 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform&quot;"/>
121 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages&quot;"/>
122 </option>
123 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.236283664" 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"/>
124 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.MEM_MODEL__CONST.1588431784" name="Const access model (--mem_model:const)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.MEM_MODEL__CONST" value="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.MEM_MODEL__CONST._none" valueType="enumerated"/>
125 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.MEM_MODEL__DATA.435714952" name="Data access model (--mem_model:data)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.MEM_MODEL__DATA" value="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.MEM_MODEL__DATA._none" valueType="enumerated"/>
126 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS.1455924358" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS"/>
127 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS.805812178" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS"/>
128 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS.2085787068" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS"/>
129 <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS.618706618" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS"/>
130 </tool>
131 <tool commandLinePattern="${command} ${flags} --dynamic ${output_flag} ${output} ${inputs}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.1324124406" name="C6000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug">
132 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE.1807355542" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE" value="&quot;mad_helloworld_scbp6618x.out&quot;" valueType="string"/>
133 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE.1872607416" name="Input and output sections listed into &lt;file&gt; (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE" value="&quot;mad_helloworld_scbp6618x.map&quot;" valueType="string"/>
134 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY.1443814106" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY" valueType="libs">
135 <listOptionValue builtIn="false" value="&quot;ti.platform.scbp6618x.ae66&quot;"/>
136 <listOptionValue builtIn="false" value="&quot;libc.a&quot;"/>
137 </option>
138 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH.567338087" name="Add &lt;dir&gt; to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH" valueType="stringList">
139 <listOptionValue builtIn="false" value="&quot;${CG_TOOL_ROOT}/lib&quot;"/>
140 <listOptionValue builtIn="false" value="&quot;${TI_PDK_C6670_INSTALL_DIR}/packages/ti/platform/scbp6618x/platform_lib/lib/debug&quot;"/>
141 </option>
142 <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.RELOCATABLE.1030589234" name="Produce a relocatable output module (--relocatable, -r)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.RELOCATABLE" value="true" valueType="boolean"/>
143 </tool>
144 <tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.867626283" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool">
145 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.1695514857" name="RTSC target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.elf.C66" valueType="string"/>
146 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.1220913391" name="RTSC platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.evm6670" valueType="string"/>
147 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1707709932" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/>
148 <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.746370692" name="Code generation tool directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value="&quot;${CG_TOOL_ROOT}&quot;" valueType="string"/>
149 </tool>
150 </toolChain>
151 </folderInfo>
152 </configuration>
153 </storageModule>
154 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
155 <storageModule moduleId="scannerConfiguration"/>
156 </cconfiguration>
157 </storageModule>
158 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
159 <project id="mad_helloworld.com.ti.ccstudio.buildDefinitions.C6000.ProjectType.1742876545" name="C6000" projectType="com.ti.ccstudio.buildDefinitions.C6000.ProjectType"/>
160 </storageModule>
161</cproject>
diff --git a/boot_loader/examples/mad/mad_helloworld/scbp6618x/.project b/boot_loader/examples/mad/mad_helloworld/scbp6618x/.project
new file mode 100644
index 0000000..39c23d7
--- /dev/null
+++ b/boot_loader/examples/mad/mad_helloworld/scbp6618x/.project
@@ -0,0 +1,96 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<projectDescription>
3 <name>mad_helloworld_scbp6618x</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:/mad_helloworld_scbp6618x/DebugBE}</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 <locationURI>TI_MCSDK_MADBOOT_DIR/docs/README.txt</locationURI>
89 </link>
90 <link>
91 <name>src</name>
92 <type>2</type>
93 <locationURI>TI_MCSDK_MADBOOT_DIR/mad_helloworld/src</locationURI>
94 </link>
95 </linkedResources>
96</projectDescription>
diff --git a/boot_loader/examples/mad/mad_helloworld/scbp6618x/macros.ini b/boot_loader/examples/mad/mad_helloworld/scbp6618x/macros.ini
new file mode 100644
index 0000000..aec444b
--- /dev/null
+++ b/boot_loader/examples/mad/mad_helloworld/scbp6618x/macros.ini
@@ -0,0 +1 @@
TI_MCSDK_MADBOOT_DIR="../../../../
diff --git a/boot_loader/examples/mad/mad_helloworld/scbp6618x/mad_helloworld.cmd b/boot_loader/examples/mad/mad_helloworld/scbp6618x/mad_helloworld.cmd
new file mode 100644
index 0000000..48034bd
--- /dev/null
+++ b/boot_loader/examples/mad/mad_helloworld/scbp6618x/mad_helloworld.cmd
@@ -0,0 +1,76 @@
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 L2SRAM (RWX) : org = 0x0800000, len = 0x80000
46 DDR3 (RWX) : org = 0x80000000,len = 0x8000000
47}
48
49SECTIONS
50{
51 .text:_boot_entry > L2SRAM
52 .csl_vect > L2SRAM
53 .cppi > L2SRAM
54 .linkram > L2SRAM
55 .mac_buffer > L2SRAM
56 platform_lib > L2SRAM
57 .text > DDR3
58 GROUP (NEAR_DP)
59 {
60 .neardata
61 .rodata
62 .bss
63 } load > L2SRAM
64 .stack > L2SRAM
65 .cinit > DDR3
66 .cio > L2SRAM
67 .const > DDR3
68 .plt > L2SRAM
69 .data > L2SRAM
70 .switch > DDR3
71 .sysmem > L2SRAM
72 .far > L2SRAM
73 .testMem > L2SRAM
74 .fardata > L2SRAM
75}
76
diff --git a/boot_loader/examples/mad/mad_helloworld/src/mad_helloworld.c b/boot_loader/examples/mad/mad_helloworld/src/mad_helloworld.c
new file mode 100644
index 0000000..72587d4
--- /dev/null
+++ b/boot_loader/examples/mad/mad_helloworld/src/mad_helloworld.c
@@ -0,0 +1,102 @@
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 emac 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/**************************************************************************************
35 * FILE PURPOSE: Hello World Example
36 **************************************************************************************
37 * FILE NAME: mad_helloworld.c
38 *
39 * DESCRIPTION: A simple hello world example running on non-zero Core.
40 *
41 ***************************************************************************************/
42#include <stdlib.h>
43#include <stdio.h>
44#include <ctype.h>
45#include <string.h>
46#include "platform.h"
47
48#define DEVICE_REG32_W(x,y) *(volatile uint32_t *)(x)=(y)
49
50#define MAGIC_ADDR 0x8ffffc
51
52#define BOOT_MAGIC_NUMBER 0xBABEFACE
53
54/* OSAL functions for Platform Library */
55uint8_t *Osal_platformMalloc (uint32_t num_bytes, uint32_t alignment)
56{
57 return malloc(num_bytes);
58}
59
60void Osal_platformFree (uint8_t *dataPtr, uint32_t num_bytes)
61{
62 /* Free up the memory */
63 if (dataPtr)
64 {
65 free(dataPtr);
66 }
67}
68
69void Osal_platformSpiCsEnter(void)
70{
71 return;
72}
73
74void Osal_platformSpiCsExit (void)
75{
76 return;
77}
78
79void
80write_boot_magic_number
81(
82 void
83)
84{
85 DEVICE_REG32_W(MAGIC_ADDR, BOOT_MAGIC_NUMBER);
86 while(1);
87}
88
89/******************************************************************************
90 * Function: main
91 ******************************************************************************/
92void main ()
93{
94 uint32_t coreNum;
95
96 /* Initialize UART */
97 coreNum = platform_get_coreid();
98 if (coreNum != 0)
99 {
100 write_boot_magic_number();
101 }
102}
diff --git a/boot_loader/examples/mad/utils/scbp6618x/build_mad_image_be.bat b/boot_loader/examples/mad/utils/scbp6618x/build_mad_image_be.bat
new file mode 100644
index 0000000..b1fb759
--- /dev/null
+++ b/boot_loader/examples/mad/utils/scbp6618x/build_mad_image_be.bat
@@ -0,0 +1,6 @@
1@set PATH="C:\Program Files\Texas Instruments\C6000 Code Generation Tools 7.2.4\bin";t:\gen\python\2_7_2;%PATH%
2
3@rd /s /q tmp
4
5python ..\..\..\..\mad-utils\map-tool\maptool.py config-files\maptoolCfg_scbp6618x_windows_be.json
6
diff --git a/boot_loader/examples/mad/utils/scbp6618x/build_mad_image_le.bat b/boot_loader/examples/mad/utils/scbp6618x/build_mad_image_le.bat
new file mode 100644
index 0000000..eec524f
--- /dev/null
+++ b/boot_loader/examples/mad/utils/scbp6618x/build_mad_image_le.bat
@@ -0,0 +1,6 @@
1@set PATH="C:\Program Files\Texas Instruments\C6000 Code Generation Tools 7.2.4\bin";t:\gen\python\2_7_2;%PATH%
2
3@rd /s /q tmp
4
5python ..\..\..\..\mad-utils\map-tool\maptool.py config-files\maptoolCfg_scbp6618x_windows_le.json
6
diff --git a/boot_loader/examples/mad/utils/scbp6618x/config-files/deployment_template_scbp6618x_windows_be.json b/boot_loader/examples/mad/utils/scbp6618x/config-files/deployment_template_scbp6618x_windows_be.json
new file mode 100644
index 0000000..47873e9
--- /dev/null
+++ b/boot_loader/examples/mad/utils/scbp6618x/config-files/deployment_template_scbp6618x_windows_be.json
@@ -0,0 +1,69 @@
1{
2 "deviceName" : "C6670",
3
4 "partitions" : [
5 {
6 "name" : "DDR3-ROMFS",
7 "vaddr" : "0x80000000",
8 "paddr" : [ "0x800000000", "0x800000000", "0x800000000", "0x800000000"] ,
9 "size" : "0x2000000",
10 "secNamePat" : ["text", "switch", "cinit", "const"],
11 "cores" : [0,1,2,3],
12 "permissions" : ["SR", "SX", "SW"],
13 "cacheEnable" : true,
14 "prefetch" : true,
15 "priority" : 0,
16 "shared" : true,
17 "loadPartition" : true
18 },
19 {
20 "name" : "MSMCSRAM",
21 "vaddr" : "0xc000000",
22 "paddr" : [ "0xc000000"],
23 "size" : "0x100000",
24 "secNamePat" : ["NDK_PACKETMEM"],
25 "cores" : [0],
26 "permissions" : ["SR", "SW", "SX"],
27 "cacheEnable" : true,
28 "prefetch" : true,
29 "priority" : 0,
30 "shared" : false
31 },
32 {
33 "name" : "L2SRAM",
34 "vaddr" : "0x800000",
35 "paddr" : [ "0x800000", "0x800000", "0x800000", "0x800000" ],
36 "size" : "0x100000",
37 "secNamePat" : [ "resmgr", "cio", "args", "cppi", "qmss", "far", "bss", "neardata", "rodata", "systemHeap", "stack", "vecs", "NDK_OBJMEM", "nimu_eth_ll2", "sysmem", "platform_lib"],
38 "cores" : [0,1,2,3],
39 "permissions" : ["UR", "UW", "UX", "SR", "SW", "SX"],
40 "cacheEnable" : false,
41 "prefetch" : false,
42 "priority" : 0,
43 "shared" : false
44 }
45 ],
46
47 "applications" : [
48 {
49 "name" : "master",
50 "fileName" : "../../../../../../examples/ndk/client/scbp6618x/DebugBE/client_scbp6618x.out",
51 "libPath" : "../../../../../../examples/ndk/client/scbp6618x/DebugBE",
52 "allowedCores" : [0]
53 },
54 {
55 "name" : "slave",
56 "fileName" : "../../mad_helloworld/scbp6618x/DebugBE/mad_helloworld_scbp6618x.out",
57 "libPath" : "../../mad_helloworld/scbp6618x/DebugBE",
58 "allowedCores" : [1,2,3]
59 }
60 ],
61
62 "appDeployment" : [
63 "master",
64 "slave",
65 "slave",
66 "slave"
67 ]
68}
69
diff --git a/boot_loader/examples/mad/utils/scbp6618x/config-files/deployment_template_scbp6618x_windows_le.json b/boot_loader/examples/mad/utils/scbp6618x/config-files/deployment_template_scbp6618x_windows_le.json
new file mode 100644
index 0000000..e995648
--- /dev/null
+++ b/boot_loader/examples/mad/utils/scbp6618x/config-files/deployment_template_scbp6618x_windows_le.json
@@ -0,0 +1,69 @@
1{
2 "deviceName" : "C6670",
3
4 "partitions" : [
5 {
6 "name" : "DDR3-ROMFS",
7 "vaddr" : "0x80000000",
8 "paddr" : [ "0x800000000", "0x800000000", "0x800000000", "0x800000000"] ,
9 "size" : "0x2000000",
10 "secNamePat" : ["text", "switch", "cinit", "const"],
11 "cores" : [0,1,2,3],
12 "permissions" : ["SR", "SX", "SW"],
13 "cacheEnable" : true,
14 "prefetch" : true,
15 "priority" : 0,
16 "shared" : true,
17 "loadPartition" : true
18 },
19 {
20 "name" : "MSMCSRAM",
21 "vaddr" : "0xc000000",
22 "paddr" : [ "0xc000000"],
23 "size" : "0x100000",
24 "secNamePat" : ["NDK_PACKETMEM"],
25 "cores" : [0],
26 "permissions" : ["SR", "SW", "SX"],
27 "cacheEnable" : true,
28 "prefetch" : true,
29 "priority" : 0,
30 "shared" : false
31 },
32 {
33 "name" : "L2SRAM",
34 "vaddr" : "0x800000",
35 "paddr" : [ "0x800000", "0x800000", "0x800000", "0x800000" ],
36 "size" : "0x100000",
37 "secNamePat" : [ "resmgr", "cio", "args", "cppi", "qmss", "far", "bss", "neardata", "rodata", "systemHeap", "stack", "vecs", "NDK_OBJMEM", "nimu_eth_ll2", "sysmem", "platform_lib"],
38 "cores" : [0,1,2,3],
39 "permissions" : ["UR", "UW", "UX", "SR", "SW", "SX"],
40 "cacheEnable" : false,
41 "prefetch" : false,
42 "priority" : 0,
43 "shared" : false
44 }
45 ],
46
47 "applications" : [
48 {
49 "name" : "master",
50 "fileName" : "../../../../../../examples/ndk/client/scbp6618x/Debug/client_scbp6618x.out",
51 "libPath" : "../../../../../../examples/ndk/client/scbp6618x/Debug",
52 "allowedCores" : [0]
53 },
54 {
55 "name" : "slave",
56 "fileName" : "../../mad_helloworld/scbp6618x/Debug/mad_helloworld_scbp6618x.out",
57 "libPath" : "../../mad_helloworld/scbp6618x/Debug",
58 "allowedCores" : [1,2,3]
59 }
60 ],
61
62 "appDeployment" : [
63 "master",
64 "slave",
65 "slave",
66 "slave"
67 ]
68}
69
diff --git a/boot_loader/examples/mad/utils/scbp6618x/config-files/maptoolCfg_scbp6618x_windows_be.json b/boot_loader/examples/mad/utils/scbp6618x/config-files/maptoolCfg_scbp6618x_windows_be.json
new file mode 100644
index 0000000..57d78c8
--- /dev/null
+++ b/boot_loader/examples/mad/utils/scbp6618x/config-files/maptoolCfg_scbp6618x_windows_be.json
@@ -0,0 +1,9 @@
1{
2 "deploymentCfgFile" : "config-files/deployment_template_scbp6618x_windows_be.json",
3 "LoadImageName" : "mad-c6670-be.bin",
4 "prelinkExe" : "C:/Program Files/Texas Instruments/C6000 Code Generation Tools 7.2.4/bin/prelink6x",
5 "stripExe" : "strip6x",
6 "ofdTool" : "ofd6x",
7 "malApp" : "../../../../mad-utils/mad-loader/bin/C6670/be/mal_app.exe",
8 "nmlLoader" : "../../../../mad-utils/mad-loader/bin/C6670/be/nml.exe"
9}
diff --git a/boot_loader/examples/mad/utils/scbp6618x/config-files/maptoolCfg_scbp6618x_windows_le.json b/boot_loader/examples/mad/utils/scbp6618x/config-files/maptoolCfg_scbp6618x_windows_le.json
new file mode 100644
index 0000000..a5cb930
--- /dev/null
+++ b/boot_loader/examples/mad/utils/scbp6618x/config-files/maptoolCfg_scbp6618x_windows_le.json
@@ -0,0 +1,9 @@
1{
2 "deploymentCfgFile" : "config-files/deployment_template_scbp6618x_windows_le.json",
3 "LoadImageName" : "mad-c6670-le.bin",
4 "prelinkExe" : "C:/Program Files/Texas Instruments/C6000 Code Generation Tools 7.2.4/bin/prelink6x",
5 "stripExe" : "strip6x",
6 "ofdTool" : "ofd6x",
7 "malApp" : "../../../../mad-utils/mad-loader/bin/C6670/le/mal_app.exe",
8 "nmlLoader" : "../../../../mad-utils/mad-loader/bin/C6670/le/nml.exe"
9}
diff --git a/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6670l/bin/pcieboot_ddrinit_elf2HBin.sh b/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6670l/bin/pcieboot_ddrinit_elf2HBin.sh
index af73029..22c9fa0 100755
--- a/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6670l/bin/pcieboot_ddrinit_elf2HBin.sh
+++ b/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6670l/bin/pcieboot_ddrinit_elf2HBin.sh
@@ -1,20 +1,20 @@
1export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0 1export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0
2export TARGET=6670 2export TARGET=6670
3export ENDIAN=little 3export ENDIAN=little
4 4
5echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR} 5echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
6echo TARGET set as: ${TARGET} 6echo TARGET set as: ${TARGET}
7 7
8echo Converting .out to HEX ... 8echo Converting .out to HEX ...
9if [ ${ENDIAN} == little ] 9if [ ${ENDIAN} == little ]
10then 10then
11${CGT_INSTALL_DIR}/bin/hex6x -order L pcieboot_ddrinit.rmd pcieboot_ddrinit_evm${TARGET}l.out 11${CGT_INSTALL_DIR}/bin/hex6x -order L pcieboot_ddrinit.rmd pcieboot_ddrinit_evm${TARGET}l.out
12else 12else
13${CGT_INSTALL_DIR}/bin/hex6x -order M pcieboot_ddrinit.rmd pcieboot_ddrinit_evm${TARGET}l.out 13${CGT_INSTALL_DIR}/bin/hex6x -order M pcieboot_ddrinit.rmd pcieboot_ddrinit_evm${TARGET}l.out
14fi 14fi
15 15
16../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_ddrinit.btbl pcieboot_ddrinit.h pcieboot_ddrinit.bin 16../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_ddrinit.btbl pcieboot_ddrinit.h pcieboot_ddrinit.bin
17 17
18../../../../../../hfile2array/hfile2array pcieboot_ddrinit.h pcieDdrInit.h ddrInitCode 18../../../../../../hfile2array/hfile2array pcieboot_ddrinit.h pcieDdrInit.h ddrInitCode
19 19
20mv pcieDdrInit.h ../../../linux_host_loader/pcieDdrInit_${TARGET}.h 20mv pcieDdrInit.h ../../../linux_host_loader/pcieDdrInit_${TARGET}.h