summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b108619)
raw | patch | inline | side by side (parent: b108619)
author | Hao Zhang <hzhang@ti.com> | |
Mon, 27 Jun 2011 18:16:08 +0000 (14:16 -0400) | ||
committer | Hao Zhang <hzhang@ti.com> | |
Mon, 27 Jun 2011 18:16:08 +0000 (14:16 -0400) |
92 files changed:
index c6cfa13edf5e6bdaa86cd5987ea2831d5c443a8c..35fc35d7f419a139699edadfc523f23a50de1952 100644 (file)
--- a/boot_loader/IBL_buildibl
+++ b/boot_loader/IBL_buildibl
make evm_c6678_i2c ENDIAN=little I2C_BUS_ADDR=0x51
cp -f ibl_c66x/i2crom.dat ../../../i2crom_0x51_c6678_le.dat
cp -f ../util/i2cConfig/i2cparam_c66x_le.out ../../../i2cparam_0x51_c6678_le_0x500.out
+cp -f ../util/i2cConfig/i2cConfig.gel ../../../i2cConfig.gel
+cp -f ../util/btoccs/b2ccs.exe ../../../b2ccs.exe
+cp -f ../util/btoccs/b2i2c.exe ../../../b2i2c.exe
+cp -f ../util/bconvert/bconvert64x.exe ../../../bconvert64x.exe
+cp -f ../util/romparse/romparse.exe ../../../romparse.exe
+
make clean
make evm_c6670_i2c ENDIAN=little I2C_BUS_ADDR=0x51
mv -f ../../../i2cparam_0x51_c6678_le_0x500.out bin/i2cparam_0x51_c6678_le_0x500.out
mv -f ../../../i2cparam_0x51_c6670_le_0x500.out bin/i2cparam_0x51_c6670_le_0x500.out
+mv -f ../../../i2cConfig.gel bin/i2cConfig.gel
+mv -f ../../../b2ccs.exe ../util/btoccs/b2ccs.exe
+mv -f ../../../b2i2c.exe ../util/btoccs/b2i2c.exe
+mv -f ../../../bconvert64x.exe ../util/bconvert/bconvert64x.exe
+mv -f ../../../romparse.exe ../util/romparse/romparse.exe
+
cd ../../../
diff --git a/boot_loader/examples/i2c/nand/evmc6670l/.ccsproject b/boot_loader/examples/i2c/nand/evmc6670l/.ccsproject
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
diff --git a/boot_loader/examples/i2c/nand/evmc6670l/.cproject b/boot_loader/examples/i2c/nand/evmc6670l/.cproject
index 5385945da02b7fc3dc30cc9d495775175ec60d82..0f348629d0d6230276306af655b573739e6103b3 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <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"/>
+ <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.1" valueType="string"/>
<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"/>
<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"/>
<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">
diff --git a/boot_loader/examples/i2c/nand/evmc6678l/.ccsproject b/boot_loader/examples/i2c/nand/evmc6678l/.ccsproject
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
diff --git a/boot_loader/examples/i2c/nand/evmc6678l/.cproject b/boot_loader/examples/i2c/nand/evmc6678l/.cproject
index 78e8280e5dc29efd457ba838d03c29aa8f005f58..66a2bad237b46a579f7c62ccfe26472e59b9af0c 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <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"/>
+ <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.1" valueType="string"/>
<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"/>
<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"/>
<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">
diff --git a/boot_loader/examples/i2c/nand/src/i2c_boot_nand_example.c b/boot_loader/examples/i2c/nand/src/i2c_boot_nand_example.c
index b0cd601a2c765a54d3179f5f496d47a4379b104a..113bdcd390f8216399943f28822372b009022670 100644 (file)
#include <stdio.h>
#include <string.h>
#include "platform.h"
-#include "ti/csl/csl_semAux.h"
#define BOOT_UART_BAUDRATE 115200
void Osal_platformSpiCsEnter(void)
{
- /* Get the hardware semaphore.
- *
- * Acquire Multi core CPPI synchronization lock
- */
- while ((CSL_semAcquireDirect (3)) == 0);
-
return;
}
void Osal_platformSpiCsExit (void)
{
- /* Release the hardware semaphore
- *
- * Release multi-core lock.
- */
- CSL_semReleaseSemaphore (3);
-
return;
}
diff --git a/boot_loader/examples/i2c/nor/evmc6670l/.ccsproject b/boot_loader/examples/i2c/nor/evmc6670l/.ccsproject
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
diff --git a/boot_loader/examples/i2c/nor/evmc6670l/.cproject b/boot_loader/examples/i2c/nor/evmc6670l/.cproject
index 0f4bca900ca0fd4712da7f998754f374252c8f9c..492cc0ce1129e327b3efeaf11e86cce990c302f1 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <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"/>
+ <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.1" valueType="string"/>
<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"/>
<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"/>
<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">
diff --git a/boot_loader/examples/i2c/nor/evmc6678l/.ccsproject b/boot_loader/examples/i2c/nor/evmc6678l/.ccsproject
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
diff --git a/boot_loader/examples/i2c/nor/evmc6678l/.cproject b/boot_loader/examples/i2c/nor/evmc6678l/.cproject
index 7f3f6e09b0fd1217cfcedb6bb05e30fe2e241566..8be4568a592a63d0bb2fe1b798e4666c59b5dc4a 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <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"/>
+ <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.1" valueType="string"/>
<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"/>
<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"/>
<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">
diff --git a/boot_loader/examples/i2c/nor/src/i2c_boot_nor_example.c b/boot_loader/examples/i2c/nor/src/i2c_boot_nor_example.c
index e61ddbf31723239929fd9f0faaab82b5847592da..f607650c8a1875af244bffcbb06eae2ef3daa3af 100644 (file)
#include <stdio.h>
#include <string.h>
#include "platform.h"
-#include "ti/csl/csl_semAux.h"
#define BOOT_UART_BAUDRATE 115200
void Osal_platformSpiCsEnter(void)
{
- /* Get the hardware semaphore.
- *
- * Acquire Multi core CPPI synchronization lock
- */
- while ((CSL_semAcquireDirect (3)) == 0);
-
return;
}
void Osal_platformSpiCsExit (void)
{
- /* Release the hardware semaphore
- *
- * Release multi-core lock.
- */
- CSL_semReleaseSemaphore (3);
-
return;
}
diff --git a/boot_loader/examples/i2c/tftp/evmc6670l/.ccsproject b/boot_loader/examples/i2c/tftp/evmc6670l/.ccsproject
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
diff --git a/boot_loader/examples/i2c/tftp/evmc6670l/.cproject b/boot_loader/examples/i2c/tftp/evmc6670l/.cproject
index 88022484d1f07558e95bac26367c8bb2bd11ca4c..dd67b8bae1f4aab4d01df28d7fcdc725f88917cb 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <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"/>
+ <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.1" valueType="string"/>
<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"/>
<builder buildPath="${workspace_loc:/i2ctftpboot/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"/>
<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">
diff --git a/boot_loader/examples/i2c/tftp/evmc6678l/.ccsproject b/boot_loader/examples/i2c/tftp/evmc6678l/.ccsproject
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
diff --git a/boot_loader/examples/i2c/tftp/evmc6678l/.cproject b/boot_loader/examples/i2c/tftp/evmc6678l/.cproject
index 89f0cd413c874f18afab34aedf25616df7555499..94760ff90ab45d23cc36f259ebf8b990017e2a45 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <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"/>
+ <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.1" valueType="string"/>
<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"/>
<builder buildPath="${workspace_loc:/i2ctftpboot/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"/>
<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">
diff --git a/boot_loader/examples/i2c/tftp/src/i2c_boot_tftp_example.c b/boot_loader/examples/i2c/tftp/src/i2c_boot_tftp_example.c
index 3c968cd8fbb3130da6da83e4ad15b4c3db6ab70b..516722c99fe4cf2eb69a33d6052b0673821efbd2 100644 (file)
#include <stdio.h>
#include <string.h>
#include "platform.h"
-#include "ti/csl/csl_semAux.h"
#define BOOT_UART_BAUDRATE 115200
void Osal_platformSpiCsEnter(void)
{
- /* Get the hardware semaphore.
- *
- * Acquire Multi core CPPI synchronization lock
- */
- while ((CSL_semAcquireDirect (3)) == 0);
-
return;
}
void Osal_platformSpiCsExit (void)
{
- /* Release the hardware semaphore
- *
- * Release multi-core lock.
- */
- CSL_semReleaseSemaphore (3);
-
return;
}
diff --git a/boot_loader/examples/pcie/docs/README.pdf b/boot_loader/examples/pcie/docs/README.pdf
new file mode 100644 (file)
index 0000000..89f0774
Binary files /dev/null and b/boot_loader/examples/pcie/docs/README.pdf differ
index 0000000..89f0774
Binary files /dev/null and b/boot_loader/examples/pcie/docs/README.pdf differ
diff --git a/boot_loader/examples/pcie/docs/readme.doc b/boot_loader/examples/pcie/docs/readme.doc
new file mode 100644 (file)
index 0000000..f2efb5d
Binary files /dev/null and b/boot_loader/examples/pcie/docs/readme.doc differ
index 0000000..f2efb5d
Binary files /dev/null and b/boot_loader/examples/pcie/docs/readme.doc differ
diff --git a/boot_loader/examples/pcie/linux_host_loader/Makefile b/boot_loader/examples/pcie/linux_host_loader/Makefile
--- /dev/null
@@ -0,0 +1,11 @@
+KDIR=/usr/src/linux-headers-2.6.32-28-generic-pae
+
+PWD=$(shell pwd)
+
+obj-m = pciedemo.o
+
+all:
+ $(MAKE) -C $(KDIR) M=$(PWD)
+clean:
+ rm -fr *.o *.mod.c *.ko
+
diff --git a/boot_loader/examples/pcie/linux_host_loader/pciedemo.c b/boot_loader/examples/pcie/linux_host_loader/pciedemo.c
--- /dev/null
@@ -0,0 +1,686 @@
+/******************************************************************************
+* Copyright (c) 2011 Texas Instruments Incorporated - http://www.ti.com
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License as
+* published by the Free Software Foundation version 2.
+*
+* This program is distributed "as is" WITHOUT ANY WARRANTY of any
+* kind, whether express or implied; without even the implied warranty
+* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*****************************************************************************/
+
+/**************************************************************************************
+* FILE NAME: pciedemo.c
+*
+* DESCRIPTION: A sample code to load DSP boot image from a Linux machine into DSP.
+*
+***************************************************************************************/
+
+#include <linux/module.h>
+#include <linux/types.h>
+#include <linux/kernel.h>
+#include <linux/pci.h>
+#include <linux/delay.h>
+#include <linux/fs.h>
+#include <linux/init.h>
+#include <linux/ioport.h>
+#include <linux/interrupt.h>
+#include <asm/uaccess.h>
+
+MODULE_LICENSE("GPL v2");
+
+/** ============================================================================
+* @macro Data types
+*
+* @desc Basic data types
+* ============================================================================
+*/
+typedef signed char Int8 ; /* 8 bit value */
+typedef signed short int Int16 ; /* 16 bit value */
+typedef signed long int Int32 ; /* 32 bit value */
+
+typedef unsigned char Uint8 ; /* 8 bit value */
+typedef unsigned short int Uint16 ; /* 16 bit value */
+typedef unsigned long int Uint32 ; /* 32 bit value */
+
+typedef float Real32 ; /* 32 bit value */
+typedef double Real64 ; /* 64 bit value */
+
+typedef short int Bool ; /* 16 bit value */
+
+typedef char Char8 ; /* 8 bit value */
+typedef short Char16 ; /* 16 bit value */
+
+typedef unsigned char Uchar8 ; /* 8 bit value */
+typedef unsigned short Uchar16 ; /* 16 bit value */
+
+#define Void void
+typedef void * Pvoid ;
+
+typedef Char8 * Pstr ;
+typedef Uchar8 * Pustr ;
+
+#define HELLO_WORLD_DEMO 1
+#define POST_DEMO 0
+
+//Include header array
+#if HELLO_WORLD_DEMO
+#include "pcieDdrInit.h" //DDR init
+#include "pcieBootCode.h" //"Hello world" boot example
+#endif
+
+#if POST_DEMO
+#include "post6678.h" //POST boot example
+#endif
+
+#define PCIE_TI_VENDOR 0x104C
+#define PCIE_TI_DEVICE 0x8888
+#define PCIE_BASE_ADDRESS 0x21800000
+#define IB_BAR0 0x300
+#define IB_START0_LO 0x304
+#define IB_START0_HI 0x308
+#define IB_OFFSET0 0x30C
+#define IB_BAR1 0x310
+#define IB_START1_LO 0x314
+#define IB_START1_HI 0x318
+#define IB_OFFSET1 0x31C
+#define IB_BAR2 0x320
+#define IB_START2_LO 0x324
+#define IB_START2_HI 0x328
+#define IB_OFFSET2 0x32C
+#define IB_BAR3 0x330
+#define IB_START3_LO 0x334
+#define IB_START3_HI 0x338
+#define IB_OFFSET3 0x33C
+
+#define LL2_START 0x00800000
+#define MSMC_START 0x0C000000
+#define DDR_START 0x80000000
+#define MAGIC_ADDR 0x0087FFFC
+
+//Block size in bytes when r/w data from/to DSP
+#define BLOCK_TRANSFER_SIZE 0x100
+
+struct pci_dev * PCIE_DEV = NULL ;
+
+//reg: PCIE application registers
+//mem: Local L2
+//msmc: Shared memory
+//ddr: DDR3
+Uint32 regBase = 0 ;
+Uint32 memBase = 0 ;
+Uint32 msmcBase = 0 ;
+Uint32 ddrBase = 0 ;
+
+Uint32 * regVirt = NULL ;
+Uint32 * memVirt = NULL ;
+Uint32 * msmcVirt = NULL ;
+Uint32 * ddrVirt = NULL ;
+
+Uint32 memLen = 0 ;
+Uint32 regLen = 0 ;
+Uint32 msmcLen = 0 ;
+Uint32 ddrLen = 0 ;
+
+Uint32 * ptrReg = 0;
+
+Int32 irqNo ;
+Uint32 dummy ;
+
+/* ============================================================================
+* @func PCI_FindPciDevices
+*
+* @desc This function locates DM642 PCI cards on system.
+*
+* @modif None.
+* ============================================================================
+*/
+Void
+PCI_FindPciDevices (Void)
+{
+ struct pci_dev * dev = NULL ;
+
+ while ((dev = pci_get_device (PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL)
+ {
+ if ((dev->vendor == PCIE_TI_VENDOR) && (dev->device == PCIE_TI_DEVICE)) {
+ printk ("Found TI device\n");
+ irqNo = dev->irq ;
+ PCIE_DEV = dev ;
+ printk ("TI device: vendor=0x%08x, dev=0x%08x, drv=0x%08x, irq=0x%04x, bus=0x%08x\n", dev->vendor, dev->device, dev->driver, dev->irq, dev->bus);
+ break ;
+ }
+ }
+}
+
+/* ============================================================================
+* @func PCI_readBAR
+*
+* @desc This function reads config.
+*
+* @modif None.
+* ============================================================================
+*/
+Void PCI_readBAR (Void)
+{
+ Uint32 barStart [4] ;
+ Uint32 barLen [4] ;
+ Uint32 barFlags [4] ;
+
+ barStart [0] = pci_resource_start (PCIE_DEV, 0); //BAR0 16K for PCIE application registers
+ barLen [0] = pci_resource_len (PCIE_DEV, 0);
+ barFlags [0] = pci_resource_flags (PCIE_DEV, 0);
+ barStart [1] = pci_resource_start (PCIE_DEV, 1); //BAR1 512K for LL2
+ barLen [1] = pci_resource_len (PCIE_DEV, 1);
+ barFlags [1] = pci_resource_flags (PCIE_DEV, 1);
+ barStart [2] = pci_resource_start (PCIE_DEV, 2); //BAR2 4M for MSMC
+ barLen [2] = pci_resource_len (PCIE_DEV, 2);
+ barFlags [2] = pci_resource_flags (PCIE_DEV, 2);
+ barStart [3] = pci_resource_start (PCIE_DEV, 3); //BAR3 16M for DDR3
+ barLen [3] = pci_resource_len (PCIE_DEV, 3);
+ barFlags [3] = pci_resource_flags (PCIE_DEV, 3);
+
+ /* ---------------------------------------------------------------------
+ * Map the REG memory region
+ * ---------------------------------------------------------------------
+ */
+ if (barFlags [0] & IORESOURCE_MEM) {
+ regBase = barStart [0] ;
+ /* Map the memory region. */
+ request_mem_region (regBase,
+ barLen [0],
+ "DSPLINK");
+ }
+ else {
+ /* Map the memory region. */
+ request_region (regBase,
+ barLen [0],
+ "DSPLINK");
+ }
+
+ if (regBase > 0) {
+ regVirt = ioremap (barStart [0],
+ barLen [0]) ;
+ }
+
+ /* ---------------------------------------------------------------------
+ * Map the LL2RAM memory region
+ * ---------------------------------------------------------------------
+ */
+ if (barFlags [1] & IORESOURCE_MEM) {
+ memBase = barStart [1] ;
+ /* Map the memory region. */
+ request_mem_region (memBase,
+ barLen [1],
+ "DSPLINK");
+ }
+ else {
+ /* Map the memory region. */
+ request_region (memBase,
+ barLen [1],
+ "DSPLINK");
+ }
+
+ if (memBase > 0) {
+ memVirt = ioremap (barStart [1],
+ barLen [1]) ;
+ }
+
+ /* ---------------------------------------------------------------------
+ * Map the MSMC memory region
+ * ---------------------------------------------------------------------
+ */
+ if (barFlags [2] & IORESOURCE_MEM) {
+ msmcBase = barStart [2] ;
+ /* Map the memory region. */
+ request_mem_region (msmcBase,
+ barLen [2],
+ "DSPLINK");
+ }
+ else {
+ /* Map the memory region. */
+ request_region (msmcBase,
+ barLen [2],
+ "DSPLINK");
+ }
+
+ if (msmcBase > 0) {
+ msmcVirt = ioremap (barStart [2],
+ barLen [2]) ;
+ }
+
+
+ /* ---------------------------------------------------------------------
+ * Map the DDR memory region
+ * ---------------------------------------------------------------------
+ */
+ if (barFlags [3] & IORESOURCE_MEM) {
+ ddrBase = barStart [3] ;
+ /* Map the memory region. */
+ request_mem_region (ddrBase,
+ barLen [3],
+ "DSPLINK");
+ }
+ else {
+ /* Map the memory region. */
+ request_region (ddrBase,
+ barLen [3],
+ "DSPLINK");
+ }
+
+ if (ddrBase > 0) {
+ ddrVirt = ioremap (barStart [3],
+ barLen [3]) ;
+ }
+
+ regLen = barLen [0] ;
+ memLen = barLen [1] ;
+ msmcLen = barLen [2] ;
+ ddrLen = barLen [3] ;
+
+}
+
+/* =============================================================================
+* @func PCI_setMaster
+*
+* @desc This function makes the given device to be master.
+*
+* @modif None.
+* ============================================================================
+*/
+Void
+PCI_setMaster (void)
+{
+ Int32 retVal ;
+ Uint16 cmdVal ;
+ struct pci_dev * dev ;
+
+ dev = PCIE_DEV ;
+
+ /* set the DMA mask */
+ if (pci_set_dma_mask (dev, 0xfffffff0ULL)) {
+ }
+
+ /*
+ * set the desired PCI dev to be master, this internally sets the latency
+ * timer.
+ */
+ pci_set_master (dev) ;
+ pci_write_config_byte(dev, PCI_LATENCY_TIMER, 0x80);
+
+ /* Add support memory write invalidate */
+ retVal = pci_set_mwi (dev) ;
+
+ pci_read_config_word (dev, PCI_COMMAND, (u16 *) &cmdVal) ;
+ /* and set the master bit in command register. */
+ cmdVal |= PCI_COMMAND_MEMORY
+ | PCI_COMMAND_MASTER
+ | PCI_COMMAND_SERR ;
+ /* and clear the interrupt disable bit in command register. */
+ cmdVal &= ~PCI_COMMAND_INTX_DISABLE;
+ pci_write_config_word (dev, PCI_COMMAND, cmdVal) ;
+}
+
+/* Convert 4 bytes to 32 bits long word*/
+Uint32 byteto32bits(Uint8 *pDspCode)
+{
+ Uint32 i;
+ Uint32 temp;
+
+ temp = *pDspCode++;
+ for(i=0; i<3;i++) {
+ temp <<= 8;
+ temp |= *pDspCode++;
+ }
+ return(temp);
+}
+
+/* Function to write a block of data into DSP memory from Linux host
+Note the data buffer is in 32-bit format, unit of length is byte
+corNum: to write data: 0-7 for cores 0-7; 8 for MSMC; 9 for DDR
+*/
+Uint32 WriteDSPMemory(Uint32 coreNum, Uint32 DSPMemAddr, Uint32 *buffer, Uint32 length)
+{
+ Uint32 i, offset, tempReg = 0;
+ Uint32 * ptr;
+
+ if (length == 0) {
+ return 0;
+ }
+
+ switch (coreNum) {
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ DSPMemAddr &= 0x00FFFFFF;
+ tempReg = *(ptrReg+IB_OFFSET1/4);
+ *(ptrReg+IB_OFFSET1/4) = tempReg + coreNum*0x01000000; //pointing to a different core
+
+ if (DSPMemAddr < LL2_START) {
+ return 0;
+ } else {
+ offset = DSPMemAddr - LL2_START;
+ ptr = (Uint32 *) memVirt + offset/4 ;
+ }
+ break;
+ case 8: //this is for MSMC
+ if (DSPMemAddr < MSMC_START) {
+ return 0;
+ } else {
+ offset = DSPMemAddr - MSMC_START;
+ ptr = (Uint32 *) msmcVirt + offset/4 ;
+ }
+ break;
+ case 9: //this is for DDR
+ if (DSPMemAddr < DDR_START) {
+ return 0;
+ } else {
+ offset = DSPMemAddr - DDR_START;
+ ptr = (Uint32 *) ddrVirt + offset/4 ;
+ }
+ break;
+ default:
+ printk("Please use coreNum 0-7 core 0-7, coreNum 8 for MSMC and coreNum 9 for DDR\n");
+ return 0;
+ break;
+ }
+
+ for (i = 0; i < length/4; i++) {
+ *ptr = buffer[i];
+ ptr++;
+ }
+
+ if ((coreNum >= 0)&&(coreNum <=7)) {
+ *(ptrReg+IB_OFFSET1/4) = tempReg; //Restore IB_OFFSET1
+ }
+
+ return length;
+}
+
+/* Function to read a block DSP memory by Linux host
+Note the data buffer is in 32-bit format, unit of length is byte
+corNum: to read data: 0-7 for cores 0-7; 8 for MSMC; 9 for DDR
+*/
+Uint32 ReadDSPMemory(Uint32 coreNum, Uint32 DSPMemAddr, Uint32 *buffer, Uint32 length)
+{
+ Uint32 i, offset, tempReg = 0;
+ Uint32 * ptr;
+
+ if (length == 0) {
+ return 0;
+ }
+
+ switch (coreNum) {
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ DSPMemAddr &= 0x00FFFFFF;
+ tempReg = *(ptrReg+IB_OFFSET1/4);
+ *(ptrReg+IB_OFFSET1/4) = tempReg + coreNum*0x1000000;
+ if (DSPMemAddr < LL2_START) {
+ return 0;
+ } else {
+ offset = DSPMemAddr - LL2_START;
+ ptr = (Uint32 *) memVirt + offset/4 ;
+ }
+ break;
+ case 8: //this is for MSMC
+ if (DSPMemAddr < MSMC_START) {
+ return 0;
+ } else {
+ offset = DSPMemAddr - MSMC_START;
+ ptr = (Uint32 *) msmcVirt + offset/4 ;
+ }
+ break;
+ case 9: //this is for DDR
+ if (DSPMemAddr < DDR_START) {
+ return 0;
+ } else {
+ offset = DSPMemAddr - DDR_START;
+ ptr = (Uint32 *) ddrVirt + offset/4 ;
+ }
+ break;
+ default:
+ printk("Please use coreNum 0-7 core 0-7, coreNum 8 for MSMC and coreNum 9 for DDR\n");
+ return 0;
+ break;
+ }
+
+ for (i = 0; i < length/4; i++) {
+ buffer[i] = *ptr;
+ ptr++;
+ }
+
+ if ((coreNum >= 0)&&(coreNum <=7)) {
+ *(ptrReg+IB_OFFSET1/4) = tempReg; //Restore IB_OFFSET1
+ }
+
+ return length;
+}
+
+Void pushData(Uint8 *pDspCode, Uint8 coreNum, Uint32 *bootEntryAddr)
+{
+ Uint32 i, j, tempArray[BLOCK_TRANSFER_SIZE/4];
+ Uint32 size, section = 0, totalSize = 0;
+ Uint32 count, remainder;
+ Uint32 startaddr;
+
+ /* Get the boot entry address */
+ *bootEntryAddr = byteto32bits(pDspCode);
+ printk("Boot entry address is 0x%8x\n", *bootEntryAddr);
+ pDspCode +=4;
+
+ while(1) {
+
+ /* Get the size */
+ size = byteto32bits(pDspCode);
+ if(size == 0) break;
+
+ if ((size/4)*4 != size) {
+ size = ((size/4)+1)*4;
+ }
+
+ totalSize += size;
+ section++;
+ pDspCode += 4;
+ startaddr = byteto32bits(pDspCode);
+
+ pDspCode+= 4;
+
+ count = size/BLOCK_TRANSFER_SIZE;
+
+ remainder = size - count * BLOCK_TRANSFER_SIZE;
+
+ for(i=0; i<count; i++) {
+ for (j = 0; j < BLOCK_TRANSFER_SIZE/4; j++) {
+ tempArray[j] = byteto32bits(pDspCode);
+ pDspCode += 4;
+ }
+ /* Transfer boot tables to DSP */
+ WriteDSPMemory(coreNum, startaddr, tempArray, BLOCK_TRANSFER_SIZE);
+ startaddr += BLOCK_TRANSFER_SIZE;
+ }
+
+ for (j = 0; j < remainder/4; j++) {
+ tempArray[j] = byteto32bits(pDspCode);
+ pDspCode += 4;
+ }
+ WriteDSPMemory(coreNum, startaddr, tempArray, remainder);
+ }
+ printk("Total %d sections, 0x%x bytes of data written to core %d\n", section, totalSize, coreNum);
+}
+
+int init_module(void)
+{
+ Uint32 bootEntryAddr = 0; //Store 32-bit boot entry address read from .h file
+ Uint32 buffer[BLOCK_TRANSFER_SIZE/4]; //Store 32-bit DSP memory readback data
+
+ Uint32 i, j = 0;
+
+ printk ("Finding the device....\n") ;
+ PCI_FindPciDevices () ;
+ if (! PCIE_DEV) {
+ printk ("No PCIE device found!!!\n") ;
+ }
+
+ if (PCIE_DEV != NULL) {
+ printk ("Reading the BAR areas....\n") ;
+ PCI_readBAR () ;
+
+ printk ("Enabling the device....\n") ;
+ /* Linux Function: Initialize device before it's used by a driver*/
+ pci_enable_device (PCIE_DEV) ;
+
+ PCI_setMaster () ;
+
+ printk ("Access PCIE application register ....\n");
+
+ //Pointing to the beginning of the application registers
+ ptrReg = (Uint32 *) regVirt;
+
+ //Configure IB_BAR0 to BAR0 for PCIE registers
+ *(ptrReg+IB_BAR0/4) = 0;
+ *(ptrReg+IB_START0_LO/4) = (int)PCIE_DEV->resource[0].start;
+ *(ptrReg+IB_START0_HI/4) = 0;
+ *(ptrReg+IB_OFFSET0/4) = PCIE_BASE_ADDRESS;
+
+ //Configure IB_BAR1 to BAR1 for LL2 for core0
+ *(ptrReg+IB_BAR1/4) = 1;
+ *(ptrReg+IB_START1_LO/4) = (int)PCIE_DEV->resource[1].start;
+ *(ptrReg+IB_START1_HI/4) = 0;
+ *(ptrReg+IB_OFFSET1/4) = LL2_START + (1 << 28);
+
+ //Configure IB_BAR2 to BAR2 for MSMC
+ *(ptrReg+IB_BAR2/4) = 2;
+ *(ptrReg+IB_START2_LO/4) = (int)PCIE_DEV->resource[2].start;
+ *(ptrReg+IB_START2_HI/4) = 0;
+ *(ptrReg+IB_OFFSET2/4) = MSMC_START;
+
+ //Configure IB_BAR3 to BAR3 for DDR
+ *(ptrReg+IB_BAR3/4) = 3;
+ *(ptrReg+IB_START3_LO/4) = (int)PCIE_DEV->resource[3].start;
+ *(ptrReg+IB_START3_HI/4) = 0;
+ *(ptrReg+IB_OFFSET3/4) = DDR_START;
+
+#if HELLO_WORLD_DEMO
+ //Load DDR init code into DSP
+ pushData(ddrInitCode, 0, &bootEntryAddr);
+
+ //Write boot entry address into MAGIC_ADDR
+ WriteDSPMemory(0, MAGIC_ADDR, &bootEntryAddr, 4);
+
+ while (1) {
+ ReadDSPMemory(0, MAGIC_ADDR, buffer, 4);
+ if (buffer[0]==0) break;
+ for (i=0; i<1000; i++) j++;
+ }
+
+ //Load "Hello World" demo into DSP
+ pushData(bootCode, 9, &bootEntryAddr);
+
+ //Write boot entry address into MAGIC_ADDR
+ WriteDSPMemory(0, MAGIC_ADDR, &bootEntryAddr, 4);
+#endif
+
+#if POST_DEMO
+ //Load POST demo code into DSP
+ pushData(post6678, 0, &bootEntryAddr);
+
+ //Write boot entry address into MAGIC_ADDR
+ WriteDSPMemory(0, MAGIC_ADDR, &bootEntryAddr, 4);
+#endif
+ }
+ else {
+ printk ("No PCIE device found!!!\n") ;
+ }
+
+ return 1 ;
+}
+
+void cleanup_module(void)
+{
+
+ if (PCIE_DEV != NULL) {
+
+ /* ---------------------------------------------------------------------
+ * Unmap baseRegs region & release the reg region.
+ * ---------------------------------------------------------------------
+ */
+ iounmap(regVirt) ;
+ if (pci_resource_flags (PCIE_DEV, 0) & IORESOURCE_MEM) {
+ /* Map the memory region. */
+ release_mem_region (regBase,
+ regLen);
+ }
+ else {
+ /* Map the memory region. */
+ release_region (regBase,
+ regLen);
+ }
+
+ /* ---------------------------------------------------------------------
+ * Unmap LL2 region & release the reg region.
+ * ---------------------------------------------------------------------
+ */
+ iounmap(memVirt) ;
+ if (pci_resource_flags (PCIE_DEV, 1) & IORESOURCE_MEM) {
+ /* Map the memory region. */
+ release_mem_region (memBase,
+ memLen);
+ }
+ else {
+ /* Map the memory region. */
+ release_region (memBase,
+ memLen);
+ }
+
+ /* ---------------------------------------------------------------------
+ * Unmap MSMC region & release the reg region.
+ * ---------------------------------------------------------------------
+ */
+ iounmap(msmcVirt) ;
+ if (pci_resource_flags (PCIE_DEV, 2) & IORESOURCE_MEM) {
+ /* Map the memory region. */
+ release_mem_region (msmcBase,
+ msmcLen);
+ }
+ else {
+ /* Map the memory region. */
+ release_region (msmcBase,
+ msmcLen);
+ }
+
+ /* ---------------------------------------------------------------------
+ * Unmap DDR region & release the reg region.
+ * ---------------------------------------------------------------------
+ */
+ iounmap(ddrVirt) ;
+ if (pci_resource_flags (PCIE_DEV, 3) & IORESOURCE_MEM) {
+ /* Map the memory region. */
+ release_mem_region (ddrBase,
+ ddrLen);
+ }
+ else {
+ /* Map the memory region. */
+ release_region (ddrBase,
+ ddrLen);
+ }
+
+ free_irq (irqNo, &dummy) ;
+ }
+}
+
+
+
+
diff --git a/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/.ccsproject b/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/.ccsproject
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?ccsproject version="1.0"?>
+
+<projectOptions>
+<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
+<deviceEndianness value="little"/>
+<codegenToolVersion value="7.2.1"/>
+<isElfFormat value="true"/>
+<rts value="rts6600_elf.lib"/>
+</projectOptions>
diff --git a/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/.cproject b/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/.cproject
--- /dev/null
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?fileVersion 4.0.0?>
+
+<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+ <storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
+ <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" moduleId="org.eclipse.cdt.core.settings" name="Debug">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.rtsc.xdctools.parsers.ErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.pathentry"/>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactExtension="out" artifactName="../bin/pcieboot_ddrinit_evm6678l" 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">
+ <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513." name="/" resourcePath="">
+ <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain.1437783928" 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.1651564508">
+ <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.944250360" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
+ <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C6000.GenericC66xxDevice"/>
+ <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
+ <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
+ <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
+ <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
+ <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.11;"/>
+ <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
+ </option>
+ <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1861349532" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.1" valueType="string"/>
+ <targetPlatform id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug.391813781" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug"/>
+ <builder buildPath="${workspace_loc:/pcieboot_ddrinit_evmc6678l/Debug}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug.1522158538" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug"/>
+ <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug.882037436" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug">
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING.1643228293" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING" valueType="stringList">
+ <listOptionValue builtIn="false" value="225"/>
+ </option>
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.SILICON_VERSION.1162385299" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.SILICON_VERSION" value="6600" valueType="string"/>
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH.1360329378" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH" valueType="includePath">
+ <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
+ <listOptionValue builtIn="false" value=""${TI_PDK_C6678_INSTALL_DIR}/packages/ti/platform""/>
+ </option>
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.1539422311" 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"/>
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEFINE.1729702344" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEFINE" valueType="definedSymbols">
+ <listOptionValue builtIn="false" value="_EVMC6678L_"/>
+ </option>
+ <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS.1023912707" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS"/>
+ <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS.979818748" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS"/>
+ <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS.416705288" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS"/>
+ <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS.616636339" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS"/>
+ </tool>
+ <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.1651564508" name="C6000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug">
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE.1931592324" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE" value=""../bin/pcieboot_ddrinit_evm6678l.out"" valueType="string"/>
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE.612136299" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE" value=""../bin/pcieboot_ddrinit_evm6678l.map"" valueType="string"/>
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY.1501448535" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY" valueType="libs">
+ <listOptionValue builtIn="false" value=""ti.platform.evm6678l.ae66""/>
+ <listOptionValue builtIn="false" value=""libc.a""/>
+ </option>
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH.1252449937" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH" valueType="stringList">
+ <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
+ <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
+ <listOptionValue builtIn="false" value=""${TI_PDK_C6678_INSTALL_DIR}/packages/ti/platform/evmc6678l/platform_lib/lib/debug""/>
+ </option>
+ </tool>
+ <tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.762712048" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool">
+ <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.1607740639" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList">
+ <listOptionValue builtIn="false" value=""${TI_PDK_C6678_INSTALL_DIR}/packages""/>
+ </option>
+ <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.731138713" name="RTSC target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.elf.C66" valueType="string"/>
+ <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.749184621" name="RTSC platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.evm6678" valueType="string"/>
+ <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1757534191" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/>
+ <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.389800643" name="Code generation tool directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value=""${CG_TOOL_ROOT}"" valueType="string"/>
+ </tool>
+ </toolChain>
+ </folderInfo>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
+ <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
+ <storageModule moduleId="scannerConfiguration"/>
+ </cconfiguration>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <project id="pcieboot_ddrinit.com.ti.ccstudio.buildDefinitions.C6000.ProjectType.1742876545" name="C6000" projectType="com.ti.ccstudio.buildDefinitions.C6000.ProjectType"/>
+ </storageModule>
+</cproject>
diff --git a/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/.project b/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/.project
--- /dev/null
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>pcieboot_ddrinit_evmc6678l</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+ <arguments>
+ <dictionary>
+ <key>?name?</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.append_environment</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.autoBuildTarget</key>
+ <value>all</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildArguments</key>
+ <value>-k</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildCommand</key>
+ <value>${CCS_INSTALL_ROOT}/utils/gmake/gmake</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildLocation</key>
+ <value>${workspace_loc:/pcieboot_ddrinit_evmc6678l/Debug}</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
+ <value>clean</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.contents</key>
+ <value>org.eclipse.cdt.make.core.activeConfigSettings</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableFullBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.fullBuildTarget</key>
+ <value>all</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.stopOnError</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
+ <value>true</value>
+ </dictionary>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+ <triggers>full,incremental,</triggers>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.rtsc.xdctools.buildDefinitions.XDC.xdcNature</nature>
+ <nature>com.ti.ccstudio.managedbuild.core.ccsNature</nature>
+ <nature>org.eclipse.cdt.core.cnature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+ <nature>org.eclipse.cdt.core.ccnature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+ </natures>
+ <linkedResources>
+ <link>
+ <name>README.pdf</name>
+ <type>1</type>
+ <location>TI_MCSDK_PCIEBOOT_DIR/docs/README.pdf</location>
+ </link>
+ <link>
+ <name>src</name>
+ <type>2</type>
+ <locationURI>TI_MCSDK_PCIEBOOT_DIR/pcieboot_ddrinit/src</locationURI>
+ </link>
+ </linkedResources>
+</projectDescription>
diff --git a/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/bin/header.txt b/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/bin/header.txt
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
diff --git a/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/bin/pcieboot_ddrinit.rmd b/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/bin/pcieboot_ddrinit.rmd
--- /dev/null
@@ -0,0 +1,11 @@
+-a
+-boot
+-e _c_int00
+
+ROMS
+{
+ ROM1: org = 0x800000, length = 0x80000, memwidth = 32, romwidth = 32
+ files = { pcieboot_ddrinit.btbl }
+}
+
+
diff --git a/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/bin/pcieboot_ddrinit_elf2HBin.bat b/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/bin/pcieboot_ddrinit_elf2HBin.bat
--- /dev/null
@@ -0,0 +1,25 @@
+set C6000_CG_DIR="C:\Program Files\Texas Instruments\ccsv5\tools\compiler\c6000"
+set TARGET=6678
+set ENDIAN=little
+set PATH=%PATH%;%SystemRoot%\system32;%SystemRoot%;
+
+
+@echo off
+
+echo C6000_CG_DIR set as: %C6000_CG_DIR%
+echo TARGET set as: %TARGET%
+
+echo Converting .out to HEX ...
+if %ENDIAN% == little (
+%C6000_CG_DIR%\bin\hex6x -order L pcieboot_ddrinit.rmd pcieboot_ddrinit_evm%TARGET%l.out
+) else (
+%C6000_CG_DIR%\bin\hex6x -order M pcieboot_ddrinit.rmd pcieboot_ddrinit_evm%TARGET%l.out
+)
+
+..\..\..\..\..\..\bttbl2hfile\Bttbl2Hfile pcieboot_ddrinit.btbl pcieboot_ddrinit.h pcieboot_ddrinit.bin
+
+..\..\..\..\..\..\hfile2array\hfile2array pcieboot_ddrinit.h pcieDdrInit.h ddrInitCode
+
+move pcieDdrInit.h ..\..\..\linux_host_loader\
+
+
diff --git a/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/macros.ini b/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/macros.ini
--- /dev/null
@@ -0,0 +1 @@
+TI_MCSDK_PCIEBOOT_DIR="../../../../
diff --git a/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/pcieboot_ddrinit.cmd b/boot_loader/examples/pcie/pcieboot_ddrinit/evmc6678l/pcieboot_ddrinit.cmd
--- /dev/null
@@ -0,0 +1,74 @@
+/******************************************************************************
+ * Copyright (c) 2011 Texas Instruments Incorporated - http://www.ti.com
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ *****************************************************************************/
+/*
+ * Linker command file
+ *
+ */
+
+-c
+-heap 0x1000
+-stack 0x1000
+
+/* Memory Map 1 - the default */
+MEMORY
+{
+ L2_LOCAL (RWX) : org = 0x10820000, len = 0x80000
+}
+
+SECTIONS
+{
+ .text:_boot_entry > L2_LOCAL
+ .csl_vect > L2_LOCAL
+ .cppi > L2_LOCAL
+ .linkram > L2_LOCAL
+ .mac_buffer > L2_LOCAL
+ platform_lib > L2_LOCAL
+ .text > L2_LOCAL
+ GROUP (NEAR_DP)
+ {
+ .neardata
+ .rodata
+ .bss
+ } load > L2_LOCAL
+ .stack > L2_LOCAL
+ .cinit > L2_LOCAL
+ .cio > L2_LOCAL
+ .const > L2_LOCAL
+ .data > L2_LOCAL
+ .switch > L2_LOCAL
+ .sysmem > L2_LOCAL
+ .far > L2_LOCAL
+ .testMem > L2_LOCAL
+ .fardata > L2_LOCAL
+}
+
diff --git a/boot_loader/examples/pcie/pcieboot_ddrinit/src/pcieboot_ddrinit.c b/boot_loader/examples/pcie/pcieboot_ddrinit/src/pcieboot_ddrinit.c
--- /dev/null
@@ -0,0 +1,127 @@
+/******************************************************************************
+ * Copyright (c) 2011 Texas Instruments Incorporated - http://www.ti.com
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Texas Instruments Incorporated emac the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ *****************************************************************************/
+
+/**************************************************************************************
+ * FILE PURPOSE: PCIe Boot DDR Init Example
+ **************************************************************************************
+ * FILE NAME: pcieboot_ddrinit.c
+ *
+ * DESCRIPTION: A simple example to initialize the DDR before booting an image via PCIe.
+ *
+ ***************************************************************************************/
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include "platform.h"
+
+#define DEVICE_REG32_W(x,y) *(volatile uint32_t *)(x)=(y)
+#define DEVICE_REG32_R(x) (*(volatile uint32_t *)(x))
+
+#ifdef _EVMC6678L_
+#define MAGIC_ADDR 0x87fffc
+#endif
+
+#ifdef _EVMC6670L_
+#define MAGIC_ADDR 0x8ffffc
+#endif
+
+#define BOOT_MAGIC_ADDR(x) (MAGIC_ADDR + (1<<28) + (x<<24))
+
+/* OSAL functions for Platform Library */
+uint8_t *Osal_platformMalloc (uint32_t num_bytes, uint32_t alignment)
+{
+ return malloc(num_bytes);
+}
+
+void Osal_platformFree (uint8_t *dataPtr, uint32_t num_bytes)
+{
+ /* Free up the memory */
+ if (dataPtr)
+ {
+ free(dataPtr);
+ }
+}
+
+void Osal_platformSpiCsEnter(void)
+{
+ return;
+}
+
+void Osal_platformSpiCsExit (void)
+{
+ return;
+}
+
+void
+start_boot
+(
+ void
+)
+{
+ void (*exit)();
+ uint32_t entry_addr;
+
+ while(1)
+ {
+ entry_addr = DEVICE_REG32_R(BOOT_MAGIC_ADDR(0));
+ if (entry_addr != 0)
+ {
+ /* jump to the exit point, which will be the entry point for the full IBL */
+ exit = (void (*)())entry_addr;
+ (*exit)();
+ }
+ platform_delay(1);
+ }
+}
+
+/******************************************************************************
+ * Function: main
+ ******************************************************************************/
+void main ()
+{
+ platform_init_flags init_flags;
+ platform_init_config init_config;
+
+ /* Initialize main Platform lib */
+ memset(&init_config, 0, sizeof(platform_init_config));
+ memset(&init_flags, 1, sizeof(platform_init_flags));
+ if (platform_init(&init_flags, &init_config) != Platform_EOK)
+ {
+ printf ("Platform init failed!\n");
+ return;
+ }
+
+ /* Clear the boot entry address of the boot image and start to boot */
+ DEVICE_REG32_W(BOOT_MAGIC_ADDR(0), 0);
+ start_boot();
+}
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/.ccsproject b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/.ccsproject
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?ccsproject version="1.0"?>
+
+<projectOptions>
+<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
+<deviceEndianness value="little"/>
+<codegenToolVersion value="7.2.1"/>
+<isElfFormat value="true"/>
+<rts value="rts6600_elf.lib"/>
+</projectOptions>
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/.cproject b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/.cproject
--- /dev/null
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?fileVersion 4.0.0?>
+
+<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+ <storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
+ <cconfiguration id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513" moduleId="org.eclipse.cdt.core.settings" name="Debug">
+ <externalSettings/>
+ <extensions>
+ <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
+ <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="org.eclipse.rtsc.xdctools.parsers.ErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.pathentry"/>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactExtension="out" artifactName="../bin/pcieboot_helloworld_evm6678l" 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">
+ <folderInfo id="com.ti.ccstudio.buildDefinitions.C6000.Debug.1869204513." name="/" resourcePath="">
+ <toolChain id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.DebugToolchain.1437783928" 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.1651564508">
+ <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.944250360" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
+ <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=com.ti.ccstudio.deviceModel.C6000.GenericC66xxDevice"/>
+ <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
+ <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/>
+ <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
+ <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
+ <listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.11;"/>
+ <listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
+ </option>
+ <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1861349532" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.1" valueType="string"/>
+ <targetPlatform id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug.391813781" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug"/>
+ <builder buildPath="${workspace_loc:/pcieboot_helloworld_evmc6678l/Debug}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug.1522158538" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug"/>
+ <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug.882037436" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug">
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING.1643228293" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DIAG_WARNING" valueType="stringList">
+ <listOptionValue builtIn="false" value="225"/>
+ </option>
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.SILICON_VERSION.1162385299" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.SILICON_VERSION" value="6600" valueType="string"/>
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH.1360329378" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.INCLUDE_PATH" valueType="includePath">
+ <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
+ <listOptionValue builtIn="false" value=""${TI_PDK_C6678_INSTALL_DIR}/packages/ti/platform""/>
+ </option>
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.ABI.1539422311" 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"/>
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEFINE.172564945" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compilerID.DEFINE" valueType="definedSymbols">
+ <listOptionValue builtIn="false" value="_EVMC6678L_"/>
+ </option>
+ <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS.1023912707" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__C_SRCS"/>
+ <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS.979818748" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__CPP_SRCS"/>
+ <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS.416705288" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM_SRCS"/>
+ <inputType id="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS.616636339" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.compiler.inputType__ASM2_SRCS"/>
+ </tool>
+ <tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug.1651564508" name="C6000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.linkerDebug">
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE.1931592324" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.OUTPUT_FILE" value=""../bin/pcieboot_helloworld_evm6678l.out"" valueType="string"/>
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE.612136299" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.MAP_FILE" value=""../bin/pcieboot_helloworld_evm6678l.map"" valueType="string"/>
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY.1501448535" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.LIBRARY" valueType="libs">
+ <listOptionValue builtIn="false" value=""ti.platform.evm6678l.ae66""/>
+ <listOptionValue builtIn="false" value=""libc.a""/>
+ </option>
+ <option id="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH.1252449937" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.linkerID.SEARCH_PATH" valueType="stringList">
+ <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
+ <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
+ <listOptionValue builtIn="false" value=""${TI_PDK_C6678_INSTALL_DIR}/packages/ti/platform/evmc6678l/platform_lib/lib/debug""/>
+ </option>
+ </tool>
+ <tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.762712048" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool">
+ <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.1607740639" name="RTSC package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" valueType="stringList">
+ <listOptionValue builtIn="false" value=""${TI_PDK_C6678_INSTALL_DIR}/packages""/>
+ </option>
+ <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.731138713" name="RTSC target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.elf.C66" valueType="string"/>
+ <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM.749184621" name="RTSC platform (-p)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.PLATFORM" value="ti.platforms.evm6678" valueType="string"/>
+ <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.1757534191" name="Build profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/>
+ <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.389800643" name="Code generation tool directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value=""${CG_TOOL_ROOT}"" valueType="string"/>
+ </tool>
+ </toolChain>
+ </folderInfo>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+ <storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
+ <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
+ <storageModule moduleId="scannerConfiguration"/>
+ </cconfiguration>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <project id="pcieboot_helloworld.com.ti.ccstudio.buildDefinitions.C6000.ProjectType.1742876545" name="C6000" projectType="com.ti.ccstudio.buildDefinitions.C6000.ProjectType"/>
+ </storageModule>
+</cproject>
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/.project b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/.project
--- /dev/null
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>pcieboot_helloworld_evmc6678l</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+ <arguments>
+ <dictionary>
+ <key>?name?</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.append_environment</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.autoBuildTarget</key>
+ <value>all</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildArguments</key>
+ <value>-k</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildCommand</key>
+ <value>${CCS_INSTALL_ROOT}/utils/gmake/gmake</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildLocation</key>
+ <value>${workspace_loc:/pcieboot_helloworld_evmc6678l/Debug}</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
+ <value>clean</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.contents</key>
+ <value>org.eclipse.cdt.make.core.activeConfigSettings</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableFullBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.fullBuildTarget</key>
+ <value>all</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.stopOnError</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
+ <value>true</value>
+ </dictionary>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+ <triggers>full,incremental,</triggers>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.rtsc.xdctools.buildDefinitions.XDC.xdcNature</nature>
+ <nature>com.ti.ccstudio.managedbuild.core.ccsNature</nature>
+ <nature>org.eclipse.cdt.core.cnature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+ <nature>org.eclipse.cdt.core.ccnature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+ </natures>
+ <linkedResources>
+ <link>
+ <name>README.pdf</name>
+ <type>1</type>
+ <location>TI_MCSDK_PCIEBOOT_DIR/docs/README.pdf</location>
+ </link>
+ <link>
+ <name>src</name>
+ <type>2</type>
+ <locationURI>TI_MCSDK_PCIEBOOT_DIR/pcieboot_helloworld/src</locationURI>
+ </link>
+ </linkedResources>
+</projectDescription>
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/bin/header.txt b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/bin/header.txt
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/bin/helloworld_elf2HBin.bat b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/bin/helloworld_elf2HBin.bat
--- /dev/null
@@ -0,0 +1,27 @@
+set C6000_CG_DIR="C:\Program Files\Texas Instruments\ccsv5\tools\compiler\c6000"
+set TOOL_DIR="..\..\..\..\..\..\"
+set TARGET=6678
+set ENDIAN=little
+set PATH=%PATH%;%SystemRoot%\system32;%SystemRoot%;
+
+
+@echo off
+
+echo C6000_CG_DIR set as: %C6000_CG_DIR%
+echo TARGET set as: %TARGET%
+echo IBL_ROOT_DIR set as : %IBL_ROOT_DIR%
+
+echo Converting .out to HEX ...
+if %ENDIAN% == little (
+%C6000_CG_DIR%\bin\hex6x -order L helloworld_image.rmd pcieboot_helloworld_evm%TARGET%l.out
+) else (
+%C6000_CG_DIR%\bin\hex6x -order M helloworld_image.rmd pcieboot_helloworld_evm%TARGET%l.out
+)
+
+..\..\..\..\..\..\bttbl2hfile\Bttbl2Hfile pcieboot_helloworld.btbl pcieboot_helloworld.h pcieboot_helloworld.bin
+
+..\..\..\..\..\..\hfile2array\hfile2array pcieboot_helloworld.h pcieBootCode.h bootCode
+
+move pcieBootCode.h ..\..\..\linux_host_loader\
+
+
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/bin/helloworld_image.rmd b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/bin/helloworld_image.rmd
--- /dev/null
@@ -0,0 +1,11 @@
+-a
+-boot
+-e _c_int00
+
+ROMS
+{
+ ROM1: org = 0x80000000, length = 0x200000, memwidth = 32, romwidth = 32
+ files = { pcieboot_helloworld.btbl }
+}
+
+
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/macros.ini b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/macros.ini
--- /dev/null
@@ -0,0 +1 @@
+TI_MCSDK_PCIEBOOT_DIR="../../../../
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/pcieboot_helloworld.cmd b/boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/pcieboot_helloworld.cmd
--- /dev/null
@@ -0,0 +1,64 @@
+/******************************************************************************
+ * Copyright (c) 2011 Texas Instruments Incorporated - http://www.ti.com
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ *****************************************************************************/
+/*
+ * Linker command file
+ *
+ */
+
+-c
+-heap 0x2000
+-stack 0x2000
+
+/* Memory Map 1 - the default */
+MEMORY
+{
+ DDR (RWX) : org = 0x80000000, len = 0x20000000
+ LL2 (RWX) : org = 0x00800000, len = 0x00010000
+}
+
+SECTIONS
+{
+ .text > DDR
+ platform_lib > DDR
+ .const > DDR
+ .neardata > LL2
+ .fardata > DDR
+ .switch > DDR
+ .cinit > DDR
+ .stack > LL2
+ .sysmem > LL2
+ .bss > LL2
+ .far > LL2
+ .cio > LL2
+}
+
diff --git a/boot_loader/examples/pcie/pcieboot_helloworld/src/pcieboot_helloworld.c b/boot_loader/examples/pcie/pcieboot_helloworld/src/pcieboot_helloworld.c
--- /dev/null
@@ -0,0 +1,181 @@
+/******************************************************************************
+* Copyright (c) 2011 Texas Instruments Incorporated - http://www.ti.com
+*
+* Redistribution and use in source and binary forms, with or without
+* modification, are permitted provided that the following conditions
+* are met:
+*
+* Redistributions of source code must retain the above copyright
+* notice, this list of conditions and the following disclaimer.
+*
+* Redistributions in binary form must reproduce the above copyright
+* notice, this list of conditions and the following disclaimer in the
+* documentation and/or other materials provided with the
+* distribution.
+*
+* Neither the name of Texas Instruments Incorporated emac the names of
+* its contributors may be used to endorse or promote products derived
+* from this software without specific prior written permission.
+*
+* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*
+*****************************************************************************/
+
+/**************************************************************************************
+* FILE PURPOSE: PCIe Boot Hello World Example
+**************************************************************************************
+* FILE NAME: pcieboot_helloworld.c
+*
+* DESCRIPTION: A simple hello world example demonstrating PCIe boot.
+*
+***************************************************************************************/
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include "platform.h"
+
+#define DEVICE_REG32_W(x,y) *(volatile uint32_t *)(x)=(y)
+#define DEVICE_REG32_R(x) (*(volatile uint32_t *)(x))
+
+#define CHIP_LEVEL_REG 0x02620000
+#define KICK0 (CHIP_LEVEL_REG + 0x0038)
+#define KICK1 (CHIP_LEVEL_REG + 0x003C)
+
+/* Magic address RBL is polling */
+#ifdef _EVMC6678L_
+#define MAGIC_ADDR 0x87fffc
+#endif
+
+#ifdef _EVMC6670L_
+#define MAGIC_ADDR 0x8ffffc
+#endif
+
+#define BOOT_MAGIC_ADDR(x) (MAGIC_ADDR + (1<<28) + (x<<24))
+#define IPCGR(x) (0x02620240 + x*4)
+
+#define BOOT_MAGIC_NUMBER 0xBABEFACE
+
+#define BOOT_UART_BAUDRATE 115200
+
+/* pcieboot_helloworld version */
+char version[] = "01.00.00.00";
+
+extern cregister volatile unsigned int DNUM;
+extern far uint32_t _c_int00;
+
+/* OSAL functions for Platform Library */
+uint8_t *Osal_platformMalloc (uint32_t num_bytes, uint32_t alignment)
+{
+ return malloc(num_bytes);
+}
+
+void Osal_platformFree (uint8_t *dataPtr, uint32_t num_bytes)
+{
+ /* Free up the memory */
+ if (dataPtr)
+ {
+ free(dataPtr);
+ }
+}
+
+void Osal_platformSpiCsEnter(void)
+{
+ return;
+}
+
+void Osal_platformSpiCsExit (void)
+{
+ return;
+}
+
+/******************************************************************************
+* Function: write_uart
+******************************************************************************/
+void
+write_uart
+(
+ char* msg
+ )
+{
+ uint32_t i;
+ uint32_t msg_len = strlen(msg);
+
+ /* Write the message to the UART */
+ for (i = 0; i < msg_len; i++)
+ {
+ platform_uart_write(msg[i]);
+ }
+}
+
+void
+write_boot_magic_number
+(
+ void
+ )
+{
+ DEVICE_REG32_W(MAGIC_ADDR, BOOT_MAGIC_NUMBER);
+ while(1);
+}
+
+/******************************************************************************
+* Function: main
+******************************************************************************/
+void main ()
+{
+ char version_msg[] = "\r\n\r\nPCIE Boot Hello World Example Version ";
+ char boot_msg[80];
+ platform_info pform_info;
+ uint32_t core;
+
+ if (DNUM == 0)
+ {
+ /* Initialize UART */
+ platform_uart_init();
+ platform_uart_set_baudrate(BOOT_UART_BAUDRATE);
+
+ printf("%s%s\n\n", version_msg, version);
+ write_uart(version_msg);
+ write_uart(version);
+
+ write_uart("\r\n\r\nBooting Hello World image on Core 0 from PCIE ...");
+
+ platform_get_info(&pform_info);
+
+ /* Unlock the chip registers */
+ DEVICE_REG32_W(KICK0, 0x83e70b13);
+ DEVICE_REG32_W(KICK1, 0x95a4f1e0);
+
+ /* Writing the entry address to other cores */
+ for (core = 1; core < pform_info.cpu.core_count; core++)
+ {
+ sprintf(boot_msg, "\r\n\r\nBooting Hello World image on Core %d from Core 0 ...", core);
+ write_uart(boot_msg);
+
+ DEVICE_REG32_W(BOOT_MAGIC_ADDR(core), (uint32_t)&_c_int00);
+
+ /* Delay 1us sec */
+ platform_delay(1);
+ }
+ for (core = 1; core < pform_info.cpu.core_count; core++)
+ {
+ /* IPC interrupt other cores */
+ DEVICE_REG32_W(IPCGR(core), 1);
+ platform_delay(1000);
+ }
+
+ }
+
+ else write_boot_magic_number();
+
+ while(1);
+}
diff --git a/boot_loader/examples/pcie/pcieboot_post/evmc6678l/bin/header.txt b/boot_loader/examples/pcie/pcieboot_post/evmc6678l/bin/header.txt
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
diff --git a/boot_loader/examples/pcie/pcieboot_post/evmc6678l/bin/pcieboot_post_elf2HBin.bat b/boot_loader/examples/pcie/pcieboot_post/evmc6678l/bin/pcieboot_post_elf2HBin.bat
--- /dev/null
@@ -0,0 +1,25 @@
+set C6000_CG_DIR="C:\Program Files\Texas Instruments\ccsv5\tools\compiler\c6000"
+set TOOL_DIR="..\..\..\..\..\..\"
+set TARGET=6678
+set ENDIAN=little
+set PATH=%PATH%;%SystemRoot%\system32;%SystemRoot%;
+
+
+@echo off
+
+echo C6000_CG_DIR set as: %C6000_CG_DIR%
+echo TARGET set as: %TARGET%
+echo IBL_ROOT_DIR set as : %IBL_ROOT_DIR%
+
+copy ..\..\..\..\..\..\post\evmc6678l\bin\post_evm6678l.out
+
+echo Converting .out to HEX ...
+if %ENDIAN% == little (
+%C6000_CG_DIR%\bin\hex6x -order L post_evm6678l.rmd post_evm%TARGET%l.out
+) else (
+%C6000_CG_DIR%\bin\hex6x -order M post_evm6678l.rmd post_evm%TARGET%l.out
+)
+
+..\..\..\..\..\..\bttbl2hfile\Bttbl2Hfile pcieboot_post_evm6678l.btbl pcieboot_post_evm6678l.h pcieboot_post_evm6678l.bin
+..\..\..\..\..\..\hfile2array\hfile2array pcieboot_post_evm6678l.h post6678.h post6678
+move post6678.h ..\..\..\linux_host_loader\
diff --git a/boot_loader/examples/pcie/pcieboot_post/evmc6678l/bin/post_evm6678l.rmd b/boot_loader/examples/pcie/pcieboot_post/evmc6678l/bin/post_evm6678l.rmd
--- /dev/null
@@ -0,0 +1,12 @@
+-a
+-boot
+-e _c_int00
+
+ROMS
+{
+ ROM1: org = 0x00800000, length = 0x80000, memwidth = 32, romwidth = 32
+ files = { pcieboot_post_evm6678l.btbl }
+}
+
+
+
\ No newline at end of file
index 94f697b9737496c69a3106db00a3866e8d48c7ff..6ef71362c18401e49a626652570e9a605fcd0acb 100644 (file)
Binary files a/boot_loader/examples/srio/docs/readme.doc and b/boot_loader/examples/srio/docs/readme.doc differ
Binary files a/boot_loader/examples/srio/docs/readme.doc and b/boot_loader/examples/srio/docs/readme.doc differ
diff --git a/boot_loader/examples/srio/srioboot_ddrinit/evmc6670l/.ccsproject b/boot_loader/examples/srio/srioboot_ddrinit/evmc6670l/.ccsproject
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
diff --git a/boot_loader/examples/srio/srioboot_ddrinit/evmc6670l/.cproject b/boot_loader/examples/srio/srioboot_ddrinit/evmc6670l/.cproject
index 381b8971c02736ca4eb23abb68d5de53c41c9026..1cf2e71a62117f4b7423a1f857493ce74a77cd85 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1861349532" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/>
+ <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1861349532" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.1" valueType="string"/>
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug.391813781" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug"/>
<builder buildPath="${workspace_loc:/srioboot_ddrinit_evmc6670l/Debug}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug.1522158538" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug"/>
<tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug.882037436" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug">
diff --git a/boot_loader/examples/srio/srioboot_ddrinit/evmc6670l/bin/header.txt b/boot_loader/examples/srio/srioboot_ddrinit/evmc6670l/bin/header.txt
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
diff --git a/boot_loader/examples/srio/srioboot_ddrinit/evmc6670l/bin/srioboot_ddrinit_elf2HBin.bat b/boot_loader/examples/srio/srioboot_ddrinit/evmc6670l/bin/srioboot_ddrinit_elf2HBin.bat
index 0aadee5719da7c055e50d6968e4abca29d8f926f..6853db69ad0f8e4fb283846fe9276cad9f6a26e8 100644 (file)
..\..\..\..\..\..\hfile2array\hfile2array srioboot_ddrinit.h srioDdrInit.h ddrInitCode
-mv srioDdrInit.h ..\..\..\srioboot_example\src\
+move srioDdrInit.h ..\..\..\srioboot_example\src\
diff --git a/boot_loader/examples/srio/srioboot_ddrinit/evmc6678l/.ccsproject b/boot_loader/examples/srio/srioboot_ddrinit/evmc6678l/.ccsproject
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
diff --git a/boot_loader/examples/srio/srioboot_ddrinit/evmc6678l/.cproject b/boot_loader/examples/srio/srioboot_ddrinit/evmc6678l/.cproject
index fcadbb9a87224da28f32a60bad67279784143fb3..b974b805a9c5111ccf0343e8db20f7dd54cb83f9 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1861349532" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/>
+ <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1861349532" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.1" valueType="string"/>
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug.391813781" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug"/>
<builder buildPath="${workspace_loc:/srioboot_ddrinit_evmc6678l/Debug}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug.1522158538" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug"/>
<tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug.882037436" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug">
diff --git a/boot_loader/examples/srio/srioboot_ddrinit/evmc6678l/bin/header.txt b/boot_loader/examples/srio/srioboot_ddrinit/evmc6678l/bin/header.txt
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
diff --git a/boot_loader/examples/srio/srioboot_ddrinit/evmc6678l/bin/srioboot_ddrinit_elf2HBin.bat b/boot_loader/examples/srio/srioboot_ddrinit/evmc6678l/bin/srioboot_ddrinit_elf2HBin.bat
index c02a1be38ce25c5481181a269410b1ea270a0eb4..d4f1ad9e9d073126c5f6053749bd9967e7b84cba 100644 (file)
..\..\..\..\..\..\hfile2array\hfile2array srioboot_ddrinit.h srioDdrInit.h ddrInitCode
-mv srioDdrInit.h ..\..\..\srioboot_example\src\
+move srioDdrInit.h ..\..\..\srioboot_example\src\
diff --git a/boot_loader/examples/srio/srioboot_ddrinit/src/srioboot_ddrinit.c b/boot_loader/examples/srio/srioboot_ddrinit/src/srioboot_ddrinit.c
index d30a2285c47a1c23643715152985dbe82da49637..6f737271e68fc81cc90149913227d00fbd526787 100644 (file)
#include <stdio.h>
#include <string.h>
#include "platform.h"
-#include "ti/csl/csl_semAux.h"
#define DEVICE_REG32_W(x,y) *(volatile uint32_t *)(x)=(y)
#define DEVICE_REG32_R(x) (*(volatile uint32_t *)(x))
void Osal_platformSpiCsEnter(void)
{
- /* Get the hardware semaphore.
- *
- * Acquire Multi core CPPI synchronization lock
- */
- while ((CSL_semAcquireDirect (3)) == 0);
-
return;
}
void Osal_platformSpiCsExit (void)
{
- /* Release the hardware semaphore
- *
- * Release multi-core lock.
- */
- CSL_semReleaseSemaphore (3);
-
return;
}
diff --git a/boot_loader/examples/srio/srioboot_example/evmc6670l/.ccsproject b/boot_loader/examples/srio/srioboot_example/evmc6670l/.ccsproject
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
diff --git a/boot_loader/examples/srio/srioboot_example/evmc6670l/.cproject b/boot_loader/examples/srio/srioboot_example/evmc6670l/.cproject
index 6731bbfce4749c54d3f329b8898a8cf5e6afcb98..8ba03202b773be2167d0a1e418d4f6040fb80a8e 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <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"/>
+ <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.1" valueType="string"/>
<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"/>
<builder buildPath="${workspace_loc:/srioboot_example/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"/>
<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">
diff --git a/boot_loader/examples/srio/srioboot_example/evmc6678l/.ccsproject b/boot_loader/examples/srio/srioboot_example/evmc6678l/.ccsproject
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
diff --git a/boot_loader/examples/srio/srioboot_example/evmc6678l/.cproject b/boot_loader/examples/srio/srioboot_example/evmc6678l/.cproject
index 7327fed0bce8c0c525b6e391f8d3508ee1254ddb..aaa5f0f45ef657335e4cb4550dcd20211255d027 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <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"/>
+ <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.1" valueType="string"/>
<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"/>
<builder buildPath="${workspace_loc:/srioboot_example/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"/>
<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">
diff --git a/boot_loader/examples/srio/srioboot_example/src/srioBootExample.c b/boot_loader/examples/srio/srioboot_example/src/srioBootExample.c
index e2dcdc3b13557d448228080f4fe7090fbf62b2d7..14b54bc7218da14bf5921e70b299edade1404764 100644 (file)
#include "platform.h"
#include "srioDdrInit.h"
#include "srioBootCode.h"
-#include "ti/csl/csl_semAux.h"
#define DEVICE_REG32_W(x,y) *(volatile uint32_t *)(x)=(y)
#define DEVICE_REG32_R(x) (*(volatile uint32_t *)(x))
}
}
+void Osal_platformSpiCsEnter(void)
+{
+ return;
+}
+
+void Osal_platformSpiCsExit (void)
+{
+ return;
+}
+
/* Convert bytes to 32 bits */
uint32_t byteto32bits(uint8_t *pDspCode)
{
return(temp);
}
-void Osal_platformSpiCsEnter(void)
-{
- /* Get the hardware semaphore.
- *
- * Acquire Multi core CPPI synchronization lock
- */
- while ((CSL_semAcquireDirect (3)) == 0);
-
- return;
-}
-
-void Osal_platformSpiCsExit (void)
-{
- /* Release the hardware semaphore
- *
- * Release multi-core lock.
- */
- CSL_semReleaseSemaphore (3);
-
- return;
-}
-
-
/* Convert to big endian, if the .out to be booted is big endian, this is not required */
void
Convert2BigEndian
{
printf("Transfer DDR init code via SRIO successfully\n");
- platform_delay(100000);
+ platform_delay(1000000);
/* Push the boot image code to remote DSP DDR and boot core 0 to run Hello World */
if(pushData2Srio(bootCode, rio_id)==0)
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6670l/.ccsproject b/boot_loader/examples/srio/srioboot_helloworld/evmc6670l/.ccsproject
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6670l/.cproject b/boot_loader/examples/srio/srioboot_helloworld/evmc6670l/.cproject
index b20e902b8c6fddf03b6dacbbe076a74a1ed40728..ed795f48a078139fad06e4c52d39ef8a76bb9962 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1861349532" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/>
+ <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1861349532" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.1" valueType="string"/>
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug.391813781" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug"/>
<builder buildPath="${workspace_loc:/srioboot_helloworld_evmc6670l/Debug}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug.1522158538" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug"/>
<tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug.882037436" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug">
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6670l/bin/header.txt b/boot_loader/examples/srio/srioboot_helloworld/evmc6670l/bin/header.txt
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6670l/bin/helloworld_elf2HBin.bat b/boot_loader/examples/srio/srioboot_helloworld/evmc6670l/bin/helloworld_elf2HBin.bat
index 376009e5e7a671e0cc624074759c3ea38798bc40..a88fdf2991438c273ac79d344bda7cf4e1e19c39 100644 (file)
..\..\..\..\..\..\hfile2array\hfile2array srioboot_helloworld.h srioBootCode.h bootCode
-mv srioBootCode.h ..\..\..\srioboot_example\src\
+move srioBootCode.h ..\..\..\srioboot_example\src\
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6678l/.ccsproject b/boot_loader/examples/srio/srioboot_helloworld/evmc6678l/.ccsproject
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6678l/.cproject b/boot_loader/examples/srio/srioboot_helloworld/evmc6678l/.cproject
index e35d616605680f037d26c95014c56e20304ca51d..af400fc682ad351515622ff04f6e660eabb20aae 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1861349532" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.0" valueType="string"/>
+ <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1861349532" name="Code Generation tools version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="7.2.1" valueType="string"/>
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug.391813781" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.targetPlatformDebug"/>
<builder buildPath="${workspace_loc:/srioboot_helloworld_evmc6678l/Debug}" id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug.1522158538" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.builderDebug"/>
<tool id="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug.882037436" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_7.2.exe.compilerDebug">
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6678l/bin/header.txt b/boot_loader/examples/srio/srioboot_helloworld/evmc6678l/bin/header.txt
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
diff --git a/boot_loader/examples/srio/srioboot_helloworld/evmc6678l/bin/helloworld_elf2HBin.bat b/boot_loader/examples/srio/srioboot_helloworld/evmc6678l/bin/helloworld_elf2HBin.bat
index 4cf45c904e424720728ae9b2ec4e800a23548a3c..bedbcc267d79f5e1f62aab05508c9c5547eaf2d9 100644 (file)
..\..\..\..\..\..\hfile2array\hfile2array srioboot_helloworld.h srioBootCode.h bootCode
-mv srioBootCode.h ..\..\..\srioboot_example\src\
+move srioBootCode.h ..\..\..\srioboot_example\src\
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 d757e3dcbdb627f4eec53c8fe062559a4fc18403..0eedb416bbd668317becd9e5b661848c08a4ca78 100644 (file)
#include <stdio.h>
#include <string.h>
#include "platform.h"
-#include "ti/csl/csl_semAux.h"
#define DEVICE_REG32_W(x,y) *(volatile uint32_t *)(x)=(y)
#define DEVICE_REG32_R(x) (*(volatile uint32_t *)(x))
void Osal_platformSpiCsEnter(void)
{
- /* Get the hardware semaphore.
- *
- * Acquire Multi core CPPI synchronization lock
- */
- while ((CSL_semAcquireDirect (3)) == 0);
-
return;
}
void Osal_platformSpiCsExit (void)
{
- /* Release the hardware semaphore
- *
- * Release multi-core lock.
- */
- CSL_semReleaseSemaphore (3);
-
return;
}
index 2c75c39c7c2a703fbe3f472453e6394ef85cb274..1ce44de83a969ee561dc74ce1624f6c477e39fa8 100644 (file)
rm -f examples\srio\docs\readme.doc
+rm -f examples\pcie\docs\readme.doc
rm -f -r ..\factory_images
diff --git a/hfile2array/header.txt b/hfile2array/header.txt
--- /dev/null
+++ b/hfile2array/header.txt
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
index 19e658d452b91b5a5dd04a516fa6213fe1eb86d8..a6d7a5b06254f39e88d26f176a6c020163a6a57f 100644 (file)
int main(int argc, char **argv)
{
- FILE *out, *in;
+ FILE *out, *in, *in_hdr;
char line[200] = "uint8_t ";
+ char line_hdr[200];
if (argc != 4)
{
printf ("Can not open %s\n", *argv[1]);
return (-1);
}
+
+ in_hdr = fopen("header.txt", "rt");
+
+ if (in_hdr == NULL)
+ {
+ printf ("Can not open header.tx\n");
+ return (-1);
+ }
+
+ while (1)
+ {
+ if (fgets(line_hdr, 200, in_hdr) != NULL)
+ {
+ if (fputs(line_hdr, out) != 0)
+ {
+ printf ("fputs %s error\n", line_hdr);
+ goto error;
+ }
+ }
+ else
+ {
+ /* EOF reached */
+ break;
+ }
+ }
+
strcat (line, (const char *)(*argv++));
strcat (line, "[] = {\n");
if (fputs(line, out) != 0)
{
- printf ("fputs %s error\n", fputs);
+ printf ("fputs %s error\n", line);
goto error;
}
}
fclose(in);
+ fclose(in_hdr);
fclose(out);
return 0;
error:
fclose(in);
+ fclose(in_hdr);
fclose(out);
return (-1);
index ad01e503fab27cc5fab0a842b93f995134b8b0f1..ae5053064e7717c1bd52a22a21f6152638e44ec6 100644 (file)
Binary files a/hfile2array/hfile2array.exe and b/hfile2array/hfile2array.exe differ
Binary files a/hfile2array/hfile2array.exe and b/hfile2array/hfile2array.exe differ
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
index 7838f2c2160f161e6f887d3cc61806f7a20501dc..ecb1e58b66f00990b39a1fb3a2abd23a0a5f05eb 100644 (file)
--- a/post/evmc6670l/.cproject
+++ b/post/evmc6670l/.cproject
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <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"/>
+ <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.1" valueType="string"/>
<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"/>
<builder buildPath="${workspace_loc:/post/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"/>
<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">
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
index 230ca6d55e865455092b49c62b44a91a82a7b12a..d9b6dae0bae5e2968cf7f22ad226ce89e334f527 100644 (file)
--- a/post/evmc6678l/.cproject
+++ b/post/evmc6678l/.cproject
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <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"/>
+ <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.1" valueType="string"/>
<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"/>
<builder buildPath="${workspace_loc:/post/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"/>
<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">
index 7be3cfa1808fe708a190aca539a69896cd1d7084..9da0cb98412b737b5f2108434956ce6f5a8b196d 100644 (file)
Before starting the build following environment setup has to be done
1) variable C_DIR should be set to the top directory of the Code Generation tools e.g.
Linux bash shell:
- export C_DIR=/opt/TI/TI_CGT_C6000_7.2.0A10232/
+ export C_DIR=/opt/TI/TI_CGT_C6000_7.2.1/
MSYS bash shell:
export C_DIR='"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000"'
2) Code Generation tool binaries should be in the path e.g.
Linux bash shell:
- export PATH=/opt/TI/TI_CGT_C6000_7.2.0A10232/bin:$PATH
+ export PATH=/opt/TI/TI_CGT_C6000_7.2.1/bin:$PATH
MSYS bash shell:
export PATH=$PATH:/c/Program\ Files/Texas\ Instruments/ccsv5/tools/compiler/c6000/bin/
3) variable PFORM_LIB_DIR should be set the directory of the Platform Library root, e.g.
Linux bash shell:
- export PFORM_LIB_DIR=pdk_C66xx_1_0_0_10-rc1/packages/ti/platform
+ export PFORM_LIB_DIR=pdk_C66xx_1_0_0_10/packages/ti/platform
MSYS bash shell:
- export PFORM_LIB_DIR='"C:/Program Files/Texas Instruments/pdk_C66xx_1_0_0_10-rc1/packages/ti/platform"'
+ export PFORM_LIB_DIR='"C:/Program Files/Texas Instruments/pdk_C66xx_1_0_0_10/packages/ti/platform"'
The makefile for building the eepromwriter is in the directory "tools/writer/eeprom/evmc66xxl"
Following are the steps to build eepromwriter, e.g.:
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
index 31dd3502c8a93ca8e7ca0deefafb24056e7adcc2..07c28fdfd1f8d3970ab4a3239fd72d5ede37174f 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <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"/>
+ <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.1" valueType="string"/>
<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"/>
<builder buildPath="${workspace_loc:/eepromwriter/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"/>
<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">
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
index 9bdb3883257843a90350eaa3d59b591614baffed..097a4c273677705dc6e6127ff5fb4157410a68dc 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <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"/>
+ <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.1" valueType="string"/>
<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"/>
<builder buildPath="${workspace_loc:/eepromwriter/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"/>
<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">
index 3fcbcb04a81ca15329ed3da6905e5fb6f6148a18..6fc66481c44deaac1575e0a82a2559181ef3ad44 100644 (file)
#ifndef _TYPES_H
#define _TYPES_H
+typedef uint32_t Bool;
+
#define FALSE 0
#define TRUE 1
index a1df7a8933d84e35615a86c531c63956948b7c22..932340bc41717be024f2c51f2a5d51b5b8e0bf8a 100644 (file)
#include <string.h>
#include "platform.h"
#include "types.h"
-#include "ti/csl/csl_semAux.h"
/* EEPROM writer utility version */
char version[] = "01.00.00.03";
void Osal_platformSpiCsEnter(void)
{
- /* Get the hardware semaphore.
- *
- * Acquire Multi core CPPI synchronization lock
- */
- while ((CSL_semAcquireDirect (3)) == 0);
-
return;
}
void Osal_platformSpiCsExit (void)
{
- /* Release the hardware semaphore
- *
- * Release multi-core lock.
- */
- CSL_semReleaseSemaphore (3);
-
return;
}
index c0bae643f3908ab489a5681ff357ef550bc2ee39..63f6b0db59ab89e65d164b59f26e779274787725 100644 (file)
Before starting the build following environment setup has to be done
1) variable C_DIR should be set to the top directory of the Code Generation tools e.g.
Linux bash shell:
- export C_DIR=/opt/TI/TI_CGT_C6000_7.2.0A10232/
+ export C_DIR=/opt/TI/TI_CGT_C6000_7.2.1/
MSYS bash shell:
export C_DIR='"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000"'
2) Code Generation tool binaries should be in the path e.g.
Linux bash shell:
- export PATH=/opt/TI/TI_CGT_C6000_7.2.0A10232/bin:$PATH
+ export PATH=/opt/TI/TI_CGT_C6000_7.2.1/bin:$PATH
MSYS bash shell:
export PATH=$PATH:/c/Program\ Files/Texas\ Instruments/ccsv5/tools/compiler/c6000/bin/
3) variable PFORM_LIB_DIR should be set the directory of the Platform Library root, e.g.
Linux bash shell:
- export PFORM_LIB_DIR=pdk_C66xx_1_0_0_10-rc1/packages/ti/platform
+ export PFORM_LIB_DIR=pdk_C66xx_1_0_0_10/packages/ti/platform
MSYS bash shell:
- export PFORM_LIB_DIR='"C:/Program Files/Texas Instruments/pdk_C66xx_1_0_0_10-rc1/packages/ti/platform"'
+ export PFORM_LIB_DIR='"C:/Program Files/Texas Instruments/pdk_C66xx_1_0_0_10/packages/ti/platform"'
The makefile for building the nandwriter is in the directory "tools/writer/nand/evmc66xxl"
Following are the steps to build nandwriter, e.g.:
index fedc64a718224021adf8528a5539670ad2ab4258..1b22dfe47f6ed34a0bed1562dd8cc035d1370f91 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <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"/>
+ <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.1" valueType="string"/>
<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"/>
<builder buildPath="${workspace_loc:/nandwriter/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"/>
<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">
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
index 951446e16c4261f893d3c4e086e3635e42a54e7c..bae37be62b2f87d06722b119452eb16eafa83867 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <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"/>
+ <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.1" valueType="string"/>
<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"/>
<builder buildPath="${workspace_loc:/nandwriter/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"/>
<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">
index 3fcbcb04a81ca15329ed3da6905e5fb6f6148a18..6fc66481c44deaac1575e0a82a2559181ef3ad44 100644 (file)
#ifndef _TYPES_H
#define _TYPES_H
+typedef uint32_t Bool;
+
#define FALSE 0
#define TRUE 1
index bb7e7380c099738ae984de7a9335a1f46f74843f..1bd3bede5c92a127f9ad11bd5a0ac71defcd07a6 100644 (file)
#include <string.h>
#include "platform.h"
#include "types.h"
-#include "ti/csl/csl_semAux.h"
/* NAND writer utility version */
char version[] = "01.00.00.03";
void Osal_platformSpiCsEnter(void)
{
- /* Get the hardware semaphore.
- *
- * Acquire Multi core CPPI synchronization lock
- */
- while ((CSL_semAcquireDirect (3)) == 0);
-
return;
}
void Osal_platformSpiCsExit (void)
{
- /* Release the hardware semaphore
- *
- * Release multi-core lock.
- */
- CSL_semReleaseSemaphore (3);
-
return;
}
index e2c534a2659c5aa0582fa0bc25a88fb22c85c14a..6137dad6c9061476d5decb09b46946d8b7c9acc3 100644 (file)
Before starting the build following environment setup has to be done
1) variable C_DIR should be set to the top directory of the Code Generation tools e.g.
Linux bash shell:
- export C_DIR=/opt/TI/TI_CGT_C6000_7.2.0A10232/
+ export C_DIR=/opt/TI/TI_CGT_C6000_7.2.1/
MSYS bash shell:
export C_DIR='"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000"'
2) Code Generation tool binaries should be in the path e.g.
Linux bash shell:
- export PATH=/opt/TI/TI_CGT_C6000_7.2.0A10232/bin:$PATH
+ export PATH=/opt/TI/TI_CGT_C6000_7.2.1/bin:$PATH
MSYS bash shell:
export PATH=$PATH:/c/Program\ Files/Texas\ Instruments/ccsv5/tools/compiler/c6000/bin/
3) variable PFORM_LIB_DIR should be set the directory of the Platform Library root, e.g.
Linux bash shell:
- export PFORM_LIB_DIR=pdk_C66xx_1_0_0_10-rc1/packages/ti/platform
+ export PFORM_LIB_DIR=pdk_C66xx_1_0_0_10/packages/ti/platform
MSYS bash shell:
- export PFORM_LIB_DIR='"C:/Program Files/Texas Instruments/pdk_C66xx_1_0_0_10-rc1/packages/ti/platform"'
+ export PFORM_LIB_DIR='"C:/Program Files/Texas Instruments/pdk_C66xx_1_0_0_10/packages/ti/platform"'
The makefile for building the norwriter is in the directory "tools/writer/nor/evmc66xxl"
Following are the steps to build norwriter, e.g.:
index 60c2a771049595d25c5cacc9ba33eff82cea5bdf..ba440bd021f4e95ecb0aa67f9a651093d552bcc4 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6670:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <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"/>
+ <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.1" valueType="string"/>
<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"/>
<builder buildPath="${workspace_loc:/norwriter/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"/>
<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">
index 79d311664dd4da0359d0ad262cc65c49bc32ac78..5cecea3c8d81e7d015409eb2000234966f256097 100644 (file)
<projectOptions>
<deviceVariant value="com.ti.ccstudio.deviceModel.C6000.CustomC6000Device"/>
<deviceEndianness value="little"/>
-<codegenToolVersion value="7.2.0"/>
+<codegenToolVersion value="7.2.1"/>
<isElfFormat value="true"/>
<rts value="rts6600_elf.lib"/>
</projectOptions>
index 921842a2282e957b91f5e417555f3cff98350686..a8e48a8a23ba710bc4985f5dcd477883e54a1be0 100644 (file)
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.0.1"/>
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts6600_elf.lib"/>
<listOptionValue builtIn="false" value="XDC_VERSION=3.20.08.88"/>
- <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.10;"/>
+ <listOptionValue builtIn="false" value="RTSC_PRODUCTS=com.ti.biosmcsdk.pdk.C6678L:1.0.0.11;"/>
<listOptionValue builtIn="false" value="OUTPUT_TYPE=rtscApplication:executable"/>
</option>
- <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"/>
+ <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.1" valueType="string"/>
<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"/>
<builder buildPath="${workspace_loc:/norwriter/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"/>
<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">
index 3fcbcb04a81ca15329ed3da6905e5fb6f6148a18..6fc66481c44deaac1575e0a82a2559181ef3ad44 100644 (file)
#ifndef _TYPES_H
#define _TYPES_H
+typedef uint32_t Bool;
+
#define FALSE 0
#define TRUE 1
index c8847eef1bdb162e8b537a47bd6ded23d79e399d..485453fd1bd34fe9ef90bc3012a73a2c558cc8fe 100644 (file)
#include <string.h>
#include "platform.h"
#include "types.h"
-#include "ti/csl/csl_semAux.h"
/* NOR writer utility version */
char version[] = "01.00.00.02";
void Osal_platformSpiCsEnter(void)
{
- /* Get the hardware semaphore.
- *
- * Acquire Multi core CPPI synchronization lock
- */
- while ((CSL_semAcquireDirect (3)) == 0);
-
return;
}
void Osal_platformSpiCsExit (void)
{
- /* Release the hardware semaphore
- *
- * Release multi-core lock.
- */
- CSL_semReleaseSemaphore (3);
-
return;
}