diff options
author | Jason Reeder | 2015-10-14 16:37:36 -0500 |
---|---|---|
committer | Jason Reeder | 2015-10-14 16:37:36 -0500 |
commit | 8b3a29a060101afbe3012a883c65e5ca243cdce1 (patch) | |
tree | fcc9633cc23c5b9102c2704122b48752eb74c251 /examples | |
parent | d7e268187e64430f931f12478d15378848cf33e7 (diff) | |
download | pru-software-support-package-8b3a29a060101afbe3012a883c65e5ca243cdce1.tar.gz pru-software-support-package-8b3a29a060101afbe3012a883c65e5ca243cdce1.tar.xz pru-software-support-package-8b3a29a060101afbe3012a883c65e5ca243cdce1.zip |
Removing AM571x examples from this release
There is currently no AM571x board available so these
examples will be removed for now. Once a board becomes
available they will be replaced.
Signed-off-by: Jason Reeder <jreeder@ti.com>
Diffstat (limited to 'examples')
101 files changed, 1 insertions, 6999 deletions
diff --git a/examples/Makefile b/examples/Makefile index 0e53f52..bdf8b81 100644 --- a/examples/Makefile +++ b/examples/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | SUBDIRS=am335x am437x am571x am572x | 1 | SUBDIRS=am335x am437x am572x |
2 | 2 | ||
3 | all: $(SUBDIRS) | 3 | all: $(SUBDIRS) |
4 | 4 | ||
diff --git a/examples/am571x/Makefile b/examples/am571x/Makefile deleted file mode 100644 index 7dc41e0..0000000 --- a/examples/am571x/Makefile +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | SUBDIRS=PRU_RPMsg_Echo_Interrupt1_0 PRU_RPMsg_Echo_Interrupt1_1 PRU_RPMsg_Echo_Polling1_0 \ | ||
2 | PRU_RPMsg_Echo_Polling1_1 PRU_RPMsg_Echo_Interrupt2_0 PRU_RPMsg_Echo_Interrupt2_1 \ | ||
3 | PRU_RPMsg_Echo_Polling2_0 PRU_RPMsg_Echo_Polling2_1 PRU_Direct_Connect0 PRU_Direct_Connect1 \ | ||
4 | PRU_MAC_Multiply_Accum | ||
5 | |||
6 | all: $(SUBDIRS) | ||
7 | |||
8 | $(SUBDIRS): | ||
9 | @$(MAKE) -C $@ | ||
10 | |||
11 | clean: | ||
12 | @for d in $(SUBDIRS); do (cd $$d; $(MAKE) clean ); done | ||
13 | |||
14 | .PHONY: all clean $(SUBDIRS) | ||
15 | |||
16 | |||
17 | |||
diff --git a/examples/am571x/PRU_Direct_Connect0/.ccsproject b/examples/am571x/PRU_Direct_Connect0/.ccsproject deleted file mode 100755 index abec231..0000000 --- a/examples/am571x/PRU_Direct_Connect0/.ccsproject +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" ?> | ||
2 | <?ccsproject version="1.0"?> | ||
3 | <projectOptions> | ||
4 | <deviceVariant value="TMS192C2026.AM3359.BeagleBone_Black"/> | ||
5 | <deviceFamily value="PRU"/> | ||
6 | <deviceEndianness value="little"/> | ||
7 | <codegenToolVersion value="2.0.0.B2"/> | ||
8 | <isElfFormat value="true"/> | ||
9 | <rts value="libc.a"/> | ||
10 | <createSlaveProjects value=""/> | ||
11 | <templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/> | ||
12 | <isTargetManual value="false"/> | ||
13 | </projectOptions> | ||
diff --git a/examples/am571x/PRU_Direct_Connect0/.cproject b/examples/am571x/PRU_Direct_Connect0/.cproject deleted file mode 100755 index 61dce49..0000000 --- a/examples/am571x/PRU_Direct_Connect0/.cproject +++ /dev/null | |||
@@ -1,184 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
3 | <storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings"> | ||
4 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Debug.2116598492"> | ||
5 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.2116598492" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
6 | <externalSettings/> | ||
7 | <extensions> | ||
8 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
9 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
10 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
11 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
12 | </extensions> | ||
13 | </storageModule> | ||
14 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
15 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.2116598492" name="Debug" parent="com.ti.ccstudio.buildDefinitions.PRU.Debug" postbuildStep="" prebuildStep=""> | ||
16 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Debug.2116598492." name="/" resourcePath=""> | ||
17 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain.2030176054" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.1330104537"> | ||
18 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1818637989" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
19 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
20 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
21 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
22 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
23 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
24 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
25 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
26 | </option> | ||
27 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.471102163" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
28 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug.603417921" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug"/> | ||
29 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug.136863108" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug"/> | ||
30 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug.1426601470" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug"> | ||
31 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.476269688" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
32 | <listOptionValue builtIn="false" value="pru0"/> | ||
33 | <listOptionValue builtIn="false" value="am5718"/> | ||
34 | <listOptionValue builtIn="false" value="icss1"/> | ||
35 | </option> | ||
36 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.814535357" name="Silicon version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
37 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.338259708" name="Enables use of the hardware MAC available on some PRU cores (--hardware_mac)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
38 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.1185019686" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
39 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
40 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
41 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
42 | </option> | ||
43 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.1829172266" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/> | ||
44 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.1041503824" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
45 | <listOptionValue builtIn="false" value="225"/> | ||
46 | </option> | ||
47 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.1511805033" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
48 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.1177605149" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
49 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.104786861" name="Specify the endianness of both code and data [See 'General' page to edit] (--endian)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
50 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.1202157071" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
51 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.1274072386" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
52 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.2055830222" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
53 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.345672308" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
54 | </tool> | ||
55 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.1330104537" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug"> | ||
56 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.1173849868" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
57 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.1800054340" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
58 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.1229423167" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
59 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.2021663455" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
60 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.1868587603" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
61 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
62 | </option> | ||
63 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.552415741" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
64 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
65 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
66 | </option> | ||
67 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.190794646" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
68 | <listOptionValue builtIn="false" value="PRU_CORE=1"/> | ||
69 | </option> | ||
70 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.1013564679" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
71 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.1422866296" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
72 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.819506738" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
73 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.1955480542" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
74 | </tool> | ||
75 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.694378991" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"> | ||
76 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.OUTPUT_FILE.378383349" name="Specify output file names (--outfile, -o)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.OUTPUT_FILE" value=""${BuildArtifactFileBaseName}.hex"" valueType="string"/> | ||
77 | </tool> | ||
78 | </toolChain> | ||
79 | </folderInfo> | ||
80 | <sourceEntries> | ||
81 | <entry excluding="AM335x_PRU.cmd|AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
82 | </sourceEntries> | ||
83 | </configuration> | ||
84 | </storageModule> | ||
85 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
86 | </cconfiguration> | ||
87 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Release.1986182789"> | ||
88 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1986182789" moduleId="org.eclipse.cdt.core.settings" name="Release"> | ||
89 | <externalSettings/> | ||
90 | <extensions> | ||
91 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
92 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
93 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
94 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
95 | </extensions> | ||
96 | </storageModule> | ||
97 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
98 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1986182789" name="Release" parent="com.ti.ccstudio.buildDefinitions.PRU.Release" postbuildStep="" prebuildStep=""> | ||
99 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Release.1986182789." name="/" resourcePath=""> | ||
100 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain.1828125123" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.2041651559"> | ||
101 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1616174535" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
102 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
103 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
104 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
105 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
106 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
107 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
108 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
109 | </option> | ||
110 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1536049810" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
111 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease.255941424" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease"/> | ||
112 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease.1459524322" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease"/> | ||
113 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease.874222905" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease"> | ||
114 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.673519629" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
115 | <listOptionValue builtIn="false" value="pru0"/> | ||
116 | <listOptionValue builtIn="false" value="am5718"/> | ||
117 | <listOptionValue builtIn="false" value="icss1"/> | ||
118 | </option> | ||
119 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.2125588704" name="Silicon version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
120 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.2130534982" name="Enables use of the hardware MAC available on some PRU cores (--hardware_mac)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
121 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.1025118867" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
122 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
123 | <listOptionValue builtIn="false" value="../../../../include"/> | ||
124 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
125 | </option> | ||
126 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.1742227373" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
127 | <listOptionValue builtIn="false" value="225"/> | ||
128 | </option> | ||
129 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.1731329648" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
130 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.57405056" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
131 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.374543354" name="Specify the endianness of both code and data [See 'General' page to edit] (--endian)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
132 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.1251565744" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
133 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.274361350" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
134 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.1228154892" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
135 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.158616416" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
136 | </tool> | ||
137 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.2041651559" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease"> | ||
138 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.700696559" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
139 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.1144386723" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
140 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.1350199974" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
141 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.2017992595" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
142 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.800330438" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
143 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
144 | </option> | ||
145 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.333854842" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
146 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
147 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
148 | </option> | ||
149 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.935398082" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
150 | <listOptionValue builtIn="false" value="PRU_CORE=1"/> | ||
151 | </option> | ||
152 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.404837931" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
153 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.1292944612" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
154 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.1771432121" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
155 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.1089690736" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
156 | </tool> | ||
157 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.515128009" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"> | ||
158 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.OUTPUT_FILE.942972274" name="Specify output file names (--outfile, -o)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.OUTPUT_FILE" value=""${BuildArtifactFileBaseName}.hex"" valueType="string"/> | ||
159 | </tool> | ||
160 | </toolChain> | ||
161 | </folderInfo> | ||
162 | <sourceEntries> | ||
163 | <entry excluding="AM335x_PRU.cmd|AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
164 | </sourceEntries> | ||
165 | </configuration> | ||
166 | </storageModule> | ||
167 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
168 | </cconfiguration> | ||
169 | </storageModule> | ||
170 | <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> | ||
171 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
172 | <project id="PRU_Direct_Connect0.com.ti.ccstudio.buildDefinitions.PRU.ProjectType.951448892" name="PRU" projectType="com.ti.ccstudio.buildDefinitions.PRU.ProjectType"/> | ||
173 | </storageModule> | ||
174 | <storageModule moduleId="scannerConfiguration"/> | ||
175 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"> | ||
176 | <project-mappings> | ||
177 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/> | ||
178 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
179 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
180 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
181 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
182 | </project-mappings> | ||
183 | </storageModule> | ||
184 | </cproject> | ||
diff --git a/examples/am571x/PRU_Direct_Connect0/.project b/examples/am571x/PRU_Direct_Connect0/.project deleted file mode 100755 index e0f340f..0000000 --- a/examples/am571x/PRU_Direct_Connect0/.project +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>PRU_Direct_Connect0</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <arguments> | ||
11 | </arguments> | ||
12 | </buildCommand> | ||
13 | <buildCommand> | ||
14 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
15 | <triggers>full,incremental,</triggers> | ||
16 | <arguments> | ||
17 | </arguments> | ||
18 | </buildCommand> | ||
19 | </buildSpec> | ||
20 | <natures> | ||
21 | <nature>com.ti.ccstudio.core.ccsNature</nature> | ||
22 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
23 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
24 | <nature>org.eclipse.cdt.core.ccnature</nature> | ||
25 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
26 | </natures> | ||
27 | </projectDescription> | ||
diff --git a/examples/am571x/PRU_Direct_Connect0/.settings/org.eclipse.cdt.codan.core.prefs b/examples/am571x/PRU_Direct_Connect0/.settings/org.eclipse.cdt.codan.core.prefs deleted file mode 100755 index f653028..0000000 --- a/examples/am571x/PRU_Direct_Connect0/.settings/org.eclipse.cdt.codan.core.prefs +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | inEditor=false | ||
3 | onBuild=false | ||
diff --git a/examples/am571x/PRU_Direct_Connect0/.settings/org.eclipse.cdt.debug.core.prefs b/examples/am571x/PRU_Direct_Connect0/.settings/org.eclipse.cdt.debug.core.prefs deleted file mode 100755 index 2adc7b1..0000000 --- a/examples/am571x/PRU_Direct_Connect0/.settings/org.eclipse.cdt.debug.core.prefs +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | org.eclipse.cdt.debug.core.toggleBreakpointModel=com.ti.ccstudio.debug.CCSBreakpointMarker | ||
diff --git a/examples/am571x/PRU_Direct_Connect0/AM57xx_PRU.cmd b/examples/am571x/PRU_Direct_Connect0/AM57xx_PRU.cmd deleted file mode 100755 index f15f640..0000000 --- a/examples/am571x/PRU_Direct_Connect0/AM57xx_PRU.cmd +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | /****************************************************************************/ | ||
2 | /* AM57xx_PRU.cmd */ | ||
3 | /* Copyright (c) 2015 Texas Instruments Incorporated */ | ||
4 | /* */ | ||
5 | /* Description: This file is a linker command file that can be used for */ | ||
6 | /* linking PRU programs built with the C compiler and */ | ||
7 | /* the resulting .out file on an AM57xx device. */ | ||
8 | /****************************************************************************/ | ||
9 | |||
10 | -cr /* Link using C conventions */ | ||
11 | |||
12 | /* Specify the System Memory Map */ | ||
13 | MEMORY | ||
14 | { | ||
15 | PAGE 0: | ||
16 | PRU_IMEM : org = 0x00000000 len = 0x00003000 /* 12kB PRU-ICSS1 Instruction RAM */ | ||
17 | |||
18 | PAGE 1: | ||
19 | |||
20 | /* RAM */ | ||
21 | |||
22 | PRU_DMEM_0_1 : org = 0x00000000 len = 0x00002000 CREGISTER=24 /* 8kB PRU Data RAM 0_1 */ | ||
23 | PRU_DMEM_1_0 : org = 0x00002000 len = 0x00002000 CREGISTER=25 /* 8kB PRU Data RAM 1_0 */ | ||
24 | PRU_SHAREDMEM : org = 0x00010000 len = 0x00008000 CREGISTER=28 /* 32kB Shared RAM */ | ||
25 | |||
26 | DDR : org = 0x80000000 len = 0x00000100 CREGISTER=31 | ||
27 | L3OCMC : org = 0x40000000 len = 0x00010000 CREGISTER=30 | ||
28 | |||
29 | |||
30 | /* Peripherals */ | ||
31 | |||
32 | PRU_CFG : org = 0x00026000 len = 0x00000120 CREGISTER=4 | ||
33 | PRU_ECAP : org = 0x00030000 len = 0x00000060 CREGISTER=3 | ||
34 | PRU_IEP : org = 0x0002E000 len = 0x0000031C CREGISTER=26 | ||
35 | PRU_INTC : org = 0x00020000 len = 0x00001504 CREGISTER=0 | ||
36 | PRU_UART : org = 0x00028000 len = 0x00000038 CREGISTER=7 | ||
37 | |||
38 | MCASP3_DMA : org = 0x46000000 len = 0x00000100 CREGISTER=8 | ||
39 | I2C3 : org = 0x48060000 len = 0x00000300 CREGISTER=5 | ||
40 | |||
41 | RSVD1 : org = 0x48040000 len = 0x0000005C CREGISTER=1 | ||
42 | RSVD2 : org = 0x4802A000 len = 0x000000D8 CREGISTER=2 | ||
43 | RSVD6 : org = 0x48030000 len = 0x000001A4 CREGISTER=6 | ||
44 | RSVD9 : org = 0x4A100000 len = 0x0000128C CREGISTER=9 | ||
45 | RSVD10 : org = 0x48318000 len = 0x00000100 CREGISTER=10 | ||
46 | RSVD11 : org = 0x48022000 len = 0x00000088 CREGISTER=11 | ||
47 | RSVD12 : org = 0x48024000 len = 0x00000088 CREGISTER=12 | ||
48 | RSVD13 : org = 0x48310000 len = 0x00000100 CREGISTER=13 | ||
49 | RSVD14 : org = 0x481CC000 len = 0x000001E8 CREGISTER=14 | ||
50 | RSVD15 : org = 0x481D0000 len = 0x000001E8 CREGISTER=15 | ||
51 | RSVD16 : org = 0x481A0000 len = 0x000001A4 CREGISTER=16 | ||
52 | RSVD17 : org = 0x4819C000 len = 0x000000D8 CREGISTER=17 | ||
53 | RSVD18 : org = 0x48300000 len = 0x000002C4 CREGISTER=18 | ||
54 | RSVD19 : org = 0x48302000 len = 0x000002C4 CREGISTER=19 | ||
55 | RSVD20 : org = 0x48304000 len = 0x000002C4 CREGISTER=20 | ||
56 | RSVD21 : org = 0x00032400 len = 0x00000100 CREGISTER=21 | ||
57 | RSVD22 : org = 0x480C8000 len = 0x00000140 CREGISTER=22 | ||
58 | RSVD23 : org = 0x480CA000 len = 0x00000880 CREGISTER=23 | ||
59 | RSVD27 : org = 0x00032000 len = 0x00000100 CREGISTER=27 | ||
60 | RSVD29 : org = 0x49000000 len = 0x00001098 CREGISTER=29 | ||
61 | } | ||
62 | |||
63 | /* Specify the sections allocation into memory */ | ||
64 | SECTIONS { | ||
65 | /* Forces _c_int00 to the start of PRU IRAM. Not necessary when loading | ||
66 | an ELF file, but useful when loading a binary */ | ||
67 | .text:_c_int00* > 0x0, PAGE 0 | ||
68 | |||
69 | .text > PRU_IMEM, PAGE 0 | ||
70 | .stack > PRU_DMEM_0_1, PAGE 1 | ||
71 | .bss > PRU_DMEM_0_1, PAGE 1 | ||
72 | .cio > PRU_DMEM_0_1, PAGE 1 | ||
73 | .data > PRU_DMEM_0_1, PAGE 1 | ||
74 | .switch > PRU_DMEM_0_1, PAGE 1 | ||
75 | .sysmem > PRU_DMEM_0_1, PAGE 1 | ||
76 | .cinit > PRU_DMEM_0_1, PAGE 1 | ||
77 | .rodata > PRU_DMEM_0_1, PAGE 1 | ||
78 | .rofardata > PRU_DMEM_0_1, PAGE 1 | ||
79 | .farbss > PRU_DMEM_0_1, PAGE 1 | ||
80 | .fardata > PRU_DMEM_0_1, PAGE 1 | ||
81 | |||
82 | .resource_table > PRU_DMEM_0_1, PAGE 1 | ||
83 | } | ||
diff --git a/examples/am571x/PRU_Direct_Connect0/Makefile b/examples/am571x/PRU_Direct_Connect0/Makefile deleted file mode 100644 index 15a5222..0000000 --- a/examples/am571x/PRU_Direct_Connect0/Makefile +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | # PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: | ||
2 | #(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
3 | #(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
4 | ifndef PRU_CGT | ||
5 | define ERROR_BODY | ||
6 | |||
7 | ************************************************************ | ||
8 | PRU_CGT environment variable is not set. Examples given: | ||
9 | (Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
10 | (Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
11 | ************************************************************ | ||
12 | |||
13 | endef | ||
14 | $(error $(ERROR_BODY)) | ||
15 | endif | ||
16 | |||
17 | MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
18 | CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH)))) | ||
19 | PROJ_NAME=$(CURRENT_DIR) | ||
20 | LINKER_COMMAND_FILE=./AM57xx_PRU.cmd | ||
21 | LIBS=--library=../../../lib/rpmsg_lib.lib | ||
22 | INCLUDE=--include_path=../../../include --include_path=../../../include/am571x | ||
23 | STACK_SIZE=0x100 | ||
24 | HEAP_SIZE=0x100 | ||
25 | GEN_DIR=gen | ||
26 | |||
27 | #Common compiler and linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
28 | CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_directory=$(GEN_DIR) --pp_directory=$(GEN_DIR) -ppd -ppa | ||
29 | #Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
30 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | ||
31 | |||
32 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | ||
33 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | ||
34 | SOURCES=$(wildcard *.c) | ||
35 | #Using .object instead of .obj in order to not conflict with the CCS build process | ||
36 | OBJECTS=$(patsubst %,$(GEN_DIR)/%,$(SOURCES:.c=.object)) | ||
37 | |||
38 | all: printStart $(TARGET) printEnd | ||
39 | |||
40 | printStart: | ||
41 | @echo '' | ||
42 | @echo '************************************************************' | ||
43 | @echo 'Building project: $(PROJ_NAME)' | ||
44 | |||
45 | printEnd: | ||
46 | @echo '' | ||
47 | @echo 'Finished building project: $(PROJ_NAME)' | ||
48 | @echo '************************************************************' | ||
49 | @echo '' | ||
50 | |||
51 | # Invokes the linker (-z flag) to make the .out file | ||
52 | $(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) | ||
53 | @echo '' | ||
54 | @echo 'Building target: $@' | ||
55 | @echo 'Invoking: PRU Linker' | ||
56 | $(PRU_CGT)/bin/clpru $(CFLAGS) -z -i$(PRU_CGT)/lib -i$(PRU_CGT)/include $(LFLAGS) -o $(TARGET) $(OBJECTS) -m$(MAP) $(LINKER_COMMAND_FILE) --library=libc.a $(LIBS) | ||
57 | @echo 'Finished building target: $@' | ||
58 | @echo '' | ||
59 | @echo 'Output files can be found in the "$(GEN_DIR)" directory' | ||
60 | |||
61 | # Invokes the compiler on all c files in the directory to create the object files | ||
62 | $(GEN_DIR)/%.object: %.c | ||
63 | @mkdir -p $(GEN_DIR) | ||
64 | @echo '' | ||
65 | @echo 'Building file: $<' | ||
66 | @echo 'Invoking: PRU Compiler' | ||
67 | $(PRU_CGT)/bin/clpru --include_path=$(PRU_CGT)/include $(INCLUDE) $(CFLAGS) -fe $@ $< | ||
68 | |||
69 | .PHONY: all clean | ||
70 | |||
71 | # Remove the $(GEN_DIR) directory | ||
72 | clean: | ||
73 | @echo '' | ||
74 | @echo '************************************************************' | ||
75 | @echo 'Cleaning project: $(PROJ_NAME)' | ||
76 | @echo '' | ||
77 | @echo 'Removing files in the "$(GEN_DIR)" directory' | ||
78 | @rm -rf $(GEN_DIR) | ||
79 | @echo '' | ||
80 | @echo 'Finished cleaning project: $(PROJ_NAME)' | ||
81 | @echo '************************************************************' | ||
82 | @echo '' | ||
83 | |||
84 | # Includes the dependencies that the compiler creates (-ppd and -ppa flags) | ||
85 | -include $(OBJECTS:%.object=%.pp) | ||
86 | |||
diff --git a/examples/am571x/PRU_Direct_Connect0/PRU0_Direct_Connect.c b/examples/am571x/PRU_Direct_Connect0/PRU0_Direct_Connect.c deleted file mode 100755 index a18c1a6..0000000 --- a/examples/am571x/PRU_Direct_Connect0/PRU0_Direct_Connect.c +++ /dev/null | |||
@@ -1,91 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | #include <stdint.h> | ||
35 | #include <pru_intc.h> | ||
36 | #include "rsc_table_pru0.h" | ||
37 | |||
38 | #define PRU0 | ||
39 | |||
40 | volatile register uint32_t __R30; | ||
41 | volatile register uint32_t __R31; | ||
42 | |||
43 | typedef struct{ | ||
44 | uint32_t reg5; | ||
45 | uint32_t reg6; | ||
46 | uint32_t reg7; | ||
47 | uint32_t reg8; | ||
48 | uint32_t reg9; | ||
49 | uint32_t reg10; | ||
50 | } bufferData; | ||
51 | |||
52 | bufferData dmemBuf; | ||
53 | |||
54 | /* PRU-to-ARM interrupt */ | ||
55 | #define PRU1_PRU0_INTERRUPT (18) | ||
56 | #define PRU0_ARM_INTERRUPT (19+16) | ||
57 | |||
58 | void main(){ | ||
59 | bufferData buf; | ||
60 | |||
61 | /* Clear the status of all interrupts */ | ||
62 | CT_INTC.SECR0 = 0xFFFFFFFF; | ||
63 | CT_INTC.SECR1 = 0xFFFFFFFF; | ||
64 | |||
65 | /* Load the buffer with default values to transfer */ | ||
66 | dmemBuf.reg5 = 0xDEADBEEF; | ||
67 | dmemBuf.reg6 = 0xAAAAAAAA; | ||
68 | dmemBuf.reg7 = 0x12345678; | ||
69 | dmemBuf.reg8 = 0xBBBBBBBB; | ||
70 | dmemBuf.reg9 = 0x87654321; | ||
71 | dmemBuf.reg10 = 0xCCCCCCCC; | ||
72 | |||
73 | /* Load data from DRAM */ | ||
74 | buf = dmemBuf; | ||
75 | |||
76 | /* Poll until R31.30 (PRU0 interrupt) is set | ||
77 | * This signals PRU1 is initialized */ | ||
78 | while((__R31 & (1<<30)) == 0){ | ||
79 | } | ||
80 | |||
81 | /* XFR registers R5-R10 from PRU0 to PRU1 */ | ||
82 | /* 14 is the device_id that signifies a PRU to PRU transfer */ | ||
83 | __xout(14, 5, 0, buf); | ||
84 | |||
85 | /* Clear the status of the interrupt */ | ||
86 | CT_INTC.SICR = PRU1_PRU0_INTERRUPT; | ||
87 | |||
88 | /* Halt the PRU core */ | ||
89 | __halt(); | ||
90 | } | ||
91 | |||
diff --git a/examples/am571x/PRU_Direct_Connect0/rsc_table_pru0.h b/examples/am571x/PRU_Direct_Connect0/rsc_table_pru0.h deleted file mode 100755 index ff1c83c..0000000 --- a/examples/am571x/PRU_Direct_Connect0/rsc_table_pru0.h +++ /dev/null | |||
@@ -1,105 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | /* | ||
35 | * ======== rsc_table_pru.h ======== | ||
36 | * | ||
37 | * Define the resource table entries for PRU0. This will be | ||
38 | * incorporated into corresponding base images, and used by the remoteproc | ||
39 | * on the host-side to allocated/reserve resources. Note the remoteproc | ||
40 | * driver requires that all PRU firmware be built with a resource table. | ||
41 | * | ||
42 | * | ||
43 | */ | ||
44 | |||
45 | #ifndef _RSC_TABLE_PRU_H_ | ||
46 | #define _RSC_TABLE_PRU_H_ | ||
47 | |||
48 | #include <stddef.h> | ||
49 | #include <rsc_types.h> | ||
50 | #include "pru_virtio_ids.h" | ||
51 | |||
52 | /* | ||
53 | * Sizes of the virtqueues (expressed in number of buffers supported, | ||
54 | * and must be power of 2) | ||
55 | */ | ||
56 | #define PRU_RPMSG_VQ0_SIZE 2 | ||
57 | #define PRU_RPMSG_VQ1_SIZE 2 | ||
58 | |||
59 | /* flip up bits whose indices represent features we support */ | ||
60 | #define RPMSG_PRU_C0_FEATURES 1 | ||
61 | |||
62 | /* Definition for unused interrupts */ | ||
63 | #define HOST_UNUSED 255 | ||
64 | |||
65 | /* Mapping sysevts to a channel. Each pair contains a sysevt, channel */ | ||
66 | struct ch_map pru_intc_map[] = { {17, 1}, {18, 0}, {19, 2}, {20, 3}, {21, 0}, | ||
67 | {22, 1}, {24, 4}, {25, 5}, {26, 6}, {27, 7}, | ||
68 | }; | ||
69 | |||
70 | struct my_resource_table { | ||
71 | struct resource_table base; | ||
72 | |||
73 | uint32_t offset[1]; /* Should match 'num' in actual definition */ | ||
74 | |||
75 | /* intc definition */ | ||
76 | struct fw_rsc_custom pru_ints; | ||
77 | }; | ||
78 | |||
79 | #pragma DATA_SECTION(am335x_pru_remoteproc_ResourceTable, ".resource_table") | ||
80 | #pragma RETAIN(am335x_pru_remoteproc_ResourceTable) | ||
81 | struct my_resource_table am335x_pru_remoteproc_ResourceTable = { | ||
82 | 1, /* we're the first version that implements this */ | ||
83 | 1, /* number of entries in the table */ | ||
84 | 0, 0, /* reserved, must be zero */ | ||
85 | /* offsets to entries */ | ||
86 | { | ||
87 | offsetof(struct my_resource_table, pru_ints), | ||
88 | }, | ||
89 | |||
90 | { | ||
91 | TYPE_CUSTOM, TYPE_PRU_INTS, | ||
92 | sizeof(struct fw_rsc_custom_ints), | ||
93 | { /* PRU_INTS version */ | ||
94 | 0x0000, | ||
95 | /* Channel-to-host mapping, 255 for unused */ | ||
96 | 0, 1, 2, 3, 0, 6, 1, 7, HOST_UNUSED, HOST_UNUSED, | ||
97 | /* Number of evts being mapped to channels */ | ||
98 | (sizeof(pru_intc_map) / sizeof(struct ch_map)), | ||
99 | /* Pointer to the structure containing mapped events */ | ||
100 | pru_intc_map, | ||
101 | }, | ||
102 | }, | ||
103 | }; | ||
104 | |||
105 | #endif /* _RSC_TABLE_PRU_H_ */ | ||
diff --git a/examples/am571x/PRU_Direct_Connect1/.ccsproject b/examples/am571x/PRU_Direct_Connect1/.ccsproject deleted file mode 100755 index b139a0a..0000000 --- a/examples/am571x/PRU_Direct_Connect1/.ccsproject +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" ?> | ||
2 | <?ccsproject version="1.0"?> | ||
3 | <projectOptions> | ||
4 | <deviceVariant value="TMS192C2026.AM3359.BeagleBone_Black"/> | ||
5 | <deviceFamily value="PRU"/> | ||
6 | <deviceEndianness value="little"/> | ||
7 | <codegenToolVersion value="2.0.0.B2"/> | ||
8 | <isElfFormat value="true"/> | ||
9 | <rts value="libc.a"/> | ||
10 | <createSlaveProjects value=""/> | ||
11 | <templateProperties value="id=com.ti.common.project.core.emptyProjectWithMainTemplate,"/> | ||
12 | <isTargetManual value="false"/> | ||
13 | </projectOptions> | ||
diff --git a/examples/am571x/PRU_Direct_Connect1/.cproject b/examples/am571x/PRU_Direct_Connect1/.cproject deleted file mode 100755 index 13f9289..0000000 --- a/examples/am571x/PRU_Direct_Connect1/.cproject +++ /dev/null | |||
@@ -1,184 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
3 | <storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings"> | ||
4 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Debug.1466620349"> | ||
5 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.1466620349" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
6 | <externalSettings/> | ||
7 | <extensions> | ||
8 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
9 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
10 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
11 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
12 | </extensions> | ||
13 | </storageModule> | ||
14 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
15 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.1466620349" name="Debug" parent="com.ti.ccstudio.buildDefinitions.PRU.Debug" postbuildStep="" prebuildStep=""> | ||
16 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Debug.1466620349." name="/" resourcePath=""> | ||
17 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain.2126691689" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.2135008041"> | ||
18 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.666598708" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
19 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
20 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
21 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
22 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
23 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
24 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
25 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
26 | </option> | ||
27 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.725844618" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
28 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug.1212453912" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug"/> | ||
29 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug.1581765932" name="GNU Make.Debug" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug"/> | ||
30 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug.884176230" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug"> | ||
31 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.1739656835" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
32 | <listOptionValue builtIn="false" value="pru0"/> | ||
33 | <listOptionValue builtIn="false" value="am5718"/> | ||
34 | <listOptionValue builtIn="false" value="icss1"/> | ||
35 | </option> | ||
36 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.280136800" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
37 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.1793575224" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
38 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.698326308" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
39 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
40 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
41 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
42 | </option> | ||
43 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.604744469" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/> | ||
44 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.1172720297" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
45 | <listOptionValue builtIn="false" value="225"/> | ||
46 | </option> | ||
47 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.1552408882" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
48 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.292209590" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
49 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.1472054635" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
50 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.2127764168" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
51 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.1409919307" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
52 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.1578092213" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
53 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.1773044395" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
54 | </tool> | ||
55 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.2135008041" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug"> | ||
56 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.1409259818" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
57 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.2026210408" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
58 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.1295107573" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
59 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.1319909431" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
60 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.221098090" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
61 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
62 | </option> | ||
63 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.248582171" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
64 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
65 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
66 | </option> | ||
67 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.2090442696" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
68 | <listOptionValue builtIn="false" value="PRU_CORE=1"/> | ||
69 | </option> | ||
70 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.834587835" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
71 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.1273845845" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
72 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.633854372" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
73 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.960028932" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
74 | </tool> | ||
75 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.1330036226" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"> | ||
76 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.OUTPUT_FILE.1526957347" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.OUTPUT_FILE" value=""${BuildArtifactFileBaseName}.hex"" valueType="string"/> | ||
77 | </tool> | ||
78 | </toolChain> | ||
79 | </folderInfo> | ||
80 | <sourceEntries> | ||
81 | <entry excluding="AM335x_PRU.cmd|AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
82 | </sourceEntries> | ||
83 | </configuration> | ||
84 | </storageModule> | ||
85 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
86 | </cconfiguration> | ||
87 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Release.1199553821"> | ||
88 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1199553821" moduleId="org.eclipse.cdt.core.settings" name="Release"> | ||
89 | <externalSettings/> | ||
90 | <extensions> | ||
91 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
92 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
93 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
94 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
95 | </extensions> | ||
96 | </storageModule> | ||
97 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
98 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1199553821" name="Release" parent="com.ti.ccstudio.buildDefinitions.PRU.Release" postbuildStep="" prebuildStep=""> | ||
99 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Release.1199553821." name="/" resourcePath=""> | ||
100 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain.122301402" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.1772108518"> | ||
101 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1232958345" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
102 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
103 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
104 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
105 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
106 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
107 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
108 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
109 | </option> | ||
110 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.526663938" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
111 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease.1192879296" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease"/> | ||
112 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease.908725148" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease"/> | ||
113 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease.727225735" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease"> | ||
114 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.2108116250" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
115 | <listOptionValue builtIn="false" value="pru0"/> | ||
116 | <listOptionValue builtIn="false" value="am5718"/> | ||
117 | <listOptionValue builtIn="false" value="icss1"/> | ||
118 | </option> | ||
119 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.1265029028" name="Silicon version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
120 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.1533762860" name="Enables use of the hardware MAC available on some PRU cores (--hardware_mac)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
121 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.616298985" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
122 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
123 | <listOptionValue builtIn="false" value="../../../../include"/> | ||
124 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
125 | </option> | ||
126 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.2085903157" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
127 | <listOptionValue builtIn="false" value="225"/> | ||
128 | </option> | ||
129 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.1184549410" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
130 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.2085057956" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
131 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.1681448742" name="Specify the endianness of both code and data [See 'General' page to edit] (--endian)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
132 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.860169538" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
133 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.1304836386" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
134 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.631860419" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
135 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.615108521" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
136 | </tool> | ||
137 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.1772108518" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease"> | ||
138 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.712300417" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
139 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.843858340" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
140 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.375398708" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
141 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.259212541" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
142 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.1080310587" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
143 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
144 | </option> | ||
145 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.2131693307" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
146 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
147 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
148 | </option> | ||
149 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.545089638" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
150 | <listOptionValue builtIn="false" value="PRU_CORE=1"/> | ||
151 | </option> | ||
152 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.1358352916" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
153 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.517977393" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
154 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.958231729" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
155 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.1608835738" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
156 | </tool> | ||
157 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.1556303420" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"> | ||
158 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.OUTPUT_FILE.1979562934" name="Specify output file names (--outfile, -o)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.OUTPUT_FILE" value=""${BuildArtifactFileBaseName}.hex"" valueType="string"/> | ||
159 | </tool> | ||
160 | </toolChain> | ||
161 | </folderInfo> | ||
162 | <sourceEntries> | ||
163 | <entry excluding="AM335x_PRU.cmd|AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
164 | </sourceEntries> | ||
165 | </configuration> | ||
166 | </storageModule> | ||
167 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
168 | </cconfiguration> | ||
169 | </storageModule> | ||
170 | <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> | ||
171 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
172 | <project id="PRU_Direct_Connect1.com.ti.ccstudio.buildDefinitions.PRU.ProjectType.1644590196" name="PRU" projectType="com.ti.ccstudio.buildDefinitions.PRU.ProjectType"/> | ||
173 | </storageModule> | ||
174 | <storageModule moduleId="scannerConfiguration"/> | ||
175 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"> | ||
176 | <project-mappings> | ||
177 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/> | ||
178 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
179 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
180 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
181 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
182 | </project-mappings> | ||
183 | </storageModule> | ||
184 | </cproject> | ||
diff --git a/examples/am571x/PRU_Direct_Connect1/.project b/examples/am571x/PRU_Direct_Connect1/.project deleted file mode 100755 index 646a50f..0000000 --- a/examples/am571x/PRU_Direct_Connect1/.project +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>PRU_Direct_Connect1</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <arguments> | ||
11 | </arguments> | ||
12 | </buildCommand> | ||
13 | <buildCommand> | ||
14 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
15 | <triggers>full,incremental,</triggers> | ||
16 | <arguments> | ||
17 | </arguments> | ||
18 | </buildCommand> | ||
19 | </buildSpec> | ||
20 | <natures> | ||
21 | <nature>com.ti.ccstudio.core.ccsNature</nature> | ||
22 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
23 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
24 | <nature>org.eclipse.cdt.core.ccnature</nature> | ||
25 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
26 | </natures> | ||
27 | </projectDescription> | ||
diff --git a/examples/am571x/PRU_Direct_Connect1/.settings/org.eclipse.cdt.codan.core.prefs b/examples/am571x/PRU_Direct_Connect1/.settings/org.eclipse.cdt.codan.core.prefs deleted file mode 100755 index f653028..0000000 --- a/examples/am571x/PRU_Direct_Connect1/.settings/org.eclipse.cdt.codan.core.prefs +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | inEditor=false | ||
3 | onBuild=false | ||
diff --git a/examples/am571x/PRU_Direct_Connect1/.settings/org.eclipse.cdt.debug.core.prefs b/examples/am571x/PRU_Direct_Connect1/.settings/org.eclipse.cdt.debug.core.prefs deleted file mode 100755 index 2adc7b1..0000000 --- a/examples/am571x/PRU_Direct_Connect1/.settings/org.eclipse.cdt.debug.core.prefs +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | org.eclipse.cdt.debug.core.toggleBreakpointModel=com.ti.ccstudio.debug.CCSBreakpointMarker | ||
diff --git a/examples/am571x/PRU_Direct_Connect1/AM57xx_PRU.cmd b/examples/am571x/PRU_Direct_Connect1/AM57xx_PRU.cmd deleted file mode 100755 index f15f640..0000000 --- a/examples/am571x/PRU_Direct_Connect1/AM57xx_PRU.cmd +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | /****************************************************************************/ | ||
2 | /* AM57xx_PRU.cmd */ | ||
3 | /* Copyright (c) 2015 Texas Instruments Incorporated */ | ||
4 | /* */ | ||
5 | /* Description: This file is a linker command file that can be used for */ | ||
6 | /* linking PRU programs built with the C compiler and */ | ||
7 | /* the resulting .out file on an AM57xx device. */ | ||
8 | /****************************************************************************/ | ||
9 | |||
10 | -cr /* Link using C conventions */ | ||
11 | |||
12 | /* Specify the System Memory Map */ | ||
13 | MEMORY | ||
14 | { | ||
15 | PAGE 0: | ||
16 | PRU_IMEM : org = 0x00000000 len = 0x00003000 /* 12kB PRU-ICSS1 Instruction RAM */ | ||
17 | |||
18 | PAGE 1: | ||
19 | |||
20 | /* RAM */ | ||
21 | |||
22 | PRU_DMEM_0_1 : org = 0x00000000 len = 0x00002000 CREGISTER=24 /* 8kB PRU Data RAM 0_1 */ | ||
23 | PRU_DMEM_1_0 : org = 0x00002000 len = 0x00002000 CREGISTER=25 /* 8kB PRU Data RAM 1_0 */ | ||
24 | PRU_SHAREDMEM : org = 0x00010000 len = 0x00008000 CREGISTER=28 /* 32kB Shared RAM */ | ||
25 | |||
26 | DDR : org = 0x80000000 len = 0x00000100 CREGISTER=31 | ||
27 | L3OCMC : org = 0x40000000 len = 0x00010000 CREGISTER=30 | ||
28 | |||
29 | |||
30 | /* Peripherals */ | ||
31 | |||
32 | PRU_CFG : org = 0x00026000 len = 0x00000120 CREGISTER=4 | ||
33 | PRU_ECAP : org = 0x00030000 len = 0x00000060 CREGISTER=3 | ||
34 | PRU_IEP : org = 0x0002E000 len = 0x0000031C CREGISTER=26 | ||
35 | PRU_INTC : org = 0x00020000 len = 0x00001504 CREGISTER=0 | ||
36 | PRU_UART : org = 0x00028000 len = 0x00000038 CREGISTER=7 | ||
37 | |||
38 | MCASP3_DMA : org = 0x46000000 len = 0x00000100 CREGISTER=8 | ||
39 | I2C3 : org = 0x48060000 len = 0x00000300 CREGISTER=5 | ||
40 | |||
41 | RSVD1 : org = 0x48040000 len = 0x0000005C CREGISTER=1 | ||
42 | RSVD2 : org = 0x4802A000 len = 0x000000D8 CREGISTER=2 | ||
43 | RSVD6 : org = 0x48030000 len = 0x000001A4 CREGISTER=6 | ||
44 | RSVD9 : org = 0x4A100000 len = 0x0000128C CREGISTER=9 | ||
45 | RSVD10 : org = 0x48318000 len = 0x00000100 CREGISTER=10 | ||
46 | RSVD11 : org = 0x48022000 len = 0x00000088 CREGISTER=11 | ||
47 | RSVD12 : org = 0x48024000 len = 0x00000088 CREGISTER=12 | ||
48 | RSVD13 : org = 0x48310000 len = 0x00000100 CREGISTER=13 | ||
49 | RSVD14 : org = 0x481CC000 len = 0x000001E8 CREGISTER=14 | ||
50 | RSVD15 : org = 0x481D0000 len = 0x000001E8 CREGISTER=15 | ||
51 | RSVD16 : org = 0x481A0000 len = 0x000001A4 CREGISTER=16 | ||
52 | RSVD17 : org = 0x4819C000 len = 0x000000D8 CREGISTER=17 | ||
53 | RSVD18 : org = 0x48300000 len = 0x000002C4 CREGISTER=18 | ||
54 | RSVD19 : org = 0x48302000 len = 0x000002C4 CREGISTER=19 | ||
55 | RSVD20 : org = 0x48304000 len = 0x000002C4 CREGISTER=20 | ||
56 | RSVD21 : org = 0x00032400 len = 0x00000100 CREGISTER=21 | ||
57 | RSVD22 : org = 0x480C8000 len = 0x00000140 CREGISTER=22 | ||
58 | RSVD23 : org = 0x480CA000 len = 0x00000880 CREGISTER=23 | ||
59 | RSVD27 : org = 0x00032000 len = 0x00000100 CREGISTER=27 | ||
60 | RSVD29 : org = 0x49000000 len = 0x00001098 CREGISTER=29 | ||
61 | } | ||
62 | |||
63 | /* Specify the sections allocation into memory */ | ||
64 | SECTIONS { | ||
65 | /* Forces _c_int00 to the start of PRU IRAM. Not necessary when loading | ||
66 | an ELF file, but useful when loading a binary */ | ||
67 | .text:_c_int00* > 0x0, PAGE 0 | ||
68 | |||
69 | .text > PRU_IMEM, PAGE 0 | ||
70 | .stack > PRU_DMEM_0_1, PAGE 1 | ||
71 | .bss > PRU_DMEM_0_1, PAGE 1 | ||
72 | .cio > PRU_DMEM_0_1, PAGE 1 | ||
73 | .data > PRU_DMEM_0_1, PAGE 1 | ||
74 | .switch > PRU_DMEM_0_1, PAGE 1 | ||
75 | .sysmem > PRU_DMEM_0_1, PAGE 1 | ||
76 | .cinit > PRU_DMEM_0_1, PAGE 1 | ||
77 | .rodata > PRU_DMEM_0_1, PAGE 1 | ||
78 | .rofardata > PRU_DMEM_0_1, PAGE 1 | ||
79 | .farbss > PRU_DMEM_0_1, PAGE 1 | ||
80 | .fardata > PRU_DMEM_0_1, PAGE 1 | ||
81 | |||
82 | .resource_table > PRU_DMEM_0_1, PAGE 1 | ||
83 | } | ||
diff --git a/examples/am571x/PRU_Direct_Connect1/Makefile b/examples/am571x/PRU_Direct_Connect1/Makefile deleted file mode 100644 index 15a5222..0000000 --- a/examples/am571x/PRU_Direct_Connect1/Makefile +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | # PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: | ||
2 | #(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
3 | #(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
4 | ifndef PRU_CGT | ||
5 | define ERROR_BODY | ||
6 | |||
7 | ************************************************************ | ||
8 | PRU_CGT environment variable is not set. Examples given: | ||
9 | (Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
10 | (Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
11 | ************************************************************ | ||
12 | |||
13 | endef | ||
14 | $(error $(ERROR_BODY)) | ||
15 | endif | ||
16 | |||
17 | MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
18 | CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH)))) | ||
19 | PROJ_NAME=$(CURRENT_DIR) | ||
20 | LINKER_COMMAND_FILE=./AM57xx_PRU.cmd | ||
21 | LIBS=--library=../../../lib/rpmsg_lib.lib | ||
22 | INCLUDE=--include_path=../../../include --include_path=../../../include/am571x | ||
23 | STACK_SIZE=0x100 | ||
24 | HEAP_SIZE=0x100 | ||
25 | GEN_DIR=gen | ||
26 | |||
27 | #Common compiler and linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
28 | CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_directory=$(GEN_DIR) --pp_directory=$(GEN_DIR) -ppd -ppa | ||
29 | #Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
30 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | ||
31 | |||
32 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | ||
33 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | ||
34 | SOURCES=$(wildcard *.c) | ||
35 | #Using .object instead of .obj in order to not conflict with the CCS build process | ||
36 | OBJECTS=$(patsubst %,$(GEN_DIR)/%,$(SOURCES:.c=.object)) | ||
37 | |||
38 | all: printStart $(TARGET) printEnd | ||
39 | |||
40 | printStart: | ||
41 | @echo '' | ||
42 | @echo '************************************************************' | ||
43 | @echo 'Building project: $(PROJ_NAME)' | ||
44 | |||
45 | printEnd: | ||
46 | @echo '' | ||
47 | @echo 'Finished building project: $(PROJ_NAME)' | ||
48 | @echo '************************************************************' | ||
49 | @echo '' | ||
50 | |||
51 | # Invokes the linker (-z flag) to make the .out file | ||
52 | $(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) | ||
53 | @echo '' | ||
54 | @echo 'Building target: $@' | ||
55 | @echo 'Invoking: PRU Linker' | ||
56 | $(PRU_CGT)/bin/clpru $(CFLAGS) -z -i$(PRU_CGT)/lib -i$(PRU_CGT)/include $(LFLAGS) -o $(TARGET) $(OBJECTS) -m$(MAP) $(LINKER_COMMAND_FILE) --library=libc.a $(LIBS) | ||
57 | @echo 'Finished building target: $@' | ||
58 | @echo '' | ||
59 | @echo 'Output files can be found in the "$(GEN_DIR)" directory' | ||
60 | |||
61 | # Invokes the compiler on all c files in the directory to create the object files | ||
62 | $(GEN_DIR)/%.object: %.c | ||
63 | @mkdir -p $(GEN_DIR) | ||
64 | @echo '' | ||
65 | @echo 'Building file: $<' | ||
66 | @echo 'Invoking: PRU Compiler' | ||
67 | $(PRU_CGT)/bin/clpru --include_path=$(PRU_CGT)/include $(INCLUDE) $(CFLAGS) -fe $@ $< | ||
68 | |||
69 | .PHONY: all clean | ||
70 | |||
71 | # Remove the $(GEN_DIR) directory | ||
72 | clean: | ||
73 | @echo '' | ||
74 | @echo '************************************************************' | ||
75 | @echo 'Cleaning project: $(PROJ_NAME)' | ||
76 | @echo '' | ||
77 | @echo 'Removing files in the "$(GEN_DIR)" directory' | ||
78 | @rm -rf $(GEN_DIR) | ||
79 | @echo '' | ||
80 | @echo 'Finished cleaning project: $(PROJ_NAME)' | ||
81 | @echo '************************************************************' | ||
82 | @echo '' | ||
83 | |||
84 | # Includes the dependencies that the compiler creates (-ppd and -ppa flags) | ||
85 | -include $(OBJECTS:%.object=%.pp) | ||
86 | |||
diff --git a/examples/am571x/PRU_Direct_Connect1/PRU1_Direct_Connect.c b/examples/am571x/PRU_Direct_Connect1/PRU1_Direct_Connect.c deleted file mode 100755 index 0c0abf8..0000000 --- a/examples/am571x/PRU_Direct_Connect1/PRU1_Direct_Connect.c +++ /dev/null | |||
@@ -1,74 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | #include <stdint.h> | ||
35 | #include "resource_table_empty.h" | ||
36 | |||
37 | #define PRU1 | ||
38 | |||
39 | volatile register uint32_t __R30; | ||
40 | volatile register uint32_t __R31; | ||
41 | |||
42 | typedef struct{ | ||
43 | uint32_t reg5; | ||
44 | uint32_t reg6; | ||
45 | uint32_t reg7; | ||
46 | uint32_t reg8; | ||
47 | uint32_t reg9; | ||
48 | uint32_t reg10; | ||
49 | } bufferData; | ||
50 | |||
51 | bufferData dmemBuf; | ||
52 | |||
53 | /* PRU-to-ARM interrupt */ | ||
54 | #define PRU1_PRU0_INTERRUPT (18) | ||
55 | #define PRU0_ARM_INTERRUPT (19+16) | ||
56 | #define PRU1_ARM_INTERRUPT (20+16) | ||
57 | |||
58 | void main(){ | ||
59 | bufferData buf; | ||
60 | |||
61 | /* Let PRU0 know that I am awake */ | ||
62 | __R31 = PRU1_PRU0_INTERRUPT+16; | ||
63 | |||
64 | /* XFR registers R5-R10 from PRU0 to PRU1 */ | ||
65 | /* 14 is the device_id that signifies a PRU to PRU transfer */ | ||
66 | __xin(14, 5, 0, buf); | ||
67 | |||
68 | /* Store register values back into DRAM */ | ||
69 | dmemBuf = buf; | ||
70 | |||
71 | /* Halt the PRU core */ | ||
72 | __halt(); | ||
73 | } | ||
74 | |||
diff --git a/examples/am571x/PRU_Direct_Connect1/resource_table_empty.h b/examples/am571x/PRU_Direct_Connect1/resource_table_empty.h deleted file mode 100755 index 4cd3017..0000000 --- a/examples/am571x/PRU_Direct_Connect1/resource_table_empty.h +++ /dev/null | |||
@@ -1,72 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | /* | ||
35 | * ======== resource_table_empty.h ======== | ||
36 | * | ||
37 | * Define the resource table entries for all PRU cores. This will be | ||
38 | * incorporated into corresponding base images, and used by the remoteproc | ||
39 | * on the host-side to allocated/reserve resources. Note the remoteproc | ||
40 | * driver requires that all PRU firmware be built with a resource table. | ||
41 | * | ||
42 | * This file contains an empty resource table. It can be used either as: | ||
43 | * | ||
44 | * 1) A template, or | ||
45 | * 2) As-is if a PRU application does not need to configure PRU_INTC | ||
46 | * or interact with the rpmsg driver | ||
47 | * | ||
48 | */ | ||
49 | |||
50 | #ifndef _RSC_TABLE_PRU_H_ | ||
51 | #define _RSC_TABLE_PRU_H_ | ||
52 | |||
53 | #include <stddef.h> | ||
54 | #include <rsc_types.h> | ||
55 | |||
56 | struct my_resource_table { | ||
57 | struct resource_table base; | ||
58 | |||
59 | uint32_t offset[1]; /* Should match 'num' in actual definition */ | ||
60 | }; | ||
61 | |||
62 | #pragma DATA_SECTION(pru_remoteproc_ResourceTable, ".resource_table") | ||
63 | #pragma RETAIN(pru_remoteproc_ResourceTable) | ||
64 | struct my_resource_table pru_remoteproc_ResourceTable = { | ||
65 | 1, /* we're the first version that implements this */ | ||
66 | 0, /* number of entries in the table */ | ||
67 | 0, 0, /* reserved, must be zero */ | ||
68 | 0, /* offset[0] */ | ||
69 | }; | ||
70 | |||
71 | #endif /* _RSC_TABLE_PRU_H_ */ | ||
72 | |||
diff --git a/examples/am571x/PRU_MAC_Multiply_Accum/.ccsproject b/examples/am571x/PRU_MAC_Multiply_Accum/.ccsproject deleted file mode 100755 index abec231..0000000 --- a/examples/am571x/PRU_MAC_Multiply_Accum/.ccsproject +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" ?> | ||
2 | <?ccsproject version="1.0"?> | ||
3 | <projectOptions> | ||
4 | <deviceVariant value="TMS192C2026.AM3359.BeagleBone_Black"/> | ||
5 | <deviceFamily value="PRU"/> | ||
6 | <deviceEndianness value="little"/> | ||
7 | <codegenToolVersion value="2.0.0.B2"/> | ||
8 | <isElfFormat value="true"/> | ||
9 | <rts value="libc.a"/> | ||
10 | <createSlaveProjects value=""/> | ||
11 | <templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/> | ||
12 | <isTargetManual value="false"/> | ||
13 | </projectOptions> | ||
diff --git a/examples/am571x/PRU_MAC_Multiply_Accum/.cproject b/examples/am571x/PRU_MAC_Multiply_Accum/.cproject deleted file mode 100755 index c2c39af..0000000 --- a/examples/am571x/PRU_MAC_Multiply_Accum/.cproject +++ /dev/null | |||
@@ -1,186 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
3 | <storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings"> | ||
4 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Debug.1447292159"> | ||
5 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.1447292159" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
6 | <externalSettings/> | ||
7 | <extensions> | ||
8 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
9 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
10 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
11 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
12 | </extensions> | ||
13 | </storageModule> | ||
14 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
15 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.1447292159" name="Debug" parent="com.ti.ccstudio.buildDefinitions.PRU.Debug" postbuildStep="" prebuildStep=""> | ||
16 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Debug.1447292159." name="/" resourcePath=""> | ||
17 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain.1814484250" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.1200782286"> | ||
18 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.572644018" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
19 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
20 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
21 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
22 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
23 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
24 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
25 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
26 | </option> | ||
27 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1379350670" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
28 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug.537099942" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug"/> | ||
29 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug.918140724" name="GNU Make.Debug" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug"/> | ||
30 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug.832858042" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug"> | ||
31 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.888547485" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
32 | <listOptionValue builtIn="false" value="pru0"/> | ||
33 | <listOptionValue builtIn="false" value="am5718"/> | ||
34 | <listOptionValue builtIn="false" value="icss1"/> | ||
35 | </option> | ||
36 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.1619165568" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
37 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.1291141475" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
38 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.OPT_LEVEL.355880884" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.OPT_LEVEL" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.OPT_LEVEL.3" valueType="enumerated"/> | ||
39 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.33690965" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
40 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
41 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
42 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
43 | </option> | ||
44 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.1342676638" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/> | ||
45 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.521831703" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
46 | <listOptionValue builtIn="false" value="225"/> | ||
47 | </option> | ||
48 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.903148396" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
49 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.1856878264" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
50 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.121338623" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
51 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.KEEP_ASM.121907418" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.KEEP_ASM" value="true" valueType="boolean"/> | ||
52 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.1847585618" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
53 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.508228757" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
54 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.1897098679" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
55 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.378400733" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
56 | </tool> | ||
57 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.1200782286" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug"> | ||
58 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.869320962" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
59 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.1663653540" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
60 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.1646154467" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
61 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.593686928" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
62 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.1875493360" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
63 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
64 | </option> | ||
65 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.942991930" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
66 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
67 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
68 | </option> | ||
69 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.1753689498" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
70 | <listOptionValue builtIn="false" value="PRU_CORE=1"/> | ||
71 | </option> | ||
72 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.1489666846" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
73 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.905333845" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
74 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.336778574" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
75 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.115192057" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
76 | </tool> | ||
77 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.486316977" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"> | ||
78 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.OUTPUT_FILE.511220196" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.OUTPUT_FILE" value=""${BuildArtifactFileBaseName}.hex"" valueType="string"/> | ||
79 | </tool> | ||
80 | </toolChain> | ||
81 | </folderInfo> | ||
82 | <sourceEntries> | ||
83 | <entry excluding="AM335x_PRU.cmd|AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
84 | </sourceEntries> | ||
85 | </configuration> | ||
86 | </storageModule> | ||
87 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
88 | </cconfiguration> | ||
89 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Release.1305871433"> | ||
90 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1305871433" moduleId="org.eclipse.cdt.core.settings" name="Release"> | ||
91 | <externalSettings/> | ||
92 | <extensions> | ||
93 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
94 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
95 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
96 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
97 | </extensions> | ||
98 | </storageModule> | ||
99 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
100 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1305871433" name="Release" parent="com.ti.ccstudio.buildDefinitions.PRU.Release" postbuildStep="" prebuildStep=""> | ||
101 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Release.1305871433." name="/" resourcePath=""> | ||
102 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain.1734141811" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.226750647"> | ||
103 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1646458263" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
104 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
105 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
106 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
107 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
108 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
109 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
110 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
111 | </option> | ||
112 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.445370189" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
113 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease.2002588957" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease"/> | ||
114 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease.1523357989" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease"/> | ||
115 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease.996675371" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease"> | ||
116 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.1347886953" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
117 | <listOptionValue builtIn="false" value="pru0"/> | ||
118 | <listOptionValue builtIn="false" value="am5718"/> | ||
119 | <listOptionValue builtIn="false" value="icss1"/> | ||
120 | </option> | ||
121 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.104236386" name="Silicon version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
122 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.1463739578" name="Enables use of the hardware MAC available on some PRU cores (--hardware_mac)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
123 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.1345825521" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
124 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
125 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
126 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
127 | </option> | ||
128 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.1081023021" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
129 | <listOptionValue builtIn="false" value="225"/> | ||
130 | </option> | ||
131 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.712736467" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
132 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.538146124" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
133 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.1833581307" name="Specify the endianness of both code and data [See 'General' page to edit] (--endian)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
134 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.758606916" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
135 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.950560757" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
136 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.1587658104" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
137 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.1176028242" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
138 | </tool> | ||
139 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.226750647" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease"> | ||
140 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.1316690300" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
141 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.2109061593" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
142 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.129351790" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
143 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.2004324166" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
144 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.670733166" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
145 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
146 | </option> | ||
147 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.581281003" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
148 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
149 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
150 | </option> | ||
151 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.716770427" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
152 | <listOptionValue builtIn="false" value="PRU_CORE=1"/> | ||
153 | </option> | ||
154 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.779772030" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
155 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.642395804" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
156 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.1562777135" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
157 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.2075762892" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
158 | </tool> | ||
159 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.1990579406" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"> | ||
160 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.OUTPUT_FILE.781110986" name="Specify output file names (--outfile, -o)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.OUTPUT_FILE" value=""${BuildArtifactFileBaseName}.hex"" valueType="string"/> | ||
161 | </tool> | ||
162 | </toolChain> | ||
163 | </folderInfo> | ||
164 | <sourceEntries> | ||
165 | <entry excluding="AM335x_PRU.cmd|AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
166 | </sourceEntries> | ||
167 | </configuration> | ||
168 | </storageModule> | ||
169 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
170 | </cconfiguration> | ||
171 | </storageModule> | ||
172 | <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> | ||
173 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
174 | <project id="PRU_MAC_Multiply_Accum.com.ti.ccstudio.buildDefinitions.PRU.ProjectType.1179404865" name="PRU" projectType="com.ti.ccstudio.buildDefinitions.PRU.ProjectType"/> | ||
175 | </storageModule> | ||
176 | <storageModule moduleId="scannerConfiguration"/> | ||
177 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"> | ||
178 | <project-mappings> | ||
179 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/> | ||
180 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
181 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
182 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
183 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
184 | </project-mappings> | ||
185 | </storageModule> | ||
186 | </cproject> | ||
diff --git a/examples/am571x/PRU_MAC_Multiply_Accum/.project b/examples/am571x/PRU_MAC_Multiply_Accum/.project deleted file mode 100755 index 45b17a2..0000000 --- a/examples/am571x/PRU_MAC_Multiply_Accum/.project +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>PRU_MAC_Multiply_Accum</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <arguments> | ||
11 | </arguments> | ||
12 | </buildCommand> | ||
13 | <buildCommand> | ||
14 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
15 | <triggers>full,incremental,</triggers> | ||
16 | <arguments> | ||
17 | </arguments> | ||
18 | </buildCommand> | ||
19 | </buildSpec> | ||
20 | <natures> | ||
21 | <nature>com.ti.ccstudio.core.ccsNature</nature> | ||
22 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
23 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
24 | <nature>org.eclipse.cdt.core.ccnature</nature> | ||
25 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
26 | </natures> | ||
27 | </projectDescription> | ||
diff --git a/examples/am571x/PRU_MAC_Multiply_Accum/.settings/org.eclipse.cdt.codan.core.prefs b/examples/am571x/PRU_MAC_Multiply_Accum/.settings/org.eclipse.cdt.codan.core.prefs deleted file mode 100755 index f653028..0000000 --- a/examples/am571x/PRU_MAC_Multiply_Accum/.settings/org.eclipse.cdt.codan.core.prefs +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | inEditor=false | ||
3 | onBuild=false | ||
diff --git a/examples/am571x/PRU_MAC_Multiply_Accum/.settings/org.eclipse.cdt.debug.core.prefs b/examples/am571x/PRU_MAC_Multiply_Accum/.settings/org.eclipse.cdt.debug.core.prefs deleted file mode 100755 index 2adc7b1..0000000 --- a/examples/am571x/PRU_MAC_Multiply_Accum/.settings/org.eclipse.cdt.debug.core.prefs +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | org.eclipse.cdt.debug.core.toggleBreakpointModel=com.ti.ccstudio.debug.CCSBreakpointMarker | ||
diff --git a/examples/am571x/PRU_MAC_Multiply_Accum/AM57xx_PRU.cmd b/examples/am571x/PRU_MAC_Multiply_Accum/AM57xx_PRU.cmd deleted file mode 100755 index f15f640..0000000 --- a/examples/am571x/PRU_MAC_Multiply_Accum/AM57xx_PRU.cmd +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | /****************************************************************************/ | ||
2 | /* AM57xx_PRU.cmd */ | ||
3 | /* Copyright (c) 2015 Texas Instruments Incorporated */ | ||
4 | /* */ | ||
5 | /* Description: This file is a linker command file that can be used for */ | ||
6 | /* linking PRU programs built with the C compiler and */ | ||
7 | /* the resulting .out file on an AM57xx device. */ | ||
8 | /****************************************************************************/ | ||
9 | |||
10 | -cr /* Link using C conventions */ | ||
11 | |||
12 | /* Specify the System Memory Map */ | ||
13 | MEMORY | ||
14 | { | ||
15 | PAGE 0: | ||
16 | PRU_IMEM : org = 0x00000000 len = 0x00003000 /* 12kB PRU-ICSS1 Instruction RAM */ | ||
17 | |||
18 | PAGE 1: | ||
19 | |||
20 | /* RAM */ | ||
21 | |||
22 | PRU_DMEM_0_1 : org = 0x00000000 len = 0x00002000 CREGISTER=24 /* 8kB PRU Data RAM 0_1 */ | ||
23 | PRU_DMEM_1_0 : org = 0x00002000 len = 0x00002000 CREGISTER=25 /* 8kB PRU Data RAM 1_0 */ | ||
24 | PRU_SHAREDMEM : org = 0x00010000 len = 0x00008000 CREGISTER=28 /* 32kB Shared RAM */ | ||
25 | |||
26 | DDR : org = 0x80000000 len = 0x00000100 CREGISTER=31 | ||
27 | L3OCMC : org = 0x40000000 len = 0x00010000 CREGISTER=30 | ||
28 | |||
29 | |||
30 | /* Peripherals */ | ||
31 | |||
32 | PRU_CFG : org = 0x00026000 len = 0x00000120 CREGISTER=4 | ||
33 | PRU_ECAP : org = 0x00030000 len = 0x00000060 CREGISTER=3 | ||
34 | PRU_IEP : org = 0x0002E000 len = 0x0000031C CREGISTER=26 | ||
35 | PRU_INTC : org = 0x00020000 len = 0x00001504 CREGISTER=0 | ||
36 | PRU_UART : org = 0x00028000 len = 0x00000038 CREGISTER=7 | ||
37 | |||
38 | MCASP3_DMA : org = 0x46000000 len = 0x00000100 CREGISTER=8 | ||
39 | I2C3 : org = 0x48060000 len = 0x00000300 CREGISTER=5 | ||
40 | |||
41 | RSVD1 : org = 0x48040000 len = 0x0000005C CREGISTER=1 | ||
42 | RSVD2 : org = 0x4802A000 len = 0x000000D8 CREGISTER=2 | ||
43 | RSVD6 : org = 0x48030000 len = 0x000001A4 CREGISTER=6 | ||
44 | RSVD9 : org = 0x4A100000 len = 0x0000128C CREGISTER=9 | ||
45 | RSVD10 : org = 0x48318000 len = 0x00000100 CREGISTER=10 | ||
46 | RSVD11 : org = 0x48022000 len = 0x00000088 CREGISTER=11 | ||
47 | RSVD12 : org = 0x48024000 len = 0x00000088 CREGISTER=12 | ||
48 | RSVD13 : org = 0x48310000 len = 0x00000100 CREGISTER=13 | ||
49 | RSVD14 : org = 0x481CC000 len = 0x000001E8 CREGISTER=14 | ||
50 | RSVD15 : org = 0x481D0000 len = 0x000001E8 CREGISTER=15 | ||
51 | RSVD16 : org = 0x481A0000 len = 0x000001A4 CREGISTER=16 | ||
52 | RSVD17 : org = 0x4819C000 len = 0x000000D8 CREGISTER=17 | ||
53 | RSVD18 : org = 0x48300000 len = 0x000002C4 CREGISTER=18 | ||
54 | RSVD19 : org = 0x48302000 len = 0x000002C4 CREGISTER=19 | ||
55 | RSVD20 : org = 0x48304000 len = 0x000002C4 CREGISTER=20 | ||
56 | RSVD21 : org = 0x00032400 len = 0x00000100 CREGISTER=21 | ||
57 | RSVD22 : org = 0x480C8000 len = 0x00000140 CREGISTER=22 | ||
58 | RSVD23 : org = 0x480CA000 len = 0x00000880 CREGISTER=23 | ||
59 | RSVD27 : org = 0x00032000 len = 0x00000100 CREGISTER=27 | ||
60 | RSVD29 : org = 0x49000000 len = 0x00001098 CREGISTER=29 | ||
61 | } | ||
62 | |||
63 | /* Specify the sections allocation into memory */ | ||
64 | SECTIONS { | ||
65 | /* Forces _c_int00 to the start of PRU IRAM. Not necessary when loading | ||
66 | an ELF file, but useful when loading a binary */ | ||
67 | .text:_c_int00* > 0x0, PAGE 0 | ||
68 | |||
69 | .text > PRU_IMEM, PAGE 0 | ||
70 | .stack > PRU_DMEM_0_1, PAGE 1 | ||
71 | .bss > PRU_DMEM_0_1, PAGE 1 | ||
72 | .cio > PRU_DMEM_0_1, PAGE 1 | ||
73 | .data > PRU_DMEM_0_1, PAGE 1 | ||
74 | .switch > PRU_DMEM_0_1, PAGE 1 | ||
75 | .sysmem > PRU_DMEM_0_1, PAGE 1 | ||
76 | .cinit > PRU_DMEM_0_1, PAGE 1 | ||
77 | .rodata > PRU_DMEM_0_1, PAGE 1 | ||
78 | .rofardata > PRU_DMEM_0_1, PAGE 1 | ||
79 | .farbss > PRU_DMEM_0_1, PAGE 1 | ||
80 | .fardata > PRU_DMEM_0_1, PAGE 1 | ||
81 | |||
82 | .resource_table > PRU_DMEM_0_1, PAGE 1 | ||
83 | } | ||
diff --git a/examples/am571x/PRU_MAC_Multiply_Accum/Makefile b/examples/am571x/PRU_MAC_Multiply_Accum/Makefile deleted file mode 100644 index 15a5222..0000000 --- a/examples/am571x/PRU_MAC_Multiply_Accum/Makefile +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | # PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: | ||
2 | #(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
3 | #(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
4 | ifndef PRU_CGT | ||
5 | define ERROR_BODY | ||
6 | |||
7 | ************************************************************ | ||
8 | PRU_CGT environment variable is not set. Examples given: | ||
9 | (Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
10 | (Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
11 | ************************************************************ | ||
12 | |||
13 | endef | ||
14 | $(error $(ERROR_BODY)) | ||
15 | endif | ||
16 | |||
17 | MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
18 | CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH)))) | ||
19 | PROJ_NAME=$(CURRENT_DIR) | ||
20 | LINKER_COMMAND_FILE=./AM57xx_PRU.cmd | ||
21 | LIBS=--library=../../../lib/rpmsg_lib.lib | ||
22 | INCLUDE=--include_path=../../../include --include_path=../../../include/am571x | ||
23 | STACK_SIZE=0x100 | ||
24 | HEAP_SIZE=0x100 | ||
25 | GEN_DIR=gen | ||
26 | |||
27 | #Common compiler and linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
28 | CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_directory=$(GEN_DIR) --pp_directory=$(GEN_DIR) -ppd -ppa | ||
29 | #Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
30 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | ||
31 | |||
32 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | ||
33 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | ||
34 | SOURCES=$(wildcard *.c) | ||
35 | #Using .object instead of .obj in order to not conflict with the CCS build process | ||
36 | OBJECTS=$(patsubst %,$(GEN_DIR)/%,$(SOURCES:.c=.object)) | ||
37 | |||
38 | all: printStart $(TARGET) printEnd | ||
39 | |||
40 | printStart: | ||
41 | @echo '' | ||
42 | @echo '************************************************************' | ||
43 | @echo 'Building project: $(PROJ_NAME)' | ||
44 | |||
45 | printEnd: | ||
46 | @echo '' | ||
47 | @echo 'Finished building project: $(PROJ_NAME)' | ||
48 | @echo '************************************************************' | ||
49 | @echo '' | ||
50 | |||
51 | # Invokes the linker (-z flag) to make the .out file | ||
52 | $(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) | ||
53 | @echo '' | ||
54 | @echo 'Building target: $@' | ||
55 | @echo 'Invoking: PRU Linker' | ||
56 | $(PRU_CGT)/bin/clpru $(CFLAGS) -z -i$(PRU_CGT)/lib -i$(PRU_CGT)/include $(LFLAGS) -o $(TARGET) $(OBJECTS) -m$(MAP) $(LINKER_COMMAND_FILE) --library=libc.a $(LIBS) | ||
57 | @echo 'Finished building target: $@' | ||
58 | @echo '' | ||
59 | @echo 'Output files can be found in the "$(GEN_DIR)" directory' | ||
60 | |||
61 | # Invokes the compiler on all c files in the directory to create the object files | ||
62 | $(GEN_DIR)/%.object: %.c | ||
63 | @mkdir -p $(GEN_DIR) | ||
64 | @echo '' | ||
65 | @echo 'Building file: $<' | ||
66 | @echo 'Invoking: PRU Compiler' | ||
67 | $(PRU_CGT)/bin/clpru --include_path=$(PRU_CGT)/include $(INCLUDE) $(CFLAGS) -fe $@ $< | ||
68 | |||
69 | .PHONY: all clean | ||
70 | |||
71 | # Remove the $(GEN_DIR) directory | ||
72 | clean: | ||
73 | @echo '' | ||
74 | @echo '************************************************************' | ||
75 | @echo 'Cleaning project: $(PROJ_NAME)' | ||
76 | @echo '' | ||
77 | @echo 'Removing files in the "$(GEN_DIR)" directory' | ||
78 | @rm -rf $(GEN_DIR) | ||
79 | @echo '' | ||
80 | @echo 'Finished cleaning project: $(PROJ_NAME)' | ||
81 | @echo '************************************************************' | ||
82 | @echo '' | ||
83 | |||
84 | # Includes the dependencies that the compiler creates (-ppd and -ppa flags) | ||
85 | -include $(OBJECTS:%.object=%.pp) | ||
86 | |||
diff --git a/examples/am571x/PRU_MAC_Multiply_Accum/PRU_MAC_Multiply_Accum.c b/examples/am571x/PRU_MAC_Multiply_Accum/PRU_MAC_Multiply_Accum.c deleted file mode 100755 index 7dc9239..0000000 --- a/examples/am571x/PRU_MAC_Multiply_Accum/PRU_MAC_Multiply_Accum.c +++ /dev/null | |||
@@ -1,79 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | // *************************************** | ||
35 | // * Global Structure Definitions * | ||
36 | // *************************************** | ||
37 | |||
38 | #include <stdint.h> | ||
39 | #include "resource_table_empty.h" | ||
40 | |||
41 | /* R31 is used to generate the "I'm done" back to the ARM */ | ||
42 | volatile register uint8_t __R31; | ||
43 | |||
44 | /* Accessing the operands structure within the multiplyParams structure | ||
45 | * forces the compiler to pair the registers together */ | ||
46 | typedef struct { | ||
47 | uint32_t op1; | ||
48 | uint32_t op2; | ||
49 | } operands; | ||
50 | |||
51 | #define NUMMACS 256 | ||
52 | |||
53 | operands buf[NUMMACS]; | ||
54 | |||
55 | /* Need to create a while loop inside main to wait for interrupt from host. | ||
56 | * The interrupt will signify that a buffer of data has been passed and is | ||
57 | * ready for MAC processing. This will be passed by rpmsg driver. | ||
58 | */ | ||
59 | void main(){ | ||
60 | uint32_t i; | ||
61 | uint16_t numMacs = NUMMACS; // Arbitrary number | ||
62 | uint64_t result = 0; | ||
63 | volatile uint64_t storeValue = 0; | ||
64 | |||
65 | for (i = 0; i < numMacs; i++){ | ||
66 | buf[i].op1 = i; | ||
67 | buf[i].op2 = i+1; | ||
68 | } | ||
69 | |||
70 | /* Perform numMacs MAC operations */ | ||
71 | for (i = 0; i < numMacs; i++){ | ||
72 | result += (uint64_t)buf[i].op1 * (uint64_t)buf[i].op2; | ||
73 | } | ||
74 | |||
75 | storeValue = result; | ||
76 | |||
77 | /* Nothing to do so halt */ | ||
78 | __halt(); | ||
79 | } | ||
diff --git a/examples/am571x/PRU_MAC_Multiply_Accum/resource_table_empty.h b/examples/am571x/PRU_MAC_Multiply_Accum/resource_table_empty.h deleted file mode 100755 index 4cd3017..0000000 --- a/examples/am571x/PRU_MAC_Multiply_Accum/resource_table_empty.h +++ /dev/null | |||
@@ -1,72 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | /* | ||
35 | * ======== resource_table_empty.h ======== | ||
36 | * | ||
37 | * Define the resource table entries for all PRU cores. This will be | ||
38 | * incorporated into corresponding base images, and used by the remoteproc | ||
39 | * on the host-side to allocated/reserve resources. Note the remoteproc | ||
40 | * driver requires that all PRU firmware be built with a resource table. | ||
41 | * | ||
42 | * This file contains an empty resource table. It can be used either as: | ||
43 | * | ||
44 | * 1) A template, or | ||
45 | * 2) As-is if a PRU application does not need to configure PRU_INTC | ||
46 | * or interact with the rpmsg driver | ||
47 | * | ||
48 | */ | ||
49 | |||
50 | #ifndef _RSC_TABLE_PRU_H_ | ||
51 | #define _RSC_TABLE_PRU_H_ | ||
52 | |||
53 | #include <stddef.h> | ||
54 | #include <rsc_types.h> | ||
55 | |||
56 | struct my_resource_table { | ||
57 | struct resource_table base; | ||
58 | |||
59 | uint32_t offset[1]; /* Should match 'num' in actual definition */ | ||
60 | }; | ||
61 | |||
62 | #pragma DATA_SECTION(pru_remoteproc_ResourceTable, ".resource_table") | ||
63 | #pragma RETAIN(pru_remoteproc_ResourceTable) | ||
64 | struct my_resource_table pru_remoteproc_ResourceTable = { | ||
65 | 1, /* we're the first version that implements this */ | ||
66 | 0, /* number of entries in the table */ | ||
67 | 0, 0, /* reserved, must be zero */ | ||
68 | 0, /* offset[0] */ | ||
69 | }; | ||
70 | |||
71 | #endif /* _RSC_TABLE_PRU_H_ */ | ||
72 | |||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/.ccsproject b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/.ccsproject deleted file mode 100644 index b169227..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/.ccsproject +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" ?> | ||
2 | <?ccsproject version="1.0"?> | ||
3 | <projectOptions> | ||
4 | <deviceVariant value="TMS192C2026.AM3359.BeagleBone_Black"/> | ||
5 | <deviceFamily value="PRU"/> | ||
6 | <deviceEndianness value="little"/> | ||
7 | <codegenToolVersion value="2.1.1"/> | ||
8 | <isElfFormat value="true"/> | ||
9 | <linkerCommandFile value="AM335x.cmd"/> | ||
10 | <rts value="libc.a"/> | ||
11 | <createSlaveProjects value=""/> | ||
12 | <templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/> | ||
13 | <isTargetManual value="false"/> | ||
14 | </projectOptions> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/.cproject b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/.cproject deleted file mode 100644 index 3dc4ec5..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/.cproject +++ /dev/null | |||
@@ -1,188 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
3 | <storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings"> | ||
4 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Debug.1357205529"> | ||
5 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.1357205529" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
6 | <externalSettings/> | ||
7 | <extensions> | ||
8 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
9 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
10 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
11 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
12 | </extensions> | ||
13 | </storageModule> | ||
14 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
15 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.1357205529" name="Debug" parent="com.ti.ccstudio.buildDefinitions.PRU.Debug" postbuildStep="" prebuildStep=""> | ||
16 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Debug.1357205529." name="/" resourcePath=""> | ||
17 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain.1935832701" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.1029021881"> | ||
18 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.109690128" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
19 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
20 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
21 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
22 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
23 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
24 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
25 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
26 | </option> | ||
27 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1400250699" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
28 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug.1628459139" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug"/> | ||
29 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug.1480735334" name="GNU Make.Debug" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug"/> | ||
30 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug.1206207465" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug"> | ||
31 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.580690489" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
32 | <listOptionValue builtIn="false" value="pru0"/> | ||
33 | <listOptionValue builtIn="false" value="am4379"/> | ||
34 | <listOptionValue builtIn="false" value="icss1"/> | ||
35 | <listOptionValue builtIn="false" value="am5718"/> | ||
36 | </option> | ||
37 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.1967666616" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
38 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.925365163" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
39 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.683780478" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
40 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
41 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
42 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
43 | </option> | ||
44 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.2082285116" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/> | ||
45 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.1188765579" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
46 | <listOptionValue builtIn="false" value="225"/> | ||
47 | </option> | ||
48 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.1202244706" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
49 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.105330379" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
50 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.1651914378" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
51 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.1203650041" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
52 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.167279134" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
53 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.1065226276" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
54 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.2088571056" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
55 | </tool> | ||
56 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.1029021881" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug"> | ||
57 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.897973742" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
58 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.151163347" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
59 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.1793635984" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
60 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.1005514421" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
61 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.1811520377" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
62 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
63 | <listOptionValue builtIn="false" value=""../../../../lib/rpmsg_lib.lib""/> | ||
64 | </option> | ||
65 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.1013515278" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
66 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
67 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
68 | </option> | ||
69 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.1551996386" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
70 | <listOptionValue builtIn="false" value="ICSS1_PRU_CORE=1"/> | ||
71 | </option> | ||
72 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER.1342355538" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
73 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.1509251885" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
74 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.509264285" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
75 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.76779664" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
76 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.1951341944" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
77 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.1988485931" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
78 | </tool> | ||
79 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.500506074" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"/> | ||
80 | </toolChain> | ||
81 | </folderInfo> | ||
82 | <sourceEntries> | ||
83 | <entry excluding="AM437x.cmd|AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
84 | </sourceEntries> | ||
85 | </configuration> | ||
86 | </storageModule> | ||
87 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
88 | </cconfiguration> | ||
89 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Release.1954355010"> | ||
90 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1954355010" moduleId="org.eclipse.cdt.core.settings" name="Release"> | ||
91 | <externalSettings/> | ||
92 | <extensions> | ||
93 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
94 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
95 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
96 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
97 | </extensions> | ||
98 | </storageModule> | ||
99 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
100 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1954355010" name="Release" parent="com.ti.ccstudio.buildDefinitions.PRU.Release" postbuildStep="" prebuildStep=""> | ||
101 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Release.1954355010." name="/" resourcePath=""> | ||
102 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain.2041015424" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.1431416136"> | ||
103 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1662470173" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
104 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
105 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
106 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
107 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
108 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
109 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
110 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
111 | </option> | ||
112 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.439362802" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
113 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease.1157401685" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease"/> | ||
114 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease.1659237926" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease"/> | ||
115 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease.1359642877" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease"> | ||
116 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.559303149" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
117 | <listOptionValue builtIn="false" value="pru0"/> | ||
118 | <listOptionValue builtIn="false" value="am4379"/> | ||
119 | <listOptionValue builtIn="false" value="icss1"/> | ||
120 | <listOptionValue builtIn="false" value="am5718"/> | ||
121 | </option> | ||
122 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.135310768" name="Silicon version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
123 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.467569106" name="Enables use of the hardware MAC available on some PRU cores (--hardware_mac)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
124 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.2052399315" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
125 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
126 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
127 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
128 | </option> | ||
129 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.172447191" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
130 | <listOptionValue builtIn="false" value="225"/> | ||
131 | </option> | ||
132 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.1816393160" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
133 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.641712423" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
134 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.794167073" name="Specify the endianness of both code and data [See 'General' page to edit] (--endian)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
135 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.1077279947" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
136 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.1566800245" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
137 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.1652546633" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
138 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.45314469" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
139 | </tool> | ||
140 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.1431416136" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease"> | ||
141 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.957973563" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
142 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.826391103" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
143 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.1027730837" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
144 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.1012720289" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
145 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.1828465547" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
146 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
147 | <listOptionValue builtIn="false" value=""../../../../lib/rpmsg_lib.lib""/> | ||
148 | </option> | ||
149 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.51409792" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
150 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
151 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
152 | </option> | ||
153 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.369312080" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
154 | <listOptionValue builtIn="false" value="ICSS1_PRU_CORE=1"/> | ||
155 | </option> | ||
156 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER.829061365" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
157 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.1257676778" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
158 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.1015678540" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
159 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.859665521" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
160 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.1671756333" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
161 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.380954322" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
162 | </tool> | ||
163 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.697181524" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"/> | ||
164 | </toolChain> | ||
165 | </folderInfo> | ||
166 | <sourceEntries> | ||
167 | <entry excluding="AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
168 | </sourceEntries> | ||
169 | </configuration> | ||
170 | </storageModule> | ||
171 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
172 | </cconfiguration> | ||
173 | </storageModule> | ||
174 | <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> | ||
175 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
176 | <project id="PRU_RPMsg_Echo_Interrupt0.com.ti.ccstudio.buildDefinitions.PRU.ProjectType.1477410699" name="PRU" projectType="com.ti.ccstudio.buildDefinitions.PRU.ProjectType"/> | ||
177 | </storageModule> | ||
178 | <storageModule moduleId="scannerConfiguration"/> | ||
179 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"> | ||
180 | <project-mappings> | ||
181 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/> | ||
182 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
183 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
184 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
185 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
186 | </project-mappings> | ||
187 | </storageModule> | ||
188 | </cproject> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/.project b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/.project deleted file mode 100644 index 427f4cf..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/.project +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>PRU_RPMsg_Echo_Interrupt1_0</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <arguments> | ||
11 | </arguments> | ||
12 | </buildCommand> | ||
13 | <buildCommand> | ||
14 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
15 | <triggers>full,incremental,</triggers> | ||
16 | <arguments> | ||
17 | </arguments> | ||
18 | </buildCommand> | ||
19 | </buildSpec> | ||
20 | <natures> | ||
21 | <nature>com.ti.ccstudio.core.ccsNature</nature> | ||
22 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
23 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
24 | <nature>org.eclipse.cdt.core.ccnature</nature> | ||
25 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
26 | </natures> | ||
27 | </projectDescription> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/.settings/org.eclipse.cdt.codan.core.prefs b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/.settings/org.eclipse.cdt.codan.core.prefs deleted file mode 100644 index f653028..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/.settings/org.eclipse.cdt.codan.core.prefs +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | inEditor=false | ||
3 | onBuild=false | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/.settings/org.eclipse.cdt.debug.core.prefs b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/.settings/org.eclipse.cdt.debug.core.prefs deleted file mode 100644 index 2adc7b1..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/.settings/org.eclipse.cdt.debug.core.prefs +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | org.eclipse.cdt.debug.core.toggleBreakpointModel=com.ti.ccstudio.debug.CCSBreakpointMarker | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/AM57xx_PRU.cmd b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/AM57xx_PRU.cmd deleted file mode 100755 index f15f640..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/AM57xx_PRU.cmd +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | /****************************************************************************/ | ||
2 | /* AM57xx_PRU.cmd */ | ||
3 | /* Copyright (c) 2015 Texas Instruments Incorporated */ | ||
4 | /* */ | ||
5 | /* Description: This file is a linker command file that can be used for */ | ||
6 | /* linking PRU programs built with the C compiler and */ | ||
7 | /* the resulting .out file on an AM57xx device. */ | ||
8 | /****************************************************************************/ | ||
9 | |||
10 | -cr /* Link using C conventions */ | ||
11 | |||
12 | /* Specify the System Memory Map */ | ||
13 | MEMORY | ||
14 | { | ||
15 | PAGE 0: | ||
16 | PRU_IMEM : org = 0x00000000 len = 0x00003000 /* 12kB PRU-ICSS1 Instruction RAM */ | ||
17 | |||
18 | PAGE 1: | ||
19 | |||
20 | /* RAM */ | ||
21 | |||
22 | PRU_DMEM_0_1 : org = 0x00000000 len = 0x00002000 CREGISTER=24 /* 8kB PRU Data RAM 0_1 */ | ||
23 | PRU_DMEM_1_0 : org = 0x00002000 len = 0x00002000 CREGISTER=25 /* 8kB PRU Data RAM 1_0 */ | ||
24 | PRU_SHAREDMEM : org = 0x00010000 len = 0x00008000 CREGISTER=28 /* 32kB Shared RAM */ | ||
25 | |||
26 | DDR : org = 0x80000000 len = 0x00000100 CREGISTER=31 | ||
27 | L3OCMC : org = 0x40000000 len = 0x00010000 CREGISTER=30 | ||
28 | |||
29 | |||
30 | /* Peripherals */ | ||
31 | |||
32 | PRU_CFG : org = 0x00026000 len = 0x00000120 CREGISTER=4 | ||
33 | PRU_ECAP : org = 0x00030000 len = 0x00000060 CREGISTER=3 | ||
34 | PRU_IEP : org = 0x0002E000 len = 0x0000031C CREGISTER=26 | ||
35 | PRU_INTC : org = 0x00020000 len = 0x00001504 CREGISTER=0 | ||
36 | PRU_UART : org = 0x00028000 len = 0x00000038 CREGISTER=7 | ||
37 | |||
38 | MCASP3_DMA : org = 0x46000000 len = 0x00000100 CREGISTER=8 | ||
39 | I2C3 : org = 0x48060000 len = 0x00000300 CREGISTER=5 | ||
40 | |||
41 | RSVD1 : org = 0x48040000 len = 0x0000005C CREGISTER=1 | ||
42 | RSVD2 : org = 0x4802A000 len = 0x000000D8 CREGISTER=2 | ||
43 | RSVD6 : org = 0x48030000 len = 0x000001A4 CREGISTER=6 | ||
44 | RSVD9 : org = 0x4A100000 len = 0x0000128C CREGISTER=9 | ||
45 | RSVD10 : org = 0x48318000 len = 0x00000100 CREGISTER=10 | ||
46 | RSVD11 : org = 0x48022000 len = 0x00000088 CREGISTER=11 | ||
47 | RSVD12 : org = 0x48024000 len = 0x00000088 CREGISTER=12 | ||
48 | RSVD13 : org = 0x48310000 len = 0x00000100 CREGISTER=13 | ||
49 | RSVD14 : org = 0x481CC000 len = 0x000001E8 CREGISTER=14 | ||
50 | RSVD15 : org = 0x481D0000 len = 0x000001E8 CREGISTER=15 | ||
51 | RSVD16 : org = 0x481A0000 len = 0x000001A4 CREGISTER=16 | ||
52 | RSVD17 : org = 0x4819C000 len = 0x000000D8 CREGISTER=17 | ||
53 | RSVD18 : org = 0x48300000 len = 0x000002C4 CREGISTER=18 | ||
54 | RSVD19 : org = 0x48302000 len = 0x000002C4 CREGISTER=19 | ||
55 | RSVD20 : org = 0x48304000 len = 0x000002C4 CREGISTER=20 | ||
56 | RSVD21 : org = 0x00032400 len = 0x00000100 CREGISTER=21 | ||
57 | RSVD22 : org = 0x480C8000 len = 0x00000140 CREGISTER=22 | ||
58 | RSVD23 : org = 0x480CA000 len = 0x00000880 CREGISTER=23 | ||
59 | RSVD27 : org = 0x00032000 len = 0x00000100 CREGISTER=27 | ||
60 | RSVD29 : org = 0x49000000 len = 0x00001098 CREGISTER=29 | ||
61 | } | ||
62 | |||
63 | /* Specify the sections allocation into memory */ | ||
64 | SECTIONS { | ||
65 | /* Forces _c_int00 to the start of PRU IRAM. Not necessary when loading | ||
66 | an ELF file, but useful when loading a binary */ | ||
67 | .text:_c_int00* > 0x0, PAGE 0 | ||
68 | |||
69 | .text > PRU_IMEM, PAGE 0 | ||
70 | .stack > PRU_DMEM_0_1, PAGE 1 | ||
71 | .bss > PRU_DMEM_0_1, PAGE 1 | ||
72 | .cio > PRU_DMEM_0_1, PAGE 1 | ||
73 | .data > PRU_DMEM_0_1, PAGE 1 | ||
74 | .switch > PRU_DMEM_0_1, PAGE 1 | ||
75 | .sysmem > PRU_DMEM_0_1, PAGE 1 | ||
76 | .cinit > PRU_DMEM_0_1, PAGE 1 | ||
77 | .rodata > PRU_DMEM_0_1, PAGE 1 | ||
78 | .rofardata > PRU_DMEM_0_1, PAGE 1 | ||
79 | .farbss > PRU_DMEM_0_1, PAGE 1 | ||
80 | .fardata > PRU_DMEM_0_1, PAGE 1 | ||
81 | |||
82 | .resource_table > PRU_DMEM_0_1, PAGE 1 | ||
83 | } | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/Makefile b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/Makefile deleted file mode 100644 index 15a5222..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/Makefile +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | # PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: | ||
2 | #(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
3 | #(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
4 | ifndef PRU_CGT | ||
5 | define ERROR_BODY | ||
6 | |||
7 | ************************************************************ | ||
8 | PRU_CGT environment variable is not set. Examples given: | ||
9 | (Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
10 | (Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
11 | ************************************************************ | ||
12 | |||
13 | endef | ||
14 | $(error $(ERROR_BODY)) | ||
15 | endif | ||
16 | |||
17 | MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
18 | CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH)))) | ||
19 | PROJ_NAME=$(CURRENT_DIR) | ||
20 | LINKER_COMMAND_FILE=./AM57xx_PRU.cmd | ||
21 | LIBS=--library=../../../lib/rpmsg_lib.lib | ||
22 | INCLUDE=--include_path=../../../include --include_path=../../../include/am571x | ||
23 | STACK_SIZE=0x100 | ||
24 | HEAP_SIZE=0x100 | ||
25 | GEN_DIR=gen | ||
26 | |||
27 | #Common compiler and linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
28 | CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_directory=$(GEN_DIR) --pp_directory=$(GEN_DIR) -ppd -ppa | ||
29 | #Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
30 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | ||
31 | |||
32 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | ||
33 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | ||
34 | SOURCES=$(wildcard *.c) | ||
35 | #Using .object instead of .obj in order to not conflict with the CCS build process | ||
36 | OBJECTS=$(patsubst %,$(GEN_DIR)/%,$(SOURCES:.c=.object)) | ||
37 | |||
38 | all: printStart $(TARGET) printEnd | ||
39 | |||
40 | printStart: | ||
41 | @echo '' | ||
42 | @echo '************************************************************' | ||
43 | @echo 'Building project: $(PROJ_NAME)' | ||
44 | |||
45 | printEnd: | ||
46 | @echo '' | ||
47 | @echo 'Finished building project: $(PROJ_NAME)' | ||
48 | @echo '************************************************************' | ||
49 | @echo '' | ||
50 | |||
51 | # Invokes the linker (-z flag) to make the .out file | ||
52 | $(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) | ||
53 | @echo '' | ||
54 | @echo 'Building target: $@' | ||
55 | @echo 'Invoking: PRU Linker' | ||
56 | $(PRU_CGT)/bin/clpru $(CFLAGS) -z -i$(PRU_CGT)/lib -i$(PRU_CGT)/include $(LFLAGS) -o $(TARGET) $(OBJECTS) -m$(MAP) $(LINKER_COMMAND_FILE) --library=libc.a $(LIBS) | ||
57 | @echo 'Finished building target: $@' | ||
58 | @echo '' | ||
59 | @echo 'Output files can be found in the "$(GEN_DIR)" directory' | ||
60 | |||
61 | # Invokes the compiler on all c files in the directory to create the object files | ||
62 | $(GEN_DIR)/%.object: %.c | ||
63 | @mkdir -p $(GEN_DIR) | ||
64 | @echo '' | ||
65 | @echo 'Building file: $<' | ||
66 | @echo 'Invoking: PRU Compiler' | ||
67 | $(PRU_CGT)/bin/clpru --include_path=$(PRU_CGT)/include $(INCLUDE) $(CFLAGS) -fe $@ $< | ||
68 | |||
69 | .PHONY: all clean | ||
70 | |||
71 | # Remove the $(GEN_DIR) directory | ||
72 | clean: | ||
73 | @echo '' | ||
74 | @echo '************************************************************' | ||
75 | @echo 'Cleaning project: $(PROJ_NAME)' | ||
76 | @echo '' | ||
77 | @echo 'Removing files in the "$(GEN_DIR)" directory' | ||
78 | @rm -rf $(GEN_DIR) | ||
79 | @echo '' | ||
80 | @echo 'Finished cleaning project: $(PROJ_NAME)' | ||
81 | @echo '************************************************************' | ||
82 | @echo '' | ||
83 | |||
84 | # Includes the dependencies that the compiler creates (-ppd and -ppa flags) | ||
85 | -include $(OBJECTS:%.object=%.pp) | ||
86 | |||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/main.c b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/main.c deleted file mode 100644 index 08df364..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/main.c +++ /dev/null | |||
@@ -1,137 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | #include <stdint.h> | ||
35 | #include <stdio.h> | ||
36 | #include <pru_cfg.h> | ||
37 | #include <pru_intc.h> | ||
38 | #include <rsc_types.h> | ||
39 | #include <pru_virtqueue.h> | ||
40 | #include <pru_rpmsg.h> | ||
41 | #include <sys_mailbox.h> | ||
42 | #include "resource_table_0.h" | ||
43 | |||
44 | volatile register uint32_t __R31; | ||
45 | |||
46 | /* PRU0 is mailbox module user 1 */ | ||
47 | #define MB_USER 1 | ||
48 | /* CROSSBAR will map MBX3 user 1 event to Int Number 60 */ | ||
49 | #define MB_INT_NUMBER 60 | ||
50 | |||
51 | /* Host-0 Interrupt sets bit 30 in register R31 */ | ||
52 | #define HOST_INT 0x40000000 | ||
53 | |||
54 | /* The mailboxes used for RPMsg are defined in the Linux device tree | ||
55 | * PRU0 uses mailboxes 0 (From ARM) and 1 (To ARM) | ||
56 | * PRU1 uses mailboxes 2 (From ARM) and 3 (To ARM) | ||
57 | */ | ||
58 | #define MB_TO_ARM_HOST 1 | ||
59 | #define MB_FROM_ARM_HOST 0 | ||
60 | |||
61 | /* | ||
62 | * Using the name 'rpmsg-pru' will probe the rpmsg_pru driver found | ||
63 | * at linux-x.y.z/drivers/rpmsg/rpmsg_pru.c | ||
64 | */ | ||
65 | #define CHAN_NAME "rpmsg-pru" | ||
66 | #define CHAN_DESC "Channel 30" | ||
67 | #define CHAN_PORT 30 | ||
68 | |||
69 | /* | ||
70 | * Need to program the crossbar to bring the correct events into the | ||
71 | * PRUSS INTC | ||
72 | */ | ||
73 | #define CTRL_CORE_PRUSS1_IRQ_60_61 *(volatile unsigned int *) 0x4A002900 | ||
74 | #define MAILBOX3_IRQ_USER1 242 | ||
75 | |||
76 | /* | ||
77 | * Used to make sure the Linux drivers are ready for RPMsg communication | ||
78 | * Found at linux-x.y.z/include/uapi/linux/virtio_config.h | ||
79 | */ | ||
80 | #define VIRTIO_CONFIG_S_DRIVER_OK 4 | ||
81 | |||
82 | uint8_t payload[RPMSG_BUF_SIZE]; | ||
83 | |||
84 | /* | ||
85 | * main.c | ||
86 | */ | ||
87 | void main() { | ||
88 | struct pru_rpmsg_transport transport; | ||
89 | uint16_t src, dst, len; | ||
90 | uint32_t regValue; | ||
91 | volatile uint8_t *status; | ||
92 | |||
93 | /* allow OCP master port access by the PRU so the PRU can read external memories */ | ||
94 | CT_CFG.SYSCFG_bit.STANDBY_INIT = 0; | ||
95 | |||
96 | /* need to program the CROSSBAR to map MBX3 User1 event to PRUSS INTC event 60 */ | ||
97 | regValue = CTRL_CORE_PRUSS1_IRQ_60_61; | ||
98 | regValue &= 0xFFFFFE00; | ||
99 | CTRL_CORE_PRUSS1_IRQ_60_61 = regValue | MAILBOX3_IRQ_USER1; | ||
100 | |||
101 | /* clear the status of event MB_INT_NUMBER (the mailbox event) and enable the mailbox event */ | ||
102 | CT_INTC.SICR_bit.STATUS_CLR_INDEX = MB_INT_NUMBER; | ||
103 | MBX3.IRQ[MB_USER].ENABLE_SET |= 1 << (MB_FROM_ARM_HOST * 2); | ||
104 | |||
105 | /* Make sure the Linux drivers are ready for RPMsg communication */ | ||
106 | status = &resourceTable.rpmsg_vdev.status; | ||
107 | while (!(*status & VIRTIO_CONFIG_S_DRIVER_OK)); | ||
108 | |||
109 | /* Initialize pru_virtqueue corresponding to vring0 (PRU to ARM Host direction) */ | ||
110 | pru_virtqueue_init(&transport.virtqueue0, &resourceTable.rpmsg_vring0, &MBX3.MESSAGE[MB_TO_ARM_HOST], &MBX3.MESSAGE[MB_FROM_ARM_HOST]); | ||
111 | |||
112 | /* Initialize pru_virtqueue corresponding to vring1 (ARM Host to PRU direction) */ | ||
113 | pru_virtqueue_init(&transport.virtqueue1, &resourceTable.rpmsg_vring1, &MBX3.MESSAGE[MB_TO_ARM_HOST], &MBX3.MESSAGE[MB_FROM_ARM_HOST]); | ||
114 | |||
115 | /* Create the RPMsg channel between the PRU and ARM user space using the transport structure. */ | ||
116 | while(pru_rpmsg_channel(RPMSG_NS_CREATE, &transport, CHAN_NAME, CHAN_DESC, CHAN_PORT) != PRU_RPMSG_SUCCESS); | ||
117 | while(1){ | ||
118 | /* Check bit 30 of register R31 to see if the mailbox interrupt has occurred */ | ||
119 | if(__R31 & HOST_INT){ | ||
120 | /* Clear the mailbox interrupt */ | ||
121 | MBX3.IRQ[MB_USER].STATUS_CLR |= 1 << (MB_FROM_ARM_HOST * 2); | ||
122 | /* Clear the event status, event MB_INT_NUMBER corresponds to the mailbox interrupt */ | ||
123 | CT_INTC.SICR_bit.STATUS_CLR_INDEX = MB_INT_NUMBER; | ||
124 | /* Use a while loop to read all of the current messages in the mailbox */ | ||
125 | while(MBX3.MSGSTATUS_bit[MB_FROM_ARM_HOST].NBOFMSG > 0){ | ||
126 | /* Check to see if the message corresponds to a receive event for the PRU */ | ||
127 | if(MBX3.MESSAGE[MB_FROM_ARM_HOST] == 1){ | ||
128 | /* Receive the message */ | ||
129 | if(pru_rpmsg_receive(&transport, &src, &dst, payload, &len) == PRU_RPMSG_SUCCESS){ | ||
130 | /* Echo the message back to the same address from which we just received */ | ||
131 | pru_rpmsg_send(&transport, dst, src, payload, len); | ||
132 | } | ||
133 | } | ||
134 | } | ||
135 | } | ||
136 | } | ||
137 | } | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/resource_table_0.h b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/resource_table_0.h deleted file mode 100755 index 177b7c1..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_0/resource_table_0.h +++ /dev/null | |||
@@ -1,148 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | /* | ||
35 | * ======== rsc_table_am335x_pru.h ======== | ||
36 | * | ||
37 | * Define the resource table entries for all PRU cores. This will be | ||
38 | * incorporated into corresponding base images, and used by the remoteproc | ||
39 | * on the host-side to allocated/reserve resources. | ||
40 | * | ||
41 | */ | ||
42 | |||
43 | |||
44 | #ifndef _RSC_TABLE_PRU_H_ | ||
45 | #define _RSC_TABLE_PRU_H_ | ||
46 | |||
47 | #include <stddef.h> | ||
48 | #include <rsc_types.h> | ||
49 | #include "pru_virtio_ids.h" | ||
50 | |||
51 | /* | ||
52 | * Sizes of the virtqueues (expressed in number of buffers supported, | ||
53 | * and must be power of 2) | ||
54 | */ | ||
55 | #define PRU_RPMSG_VQ0_SIZE 16 | ||
56 | #define PRU_RPMSG_VQ1_SIZE 16 | ||
57 | |||
58 | /* | ||
59 | * The feature bitmap for virtio rpmsg | ||
60 | */ | ||
61 | #define VIRTIO_RPMSG_F_NS 0 //name service notifications | ||
62 | |||
63 | /* This firmware supports name service notifications as one of its features */ | ||
64 | #define RPMSG_PRU_C0_FEATURES (1 << VIRTIO_RPMSG_F_NS) | ||
65 | |||
66 | /* Definition for unused interrupts */ | ||
67 | #define HOST_UNUSED 255 | ||
68 | |||
69 | /* Mapping sysevts to a channel. Each pair contains a sysevt, channel | ||
70 | * Mapping event 60 (Mbox0 mailbox interrupt for pru0) to channel 0 | ||
71 | * */ | ||
72 | struct ch_map pru_intc_map[] = { {60, 0}, | ||
73 | }; | ||
74 | |||
75 | struct my_resource_table { | ||
76 | struct resource_table base; | ||
77 | |||
78 | uint32_t offset[2]; /* Should match 'num' in actual definition */ | ||
79 | |||
80 | /* rpmsg vdev entry */ | ||
81 | struct fw_rsc_vdev rpmsg_vdev; | ||
82 | struct fw_rsc_vdev_vring rpmsg_vring0; | ||
83 | struct fw_rsc_vdev_vring rpmsg_vring1; | ||
84 | |||
85 | /* intc definition */ | ||
86 | struct fw_rsc_custom pru_ints; | ||
87 | }; | ||
88 | |||
89 | #pragma DATA_SECTION(resourceTable, ".resource_table") | ||
90 | #pragma RETAIN(resourceTable) | ||
91 | struct my_resource_table resourceTable = { | ||
92 | 1, /* Resource table version: only version 1 is supported by the current driver */ | ||
93 | 2, /* number of entries in the table */ | ||
94 | 0, 0, /* reserved, must be zero */ | ||
95 | /* offsets to entries */ | ||
96 | { | ||
97 | offsetof(struct my_resource_table, rpmsg_vdev), | ||
98 | offsetof(struct my_resource_table, pru_ints), | ||
99 | }, | ||
100 | |||
101 | /* rpmsg vdev entry */ | ||
102 | { | ||
103 | (uint32_t)TYPE_VDEV, //type | ||
104 | (uint32_t)VIRTIO_ID_RPMSG, //id | ||
105 | (uint32_t)0, //notifyid | ||
106 | (uint32_t)RPMSG_PRU_C0_FEATURES, //dfeatures | ||
107 | (uint32_t)0, //gfeatures | ||
108 | (uint32_t)0, //config_len | ||
109 | (uint8_t)0, //status | ||
110 | (uint8_t)2, //num_of_vrings, only two is supported | ||
111 | { (uint8_t)0, (uint8_t)0 }, //reserved | ||
112 | /* no config data */ | ||
113 | }, | ||
114 | /* the two vrings */ | ||
115 | { | ||
116 | 0, //da, will be populated by host, can't pass it in | ||
117 | 16, //align (bytes), | ||
118 | PRU_RPMSG_VQ0_SIZE, //num of descriptors | ||
119 | 0, //notifyid, will be populated, can't pass right now | ||
120 | 0 //reserved | ||
121 | }, | ||
122 | { | ||
123 | 0, //da, will be populated by host, can't pass it in | ||
124 | 16, //align (bytes), | ||
125 | PRU_RPMSG_VQ1_SIZE, //num of descriptors | ||
126 | 0, //notifyid, will be populated, can't pass right now | ||
127 | 0 //reserved | ||
128 | }, | ||
129 | |||
130 | { | ||
131 | TYPE_CUSTOM, TYPE_PRU_INTS, | ||
132 | sizeof(struct fw_rsc_custom_ints), | ||
133 | { /* PRU_INTS version */ | ||
134 | 0x0000, | ||
135 | /* Channel-to-host mapping, 255 for unused | ||
136 | * Mapping Channel-0 to Host-0 (PRU0/1 R31 bit 30) | ||
137 | * */ | ||
138 | 0, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, | ||
139 | HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, | ||
140 | /* Number of evts being mapped to channels */ | ||
141 | (sizeof(pru_intc_map) / sizeof(struct ch_map)), | ||
142 | /* Pointer to the structure containing mapped events */ | ||
143 | pru_intc_map, | ||
144 | }, | ||
145 | }, | ||
146 | }; | ||
147 | |||
148 | #endif /* _RSC_TABLE_PRU_H_ */ | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/.ccsproject b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/.ccsproject deleted file mode 100644 index b169227..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/.ccsproject +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" ?> | ||
2 | <?ccsproject version="1.0"?> | ||
3 | <projectOptions> | ||
4 | <deviceVariant value="TMS192C2026.AM3359.BeagleBone_Black"/> | ||
5 | <deviceFamily value="PRU"/> | ||
6 | <deviceEndianness value="little"/> | ||
7 | <codegenToolVersion value="2.1.1"/> | ||
8 | <isElfFormat value="true"/> | ||
9 | <linkerCommandFile value="AM335x.cmd"/> | ||
10 | <rts value="libc.a"/> | ||
11 | <createSlaveProjects value=""/> | ||
12 | <templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/> | ||
13 | <isTargetManual value="false"/> | ||
14 | </projectOptions> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/.cproject b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/.cproject deleted file mode 100644 index e14b28a..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/.cproject +++ /dev/null | |||
@@ -1,188 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
3 | <storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings"> | ||
4 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Debug.645362798"> | ||
5 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.645362798" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
6 | <externalSettings/> | ||
7 | <extensions> | ||
8 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
9 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
10 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
11 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
12 | </extensions> | ||
13 | </storageModule> | ||
14 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
15 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.645362798" name="Debug" parent="com.ti.ccstudio.buildDefinitions.PRU.Debug" postbuildStep="" prebuildStep=""> | ||
16 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Debug.645362798." name="/" resourcePath=""> | ||
17 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain.203127880" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.1865422561"> | ||
18 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1425009315" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
19 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
20 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
21 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
22 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
23 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
24 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
25 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
26 | </option> | ||
27 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.407950360" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
28 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug.664134235" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug"/> | ||
29 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug.299766717" name="GNU Make.Debug" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug"/> | ||
30 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug.1485934928" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug"> | ||
31 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.1076694988" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
32 | <listOptionValue builtIn="false" value="pru0"/> | ||
33 | <listOptionValue builtIn="false" value="am4379"/> | ||
34 | <listOptionValue builtIn="false" value="icss1"/> | ||
35 | <listOptionValue builtIn="false" value="am5718"/> | ||
36 | </option> | ||
37 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.51221187" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
38 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.338753490" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
39 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.1860506472" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
40 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
41 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
42 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
43 | </option> | ||
44 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.59337032" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/> | ||
45 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.337324877" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
46 | <listOptionValue builtIn="false" value="225"/> | ||
47 | </option> | ||
48 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.822229552" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
49 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.781765115" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
50 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.1938970863" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
51 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.1780307587" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
52 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.1596756332" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
53 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.240846083" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
54 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.202705134" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
55 | </tool> | ||
56 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.1865422561" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug"> | ||
57 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.635670071" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
58 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.1240082187" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
59 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.1276023831" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
60 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.1169872320" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
61 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.773319281" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
62 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
63 | <listOptionValue builtIn="false" value=""../../../../lib/rpmsg_lib.lib""/> | ||
64 | </option> | ||
65 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.1424751838" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
66 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
67 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
68 | </option> | ||
69 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.1171365190" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
70 | <listOptionValue builtIn="false" value="ICSS1_PRU_CORE=1"/> | ||
71 | </option> | ||
72 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER.629149013" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
73 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.1192759587" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
74 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.1346105727" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
75 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.7834729" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
76 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.604331662" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
77 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.76661022" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
78 | </tool> | ||
79 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.1815004638" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"/> | ||
80 | </toolChain> | ||
81 | </folderInfo> | ||
82 | <sourceEntries> | ||
83 | <entry excluding="AM437x.cmd|AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
84 | </sourceEntries> | ||
85 | </configuration> | ||
86 | </storageModule> | ||
87 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
88 | </cconfiguration> | ||
89 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Release.1722392756"> | ||
90 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1722392756" moduleId="org.eclipse.cdt.core.settings" name="Release"> | ||
91 | <externalSettings/> | ||
92 | <extensions> | ||
93 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
94 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
95 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
96 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
97 | </extensions> | ||
98 | </storageModule> | ||
99 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
100 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1722392756" name="Release" parent="com.ti.ccstudio.buildDefinitions.PRU.Release" postbuildStep="" prebuildStep=""> | ||
101 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Release.1722392756." name="/" resourcePath=""> | ||
102 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain.2026211827" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.1786492560"> | ||
103 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1626722342" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
104 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
105 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
106 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
107 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
108 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
109 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
110 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
111 | </option> | ||
112 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1016531709" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
113 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease.1090093334" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease"/> | ||
114 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease.1550307921" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease"/> | ||
115 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease.866676722" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease"> | ||
116 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.250606081" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
117 | <listOptionValue builtIn="false" value="pru0"/> | ||
118 | <listOptionValue builtIn="false" value="am4379"/> | ||
119 | <listOptionValue builtIn="false" value="icss1"/> | ||
120 | <listOptionValue builtIn="false" value="am5718"/> | ||
121 | </option> | ||
122 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.407604120" name="Silicon version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
123 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.730399704" name="Enables use of the hardware MAC available on some PRU cores (--hardware_mac)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
124 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.426515402" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
125 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
126 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
127 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
128 | </option> | ||
129 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.263718216" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
130 | <listOptionValue builtIn="false" value="225"/> | ||
131 | </option> | ||
132 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.1820511476" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
133 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.1380699479" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
134 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.1596048004" name="Specify the endianness of both code and data [See 'General' page to edit] (--endian)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
135 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.1395884455" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
136 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.1248415710" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
137 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.794316101" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
138 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.527887064" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
139 | </tool> | ||
140 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.1786492560" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease"> | ||
141 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.974892040" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
142 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.521169285" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
143 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.1625646759" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
144 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.1158592837" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
145 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.1733661061" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
146 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
147 | <listOptionValue builtIn="false" value=""../../../../lib/rpmsg_lib.lib""/> | ||
148 | </option> | ||
149 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.422324294" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
150 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
151 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
152 | </option> | ||
153 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.490075328" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
154 | <listOptionValue builtIn="false" value="ICSS1_PRU_CORE=1"/> | ||
155 | </option> | ||
156 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER.806056483" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
157 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.690432206" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
158 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.1236440100" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
159 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.923976458" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
160 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.304150914" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
161 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.782273495" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
162 | </tool> | ||
163 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.603204253" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"/> | ||
164 | </toolChain> | ||
165 | </folderInfo> | ||
166 | <sourceEntries> | ||
167 | <entry excluding="AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
168 | </sourceEntries> | ||
169 | </configuration> | ||
170 | </storageModule> | ||
171 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
172 | </cconfiguration> | ||
173 | </storageModule> | ||
174 | <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> | ||
175 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
176 | <project id="PRU_RPMsg_Echo_Interrupt1.com.ti.ccstudio.buildDefinitions.PRU.ProjectType.1927506433" name="PRU" projectType="com.ti.ccstudio.buildDefinitions.PRU.ProjectType"/> | ||
177 | </storageModule> | ||
178 | <storageModule moduleId="scannerConfiguration"/> | ||
179 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"> | ||
180 | <project-mappings> | ||
181 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/> | ||
182 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
183 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
184 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
185 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
186 | </project-mappings> | ||
187 | </storageModule> | ||
188 | </cproject> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/.project b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/.project deleted file mode 100644 index 21ae3d9..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/.project +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>PRU_RPMsg_Echo_Interrupt1_1</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <arguments> | ||
11 | </arguments> | ||
12 | </buildCommand> | ||
13 | <buildCommand> | ||
14 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
15 | <triggers>full,incremental,</triggers> | ||
16 | <arguments> | ||
17 | </arguments> | ||
18 | </buildCommand> | ||
19 | </buildSpec> | ||
20 | <natures> | ||
21 | <nature>com.ti.ccstudio.core.ccsNature</nature> | ||
22 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
23 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
24 | <nature>org.eclipse.cdt.core.ccnature</nature> | ||
25 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
26 | </natures> | ||
27 | </projectDescription> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/.settings/org.eclipse.cdt.codan.core.prefs b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/.settings/org.eclipse.cdt.codan.core.prefs deleted file mode 100644 index f653028..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/.settings/org.eclipse.cdt.codan.core.prefs +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | inEditor=false | ||
3 | onBuild=false | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/.settings/org.eclipse.cdt.debug.core.prefs b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/.settings/org.eclipse.cdt.debug.core.prefs deleted file mode 100644 index 2adc7b1..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/.settings/org.eclipse.cdt.debug.core.prefs +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | org.eclipse.cdt.debug.core.toggleBreakpointModel=com.ti.ccstudio.debug.CCSBreakpointMarker | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/AM57xx_PRU.cmd b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/AM57xx_PRU.cmd deleted file mode 100755 index f15f640..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/AM57xx_PRU.cmd +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | /****************************************************************************/ | ||
2 | /* AM57xx_PRU.cmd */ | ||
3 | /* Copyright (c) 2015 Texas Instruments Incorporated */ | ||
4 | /* */ | ||
5 | /* Description: This file is a linker command file that can be used for */ | ||
6 | /* linking PRU programs built with the C compiler and */ | ||
7 | /* the resulting .out file on an AM57xx device. */ | ||
8 | /****************************************************************************/ | ||
9 | |||
10 | -cr /* Link using C conventions */ | ||
11 | |||
12 | /* Specify the System Memory Map */ | ||
13 | MEMORY | ||
14 | { | ||
15 | PAGE 0: | ||
16 | PRU_IMEM : org = 0x00000000 len = 0x00003000 /* 12kB PRU-ICSS1 Instruction RAM */ | ||
17 | |||
18 | PAGE 1: | ||
19 | |||
20 | /* RAM */ | ||
21 | |||
22 | PRU_DMEM_0_1 : org = 0x00000000 len = 0x00002000 CREGISTER=24 /* 8kB PRU Data RAM 0_1 */ | ||
23 | PRU_DMEM_1_0 : org = 0x00002000 len = 0x00002000 CREGISTER=25 /* 8kB PRU Data RAM 1_0 */ | ||
24 | PRU_SHAREDMEM : org = 0x00010000 len = 0x00008000 CREGISTER=28 /* 32kB Shared RAM */ | ||
25 | |||
26 | DDR : org = 0x80000000 len = 0x00000100 CREGISTER=31 | ||
27 | L3OCMC : org = 0x40000000 len = 0x00010000 CREGISTER=30 | ||
28 | |||
29 | |||
30 | /* Peripherals */ | ||
31 | |||
32 | PRU_CFG : org = 0x00026000 len = 0x00000120 CREGISTER=4 | ||
33 | PRU_ECAP : org = 0x00030000 len = 0x00000060 CREGISTER=3 | ||
34 | PRU_IEP : org = 0x0002E000 len = 0x0000031C CREGISTER=26 | ||
35 | PRU_INTC : org = 0x00020000 len = 0x00001504 CREGISTER=0 | ||
36 | PRU_UART : org = 0x00028000 len = 0x00000038 CREGISTER=7 | ||
37 | |||
38 | MCASP3_DMA : org = 0x46000000 len = 0x00000100 CREGISTER=8 | ||
39 | I2C3 : org = 0x48060000 len = 0x00000300 CREGISTER=5 | ||
40 | |||
41 | RSVD1 : org = 0x48040000 len = 0x0000005C CREGISTER=1 | ||
42 | RSVD2 : org = 0x4802A000 len = 0x000000D8 CREGISTER=2 | ||
43 | RSVD6 : org = 0x48030000 len = 0x000001A4 CREGISTER=6 | ||
44 | RSVD9 : org = 0x4A100000 len = 0x0000128C CREGISTER=9 | ||
45 | RSVD10 : org = 0x48318000 len = 0x00000100 CREGISTER=10 | ||
46 | RSVD11 : org = 0x48022000 len = 0x00000088 CREGISTER=11 | ||
47 | RSVD12 : org = 0x48024000 len = 0x00000088 CREGISTER=12 | ||
48 | RSVD13 : org = 0x48310000 len = 0x00000100 CREGISTER=13 | ||
49 | RSVD14 : org = 0x481CC000 len = 0x000001E8 CREGISTER=14 | ||
50 | RSVD15 : org = 0x481D0000 len = 0x000001E8 CREGISTER=15 | ||
51 | RSVD16 : org = 0x481A0000 len = 0x000001A4 CREGISTER=16 | ||
52 | RSVD17 : org = 0x4819C000 len = 0x000000D8 CREGISTER=17 | ||
53 | RSVD18 : org = 0x48300000 len = 0x000002C4 CREGISTER=18 | ||
54 | RSVD19 : org = 0x48302000 len = 0x000002C4 CREGISTER=19 | ||
55 | RSVD20 : org = 0x48304000 len = 0x000002C4 CREGISTER=20 | ||
56 | RSVD21 : org = 0x00032400 len = 0x00000100 CREGISTER=21 | ||
57 | RSVD22 : org = 0x480C8000 len = 0x00000140 CREGISTER=22 | ||
58 | RSVD23 : org = 0x480CA000 len = 0x00000880 CREGISTER=23 | ||
59 | RSVD27 : org = 0x00032000 len = 0x00000100 CREGISTER=27 | ||
60 | RSVD29 : org = 0x49000000 len = 0x00001098 CREGISTER=29 | ||
61 | } | ||
62 | |||
63 | /* Specify the sections allocation into memory */ | ||
64 | SECTIONS { | ||
65 | /* Forces _c_int00 to the start of PRU IRAM. Not necessary when loading | ||
66 | an ELF file, but useful when loading a binary */ | ||
67 | .text:_c_int00* > 0x0, PAGE 0 | ||
68 | |||
69 | .text > PRU_IMEM, PAGE 0 | ||
70 | .stack > PRU_DMEM_0_1, PAGE 1 | ||
71 | .bss > PRU_DMEM_0_1, PAGE 1 | ||
72 | .cio > PRU_DMEM_0_1, PAGE 1 | ||
73 | .data > PRU_DMEM_0_1, PAGE 1 | ||
74 | .switch > PRU_DMEM_0_1, PAGE 1 | ||
75 | .sysmem > PRU_DMEM_0_1, PAGE 1 | ||
76 | .cinit > PRU_DMEM_0_1, PAGE 1 | ||
77 | .rodata > PRU_DMEM_0_1, PAGE 1 | ||
78 | .rofardata > PRU_DMEM_0_1, PAGE 1 | ||
79 | .farbss > PRU_DMEM_0_1, PAGE 1 | ||
80 | .fardata > PRU_DMEM_0_1, PAGE 1 | ||
81 | |||
82 | .resource_table > PRU_DMEM_0_1, PAGE 1 | ||
83 | } | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/Makefile b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/Makefile deleted file mode 100644 index 15a5222..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/Makefile +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | # PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: | ||
2 | #(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
3 | #(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
4 | ifndef PRU_CGT | ||
5 | define ERROR_BODY | ||
6 | |||
7 | ************************************************************ | ||
8 | PRU_CGT environment variable is not set. Examples given: | ||
9 | (Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
10 | (Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
11 | ************************************************************ | ||
12 | |||
13 | endef | ||
14 | $(error $(ERROR_BODY)) | ||
15 | endif | ||
16 | |||
17 | MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
18 | CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH)))) | ||
19 | PROJ_NAME=$(CURRENT_DIR) | ||
20 | LINKER_COMMAND_FILE=./AM57xx_PRU.cmd | ||
21 | LIBS=--library=../../../lib/rpmsg_lib.lib | ||
22 | INCLUDE=--include_path=../../../include --include_path=../../../include/am571x | ||
23 | STACK_SIZE=0x100 | ||
24 | HEAP_SIZE=0x100 | ||
25 | GEN_DIR=gen | ||
26 | |||
27 | #Common compiler and linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
28 | CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_directory=$(GEN_DIR) --pp_directory=$(GEN_DIR) -ppd -ppa | ||
29 | #Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
30 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | ||
31 | |||
32 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | ||
33 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | ||
34 | SOURCES=$(wildcard *.c) | ||
35 | #Using .object instead of .obj in order to not conflict with the CCS build process | ||
36 | OBJECTS=$(patsubst %,$(GEN_DIR)/%,$(SOURCES:.c=.object)) | ||
37 | |||
38 | all: printStart $(TARGET) printEnd | ||
39 | |||
40 | printStart: | ||
41 | @echo '' | ||
42 | @echo '************************************************************' | ||
43 | @echo 'Building project: $(PROJ_NAME)' | ||
44 | |||
45 | printEnd: | ||
46 | @echo '' | ||
47 | @echo 'Finished building project: $(PROJ_NAME)' | ||
48 | @echo '************************************************************' | ||
49 | @echo '' | ||
50 | |||
51 | # Invokes the linker (-z flag) to make the .out file | ||
52 | $(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) | ||
53 | @echo '' | ||
54 | @echo 'Building target: $@' | ||
55 | @echo 'Invoking: PRU Linker' | ||
56 | $(PRU_CGT)/bin/clpru $(CFLAGS) -z -i$(PRU_CGT)/lib -i$(PRU_CGT)/include $(LFLAGS) -o $(TARGET) $(OBJECTS) -m$(MAP) $(LINKER_COMMAND_FILE) --library=libc.a $(LIBS) | ||
57 | @echo 'Finished building target: $@' | ||
58 | @echo '' | ||
59 | @echo 'Output files can be found in the "$(GEN_DIR)" directory' | ||
60 | |||
61 | # Invokes the compiler on all c files in the directory to create the object files | ||
62 | $(GEN_DIR)/%.object: %.c | ||
63 | @mkdir -p $(GEN_DIR) | ||
64 | @echo '' | ||
65 | @echo 'Building file: $<' | ||
66 | @echo 'Invoking: PRU Compiler' | ||
67 | $(PRU_CGT)/bin/clpru --include_path=$(PRU_CGT)/include $(INCLUDE) $(CFLAGS) -fe $@ $< | ||
68 | |||
69 | .PHONY: all clean | ||
70 | |||
71 | # Remove the $(GEN_DIR) directory | ||
72 | clean: | ||
73 | @echo '' | ||
74 | @echo '************************************************************' | ||
75 | @echo 'Cleaning project: $(PROJ_NAME)' | ||
76 | @echo '' | ||
77 | @echo 'Removing files in the "$(GEN_DIR)" directory' | ||
78 | @rm -rf $(GEN_DIR) | ||
79 | @echo '' | ||
80 | @echo 'Finished cleaning project: $(PROJ_NAME)' | ||
81 | @echo '************************************************************' | ||
82 | @echo '' | ||
83 | |||
84 | # Includes the dependencies that the compiler creates (-ppd and -ppa flags) | ||
85 | -include $(OBJECTS:%.object=%.pp) | ||
86 | |||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/main.c b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/main.c deleted file mode 100644 index 1e28d5d..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/main.c +++ /dev/null | |||
@@ -1,137 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | #include <stdint.h> | ||
35 | #include <stdio.h> | ||
36 | #include <pru_cfg.h> | ||
37 | #include <pru_intc.h> | ||
38 | #include <rsc_types.h> | ||
39 | #include <pru_virtqueue.h> | ||
40 | #include <pru_rpmsg.h> | ||
41 | #include <sys_mailbox.h> | ||
42 | #include "resource_table_1.h" | ||
43 | |||
44 | volatile register uint32_t __R31; | ||
45 | |||
46 | /* PRU1 is mailbox module user 2 */ | ||
47 | #define MB_USER 2 | ||
48 | /* CROSSBAR will map MBX3 user 2 event to Int Number 59 */ | ||
49 | #define MB_INT_NUMBER 59 | ||
50 | |||
51 | /* Host-1 Interrupt sets bit 31 in register R31 */ | ||
52 | #define HOST_INT 0x80000000 | ||
53 | |||
54 | /* The mailboxes used for RPMsg are defined in the Linux device tree | ||
55 | * PRU0 uses mailboxes 0 (From ARM) and 1 (To ARM) | ||
56 | * PRU1 uses mailboxes 2 (From ARM) and 3 (To ARM) | ||
57 | */ | ||
58 | #define MB_TO_ARM_HOST 3 | ||
59 | #define MB_FROM_ARM_HOST 2 | ||
60 | |||
61 | /* | ||
62 | * Using the name 'rpmsg-pru' will probe the rpmsg_pru driver found | ||
63 | * at linux-x.y.z/drivers/rpmsg/rpmsg_pru.c | ||
64 | */ | ||
65 | #define CHAN_NAME "rpmsg-pru" | ||
66 | #define CHAN_DESC "Channel 31" | ||
67 | #define CHAN_PORT 31 | ||
68 | |||
69 | /* | ||
70 | * Need to program the crossbar to bring the correct events into the | ||
71 | * PRUSS INTC | ||
72 | */ | ||
73 | #define CTRL_CORE_PRUSS1_IRQ_58_59 *(volatile unsigned int *) 0x4A0028FC | ||
74 | #define MAILBOX3_IRQ_USER2 243 | ||
75 | |||
76 | /* | ||
77 | * Used to make sure the Linux drivers are ready for RPMsg communication | ||
78 | * Found at linux-x.y.z/include/uapi/linux/virtio_config.h | ||
79 | */ | ||
80 | #define VIRTIO_CONFIG_S_DRIVER_OK 4 | ||
81 | |||
82 | uint8_t payload[RPMSG_BUF_SIZE]; | ||
83 | |||
84 | /* | ||
85 | * main.c | ||
86 | */ | ||
87 | void main() { | ||
88 | struct pru_rpmsg_transport transport; | ||
89 | uint16_t src, dst, len; | ||
90 | uint32_t regValue; | ||
91 | volatile uint8_t *status; | ||
92 | |||
93 | /* allow OCP master port access by the PRU so the PRU can read external memories */ | ||
94 | CT_CFG.SYSCFG_bit.STANDBY_INIT = 0; | ||
95 | |||
96 | /* need to program the CROSSBAR to map MBX3 User2 event to PRUSS INTC event 59 */ | ||
97 | regValue = CTRL_CORE_PRUSS1_IRQ_58_59; | ||
98 | regValue &= 0xFE00FFFF; | ||
99 | CTRL_CORE_PRUSS1_IRQ_58_59 = regValue | (MAILBOX3_IRQ_USER2 << 16); | ||
100 | |||
101 | /* clear the status of event MB_INT_NUMBER (the mailbox event) and enable the mailbox event */ | ||
102 | CT_INTC.SICR_bit.STATUS_CLR_INDEX = MB_INT_NUMBER; | ||
103 | MBX3.IRQ[MB_USER].ENABLE_SET |= 1 << (MB_FROM_ARM_HOST * 2); | ||
104 | |||
105 | /* Make sure the Linux drivers are ready for RPMsg communication */ | ||
106 | status = &resourceTable.rpmsg_vdev.status; | ||
107 | while (!(*status & VIRTIO_CONFIG_S_DRIVER_OK)); | ||
108 | |||
109 | /* Initialize pru_virtqueue corresponding to vring0 (PRU to ARM Host direction) */ | ||
110 | pru_virtqueue_init(&transport.virtqueue0, &resourceTable.rpmsg_vring0, &MBX3.MESSAGE[MB_TO_ARM_HOST], &MBX3.MESSAGE[MB_FROM_ARM_HOST]); | ||
111 | |||
112 | /* Initialize pru_virtqueue corresponding to vring1 (ARM Host to PRU direction) */ | ||
113 | pru_virtqueue_init(&transport.virtqueue1, &resourceTable.rpmsg_vring1, &MBX3.MESSAGE[MB_TO_ARM_HOST], &MBX3.MESSAGE[MB_FROM_ARM_HOST]); | ||
114 | |||
115 | /* Create the RPMsg channel between the PRU and ARM user space using the transport structure. */ | ||
116 | while(pru_rpmsg_channel(RPMSG_NS_CREATE, &transport, CHAN_NAME, CHAN_DESC, CHAN_PORT) != PRU_RPMSG_SUCCESS); | ||
117 | while(1){ | ||
118 | /* Check bit 31 of register R31 to see if the mailbox interrupt has occurred */ | ||
119 | if(__R31 & HOST_INT){ | ||
120 | /* Clear the mailbox interrupt */ | ||
121 | MBX3.IRQ[MB_USER].STATUS_CLR |= 1 << (MB_FROM_ARM_HOST * 2); | ||
122 | /* Clear the event status, event MB_INT_NUMBER corresponds to the mailbox interrupt */ | ||
123 | CT_INTC.SICR_bit.STATUS_CLR_INDEX = MB_INT_NUMBER; | ||
124 | /* Use a while loop to read all of the current messages in the mailbox */ | ||
125 | while(MBX3.MSGSTATUS_bit[MB_FROM_ARM_HOST].NBOFMSG > 0){ | ||
126 | /* Check to see if the message corresponds to a receive event for the PRU */ | ||
127 | if(MBX3.MESSAGE[MB_FROM_ARM_HOST] == 1){ | ||
128 | /* Receive the message */ | ||
129 | if(pru_rpmsg_receive(&transport, &src, &dst, payload, &len) == PRU_RPMSG_SUCCESS){ | ||
130 | /* Echo the message back to the same address from which we just received */ | ||
131 | pru_rpmsg_send(&transport, dst, src, payload, len); | ||
132 | } | ||
133 | } | ||
134 | } | ||
135 | } | ||
136 | } | ||
137 | } | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/resource_table_1.h b/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/resource_table_1.h deleted file mode 100755 index 116a7f5..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt1_1/resource_table_1.h +++ /dev/null | |||
@@ -1,148 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | /* | ||
35 | * ======== rsc_table_am335x_pru.h ======== | ||
36 | * | ||
37 | * Define the resource table entries for all PRU cores. This will be | ||
38 | * incorporated into corresponding base images, and used by the remoteproc | ||
39 | * on the host-side to allocated/reserve resources. | ||
40 | * | ||
41 | */ | ||
42 | |||
43 | |||
44 | #ifndef _RSC_TABLE_PRU_H_ | ||
45 | #define _RSC_TABLE_PRU_H_ | ||
46 | |||
47 | #include <stddef.h> | ||
48 | #include <rsc_types.h> | ||
49 | #include "pru_virtio_ids.h" | ||
50 | |||
51 | /* | ||
52 | * Sizes of the virtqueues (expressed in number of buffers supported, | ||
53 | * and must be power of 2) | ||
54 | */ | ||
55 | #define PRU_RPMSG_VQ0_SIZE 16 | ||
56 | #define PRU_RPMSG_VQ1_SIZE 16 | ||
57 | |||
58 | /* | ||
59 | * The feature bitmap for virtio rpmsg | ||
60 | */ | ||
61 | #define VIRTIO_RPMSG_F_NS 0 //name service notifications | ||
62 | |||
63 | /* This firmware supports name service notifications as one of its features */ | ||
64 | #define RPMSG_PRU_C0_FEATURES (1 << VIRTIO_RPMSG_F_NS) | ||
65 | |||
66 | /* Definition for unused interrupts */ | ||
67 | #define HOST_UNUSED 255 | ||
68 | |||
69 | /* Mapping sysevts to a channel. Each pair contains a sysevt, channel | ||
70 | * Mapping event 60 (Mbox0 mailbox interrupt for pru0) to channel 0 | ||
71 | * */ | ||
72 | struct ch_map pru_intc_map[] = { {59, 1}, | ||
73 | }; | ||
74 | |||
75 | struct my_resource_table { | ||
76 | struct resource_table base; | ||
77 | |||
78 | uint32_t offset[2]; /* Should match 'num' in actual definition */ | ||
79 | |||
80 | /* rpmsg vdev entry */ | ||
81 | struct fw_rsc_vdev rpmsg_vdev; | ||
82 | struct fw_rsc_vdev_vring rpmsg_vring0; | ||
83 | struct fw_rsc_vdev_vring rpmsg_vring1; | ||
84 | |||
85 | /* intc definition */ | ||
86 | struct fw_rsc_custom pru_ints; | ||
87 | }; | ||
88 | |||
89 | #pragma DATA_SECTION(resourceTable, ".resource_table") | ||
90 | #pragma RETAIN(resourceTable) | ||
91 | struct my_resource_table resourceTable = { | ||
92 | 1, /* Resource table version: only version 1 is supported by the current driver */ | ||
93 | 2, /* number of entries in the table */ | ||
94 | 0, 0, /* reserved, must be zero */ | ||
95 | /* offsets to entries */ | ||
96 | { | ||
97 | offsetof(struct my_resource_table, rpmsg_vdev), | ||
98 | offsetof(struct my_resource_table, pru_ints), | ||
99 | }, | ||
100 | |||
101 | /* rpmsg vdev entry */ | ||
102 | { | ||
103 | (uint32_t)TYPE_VDEV, //type | ||
104 | (uint32_t)VIRTIO_ID_RPMSG, //id | ||
105 | (uint32_t)0, //notifyid | ||
106 | (uint32_t)RPMSG_PRU_C0_FEATURES, //dfeatures | ||
107 | (uint32_t)0, //gfeatures | ||
108 | (uint32_t)0, //config_len | ||
109 | (uint8_t)0, //status | ||
110 | (uint8_t)2, //num_of_vrings, only two is supported | ||
111 | { (uint8_t)0, (uint8_t)0 }, //reserved | ||
112 | /* no config data */ | ||
113 | }, | ||
114 | /* the two vrings */ | ||
115 | { | ||
116 | 0, //da, will be populated by host, can't pass it in | ||
117 | 16, //align (bytes), | ||
118 | PRU_RPMSG_VQ0_SIZE, //num of descriptors | ||
119 | 0, //notifyid, will be populated, can't pass right now | ||
120 | 0 //reserved | ||
121 | }, | ||
122 | { | ||
123 | 0, //da, will be populated by host, can't pass it in | ||
124 | 16, //align (bytes), | ||
125 | PRU_RPMSG_VQ1_SIZE, //num of descriptors | ||
126 | 0, //notifyid, will be populated, can't pass right now | ||
127 | 0 //reserved | ||
128 | }, | ||
129 | |||
130 | { | ||
131 | TYPE_CUSTOM, TYPE_PRU_INTS, | ||
132 | sizeof(struct fw_rsc_custom_ints), | ||
133 | { /* PRU_INTS version */ | ||
134 | 0x0000, | ||
135 | /* Channel-to-host mapping, 255 for unused | ||
136 | * Mapping Channel-1 to Host-1 (PRU0/1 R31 bit 31) | ||
137 | * */ | ||
138 | HOST_UNUSED, 1, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, | ||
139 | HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, | ||
140 | /* Number of evts being mapped to channels */ | ||
141 | (sizeof(pru_intc_map) / sizeof(struct ch_map)), | ||
142 | /* Pointer to the structure containing mapped events */ | ||
143 | pru_intc_map, | ||
144 | }, | ||
145 | }, | ||
146 | }; | ||
147 | |||
148 | #endif /* _RSC_TABLE_PRU_H_ */ | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/.ccsproject b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/.ccsproject deleted file mode 100644 index b169227..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/.ccsproject +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" ?> | ||
2 | <?ccsproject version="1.0"?> | ||
3 | <projectOptions> | ||
4 | <deviceVariant value="TMS192C2026.AM3359.BeagleBone_Black"/> | ||
5 | <deviceFamily value="PRU"/> | ||
6 | <deviceEndianness value="little"/> | ||
7 | <codegenToolVersion value="2.1.1"/> | ||
8 | <isElfFormat value="true"/> | ||
9 | <linkerCommandFile value="AM335x.cmd"/> | ||
10 | <rts value="libc.a"/> | ||
11 | <createSlaveProjects value=""/> | ||
12 | <templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/> | ||
13 | <isTargetManual value="false"/> | ||
14 | </projectOptions> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/.cproject b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/.cproject deleted file mode 100644 index f1f5e5d..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/.cproject +++ /dev/null | |||
@@ -1,188 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
3 | <storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings"> | ||
4 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Debug.1357205529"> | ||
5 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.1357205529" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
6 | <externalSettings/> | ||
7 | <extensions> | ||
8 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
9 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
10 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
11 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
12 | </extensions> | ||
13 | </storageModule> | ||
14 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
15 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.1357205529" name="Debug" parent="com.ti.ccstudio.buildDefinitions.PRU.Debug" postbuildStep="" prebuildStep=""> | ||
16 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Debug.1357205529." name="/" resourcePath=""> | ||
17 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain.1268970296" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.1419007838"> | ||
18 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.2130732577" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
19 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
20 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
21 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
22 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
23 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
24 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
25 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
26 | </option> | ||
27 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1667928456" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
28 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug.411852411" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug"/> | ||
29 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug.960007735" name="GNU Make.Debug" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug"/> | ||
30 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug.336456757" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug"> | ||
31 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.46072590" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
32 | <listOptionValue builtIn="false" value="pru0"/> | ||
33 | <listOptionValue builtIn="false" value="am4379"/> | ||
34 | <listOptionValue builtIn="false" value="icss1"/> | ||
35 | <listOptionValue builtIn="false" value="am5718"/> | ||
36 | </option> | ||
37 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.1982484243" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
38 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.1027358137" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
39 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.688134649" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
40 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
41 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
42 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
43 | </option> | ||
44 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.1121317091" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/> | ||
45 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.1052015973" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
46 | <listOptionValue builtIn="false" value="225"/> | ||
47 | </option> | ||
48 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.2087305568" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
49 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.2099835416" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
50 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.1984559835" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
51 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.1267154417" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
52 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.1859979299" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
53 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.1885977388" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
54 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.634145211" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
55 | </tool> | ||
56 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.1419007838" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug"> | ||
57 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.1718137236" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
58 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.259509436" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
59 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.1256419707" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
60 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.886444992" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
61 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.2138865681" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
62 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
63 | <listOptionValue builtIn="false" value=""../../../../lib/rpmsg_lib.lib""/> | ||
64 | </option> | ||
65 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.1743635368" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
66 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
67 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
68 | </option> | ||
69 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.897994523" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
70 | <listOptionValue builtIn="false" value="ICSS1_PRU_CORE=1"/> | ||
71 | </option> | ||
72 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER.1754835979" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
73 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.736164574" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
74 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.997102714" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
75 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.1396112421" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
76 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.1719485269" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
77 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.1283165753" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
78 | </tool> | ||
79 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.760565022" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"/> | ||
80 | </toolChain> | ||
81 | </folderInfo> | ||
82 | <sourceEntries> | ||
83 | <entry excluding="AM437x.cmd|AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
84 | </sourceEntries> | ||
85 | </configuration> | ||
86 | </storageModule> | ||
87 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
88 | </cconfiguration> | ||
89 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Release.1954355010"> | ||
90 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1954355010" moduleId="org.eclipse.cdt.core.settings" name="Release"> | ||
91 | <externalSettings/> | ||
92 | <extensions> | ||
93 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
94 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
95 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
96 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
97 | </extensions> | ||
98 | </storageModule> | ||
99 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
100 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1954355010" name="Release" parent="com.ti.ccstudio.buildDefinitions.PRU.Release" postbuildStep="" prebuildStep=""> | ||
101 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Release.1954355010." name="/" resourcePath=""> | ||
102 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain.204452764" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.331436806"> | ||
103 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1539842543" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
104 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
105 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
106 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
107 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
108 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
109 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
110 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
111 | </option> | ||
112 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.673696786" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
113 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease.39811443" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease"/> | ||
114 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease.51456855" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease"/> | ||
115 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease.215648304" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease"> | ||
116 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.2136915848" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
117 | <listOptionValue builtIn="false" value="pru0"/> | ||
118 | <listOptionValue builtIn="false" value="am4379"/> | ||
119 | <listOptionValue builtIn="false" value="icss1"/> | ||
120 | <listOptionValue builtIn="false" value="am5718"/> | ||
121 | </option> | ||
122 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.1210412113" name="Silicon version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
123 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.1811688071" name="Enables use of the hardware MAC available on some PRU cores (--hardware_mac)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
124 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.1481785974" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
125 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
126 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
127 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
128 | </option> | ||
129 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.1604314386" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
130 | <listOptionValue builtIn="false" value="225"/> | ||
131 | </option> | ||
132 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.1349575554" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
133 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.1023236520" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
134 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.1138355231" name="Specify the endianness of both code and data [See 'General' page to edit] (--endian)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
135 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.449342945" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
136 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.1471440011" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
137 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.117912444" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
138 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.544918630" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
139 | </tool> | ||
140 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.331436806" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease"> | ||
141 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.1936311912" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
142 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.134007" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
143 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.1850420688" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
144 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.2013001949" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
145 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.964357755" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
146 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
147 | <listOptionValue builtIn="false" value=""../../../../lib/rpmsg_lib.lib""/> | ||
148 | </option> | ||
149 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.692814542" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
150 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
151 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
152 | </option> | ||
153 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.648107517" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
154 | <listOptionValue builtIn="false" value="ICSS1_PRU_CORE=1"/> | ||
155 | </option> | ||
156 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER.217272637" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
157 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.901136990" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
158 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.1205413299" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
159 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.544144833" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
160 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.1457103431" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
161 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.1838488885" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
162 | </tool> | ||
163 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.528951768" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"/> | ||
164 | </toolChain> | ||
165 | </folderInfo> | ||
166 | <sourceEntries> | ||
167 | <entry excluding="AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
168 | </sourceEntries> | ||
169 | </configuration> | ||
170 | </storageModule> | ||
171 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
172 | </cconfiguration> | ||
173 | </storageModule> | ||
174 | <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> | ||
175 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
176 | <project id="PRU_RPMsg_Echo_Interrupt0.com.ti.ccstudio.buildDefinitions.PRU.ProjectType.1477410699" name="PRU" projectType="com.ti.ccstudio.buildDefinitions.PRU.ProjectType"/> | ||
177 | </storageModule> | ||
178 | <storageModule moduleId="scannerConfiguration"/> | ||
179 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"> | ||
180 | <project-mappings> | ||
181 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/> | ||
182 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
183 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
184 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
185 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
186 | </project-mappings> | ||
187 | </storageModule> | ||
188 | </cproject> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/.project b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/.project deleted file mode 100644 index 9f49e54..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/.project +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>PRU_RPMsg_Echo_Interrupt2_0</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <arguments> | ||
11 | </arguments> | ||
12 | </buildCommand> | ||
13 | <buildCommand> | ||
14 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
15 | <triggers>full,incremental,</triggers> | ||
16 | <arguments> | ||
17 | </arguments> | ||
18 | </buildCommand> | ||
19 | </buildSpec> | ||
20 | <natures> | ||
21 | <nature>com.ti.ccstudio.core.ccsNature</nature> | ||
22 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
23 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
24 | <nature>org.eclipse.cdt.core.ccnature</nature> | ||
25 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
26 | </natures> | ||
27 | </projectDescription> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/.settings/org.eclipse.cdt.codan.core.prefs b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/.settings/org.eclipse.cdt.codan.core.prefs deleted file mode 100644 index f653028..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/.settings/org.eclipse.cdt.codan.core.prefs +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | inEditor=false | ||
3 | onBuild=false | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/.settings/org.eclipse.cdt.debug.core.prefs b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/.settings/org.eclipse.cdt.debug.core.prefs deleted file mode 100644 index 2adc7b1..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/.settings/org.eclipse.cdt.debug.core.prefs +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | org.eclipse.cdt.debug.core.toggleBreakpointModel=com.ti.ccstudio.debug.CCSBreakpointMarker | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/AM57xx_PRU.cmd b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/AM57xx_PRU.cmd deleted file mode 100755 index f15f640..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/AM57xx_PRU.cmd +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | /****************************************************************************/ | ||
2 | /* AM57xx_PRU.cmd */ | ||
3 | /* Copyright (c) 2015 Texas Instruments Incorporated */ | ||
4 | /* */ | ||
5 | /* Description: This file is a linker command file that can be used for */ | ||
6 | /* linking PRU programs built with the C compiler and */ | ||
7 | /* the resulting .out file on an AM57xx device. */ | ||
8 | /****************************************************************************/ | ||
9 | |||
10 | -cr /* Link using C conventions */ | ||
11 | |||
12 | /* Specify the System Memory Map */ | ||
13 | MEMORY | ||
14 | { | ||
15 | PAGE 0: | ||
16 | PRU_IMEM : org = 0x00000000 len = 0x00003000 /* 12kB PRU-ICSS1 Instruction RAM */ | ||
17 | |||
18 | PAGE 1: | ||
19 | |||
20 | /* RAM */ | ||
21 | |||
22 | PRU_DMEM_0_1 : org = 0x00000000 len = 0x00002000 CREGISTER=24 /* 8kB PRU Data RAM 0_1 */ | ||
23 | PRU_DMEM_1_0 : org = 0x00002000 len = 0x00002000 CREGISTER=25 /* 8kB PRU Data RAM 1_0 */ | ||
24 | PRU_SHAREDMEM : org = 0x00010000 len = 0x00008000 CREGISTER=28 /* 32kB Shared RAM */ | ||
25 | |||
26 | DDR : org = 0x80000000 len = 0x00000100 CREGISTER=31 | ||
27 | L3OCMC : org = 0x40000000 len = 0x00010000 CREGISTER=30 | ||
28 | |||
29 | |||
30 | /* Peripherals */ | ||
31 | |||
32 | PRU_CFG : org = 0x00026000 len = 0x00000120 CREGISTER=4 | ||
33 | PRU_ECAP : org = 0x00030000 len = 0x00000060 CREGISTER=3 | ||
34 | PRU_IEP : org = 0x0002E000 len = 0x0000031C CREGISTER=26 | ||
35 | PRU_INTC : org = 0x00020000 len = 0x00001504 CREGISTER=0 | ||
36 | PRU_UART : org = 0x00028000 len = 0x00000038 CREGISTER=7 | ||
37 | |||
38 | MCASP3_DMA : org = 0x46000000 len = 0x00000100 CREGISTER=8 | ||
39 | I2C3 : org = 0x48060000 len = 0x00000300 CREGISTER=5 | ||
40 | |||
41 | RSVD1 : org = 0x48040000 len = 0x0000005C CREGISTER=1 | ||
42 | RSVD2 : org = 0x4802A000 len = 0x000000D8 CREGISTER=2 | ||
43 | RSVD6 : org = 0x48030000 len = 0x000001A4 CREGISTER=6 | ||
44 | RSVD9 : org = 0x4A100000 len = 0x0000128C CREGISTER=9 | ||
45 | RSVD10 : org = 0x48318000 len = 0x00000100 CREGISTER=10 | ||
46 | RSVD11 : org = 0x48022000 len = 0x00000088 CREGISTER=11 | ||
47 | RSVD12 : org = 0x48024000 len = 0x00000088 CREGISTER=12 | ||
48 | RSVD13 : org = 0x48310000 len = 0x00000100 CREGISTER=13 | ||
49 | RSVD14 : org = 0x481CC000 len = 0x000001E8 CREGISTER=14 | ||
50 | RSVD15 : org = 0x481D0000 len = 0x000001E8 CREGISTER=15 | ||
51 | RSVD16 : org = 0x481A0000 len = 0x000001A4 CREGISTER=16 | ||
52 | RSVD17 : org = 0x4819C000 len = 0x000000D8 CREGISTER=17 | ||
53 | RSVD18 : org = 0x48300000 len = 0x000002C4 CREGISTER=18 | ||
54 | RSVD19 : org = 0x48302000 len = 0x000002C4 CREGISTER=19 | ||
55 | RSVD20 : org = 0x48304000 len = 0x000002C4 CREGISTER=20 | ||
56 | RSVD21 : org = 0x00032400 len = 0x00000100 CREGISTER=21 | ||
57 | RSVD22 : org = 0x480C8000 len = 0x00000140 CREGISTER=22 | ||
58 | RSVD23 : org = 0x480CA000 len = 0x00000880 CREGISTER=23 | ||
59 | RSVD27 : org = 0x00032000 len = 0x00000100 CREGISTER=27 | ||
60 | RSVD29 : org = 0x49000000 len = 0x00001098 CREGISTER=29 | ||
61 | } | ||
62 | |||
63 | /* Specify the sections allocation into memory */ | ||
64 | SECTIONS { | ||
65 | /* Forces _c_int00 to the start of PRU IRAM. Not necessary when loading | ||
66 | an ELF file, but useful when loading a binary */ | ||
67 | .text:_c_int00* > 0x0, PAGE 0 | ||
68 | |||
69 | .text > PRU_IMEM, PAGE 0 | ||
70 | .stack > PRU_DMEM_0_1, PAGE 1 | ||
71 | .bss > PRU_DMEM_0_1, PAGE 1 | ||
72 | .cio > PRU_DMEM_0_1, PAGE 1 | ||
73 | .data > PRU_DMEM_0_1, PAGE 1 | ||
74 | .switch > PRU_DMEM_0_1, PAGE 1 | ||
75 | .sysmem > PRU_DMEM_0_1, PAGE 1 | ||
76 | .cinit > PRU_DMEM_0_1, PAGE 1 | ||
77 | .rodata > PRU_DMEM_0_1, PAGE 1 | ||
78 | .rofardata > PRU_DMEM_0_1, PAGE 1 | ||
79 | .farbss > PRU_DMEM_0_1, PAGE 1 | ||
80 | .fardata > PRU_DMEM_0_1, PAGE 1 | ||
81 | |||
82 | .resource_table > PRU_DMEM_0_1, PAGE 1 | ||
83 | } | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/Makefile b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/Makefile deleted file mode 100644 index 15a5222..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/Makefile +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | # PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: | ||
2 | #(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
3 | #(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
4 | ifndef PRU_CGT | ||
5 | define ERROR_BODY | ||
6 | |||
7 | ************************************************************ | ||
8 | PRU_CGT environment variable is not set. Examples given: | ||
9 | (Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
10 | (Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
11 | ************************************************************ | ||
12 | |||
13 | endef | ||
14 | $(error $(ERROR_BODY)) | ||
15 | endif | ||
16 | |||
17 | MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
18 | CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH)))) | ||
19 | PROJ_NAME=$(CURRENT_DIR) | ||
20 | LINKER_COMMAND_FILE=./AM57xx_PRU.cmd | ||
21 | LIBS=--library=../../../lib/rpmsg_lib.lib | ||
22 | INCLUDE=--include_path=../../../include --include_path=../../../include/am571x | ||
23 | STACK_SIZE=0x100 | ||
24 | HEAP_SIZE=0x100 | ||
25 | GEN_DIR=gen | ||
26 | |||
27 | #Common compiler and linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
28 | CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_directory=$(GEN_DIR) --pp_directory=$(GEN_DIR) -ppd -ppa | ||
29 | #Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
30 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | ||
31 | |||
32 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | ||
33 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | ||
34 | SOURCES=$(wildcard *.c) | ||
35 | #Using .object instead of .obj in order to not conflict with the CCS build process | ||
36 | OBJECTS=$(patsubst %,$(GEN_DIR)/%,$(SOURCES:.c=.object)) | ||
37 | |||
38 | all: printStart $(TARGET) printEnd | ||
39 | |||
40 | printStart: | ||
41 | @echo '' | ||
42 | @echo '************************************************************' | ||
43 | @echo 'Building project: $(PROJ_NAME)' | ||
44 | |||
45 | printEnd: | ||
46 | @echo '' | ||
47 | @echo 'Finished building project: $(PROJ_NAME)' | ||
48 | @echo '************************************************************' | ||
49 | @echo '' | ||
50 | |||
51 | # Invokes the linker (-z flag) to make the .out file | ||
52 | $(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) | ||
53 | @echo '' | ||
54 | @echo 'Building target: $@' | ||
55 | @echo 'Invoking: PRU Linker' | ||
56 | $(PRU_CGT)/bin/clpru $(CFLAGS) -z -i$(PRU_CGT)/lib -i$(PRU_CGT)/include $(LFLAGS) -o $(TARGET) $(OBJECTS) -m$(MAP) $(LINKER_COMMAND_FILE) --library=libc.a $(LIBS) | ||
57 | @echo 'Finished building target: $@' | ||
58 | @echo '' | ||
59 | @echo 'Output files can be found in the "$(GEN_DIR)" directory' | ||
60 | |||
61 | # Invokes the compiler on all c files in the directory to create the object files | ||
62 | $(GEN_DIR)/%.object: %.c | ||
63 | @mkdir -p $(GEN_DIR) | ||
64 | @echo '' | ||
65 | @echo 'Building file: $<' | ||
66 | @echo 'Invoking: PRU Compiler' | ||
67 | $(PRU_CGT)/bin/clpru --include_path=$(PRU_CGT)/include $(INCLUDE) $(CFLAGS) -fe $@ $< | ||
68 | |||
69 | .PHONY: all clean | ||
70 | |||
71 | # Remove the $(GEN_DIR) directory | ||
72 | clean: | ||
73 | @echo '' | ||
74 | @echo '************************************************************' | ||
75 | @echo 'Cleaning project: $(PROJ_NAME)' | ||
76 | @echo '' | ||
77 | @echo 'Removing files in the "$(GEN_DIR)" directory' | ||
78 | @rm -rf $(GEN_DIR) | ||
79 | @echo '' | ||
80 | @echo 'Finished cleaning project: $(PROJ_NAME)' | ||
81 | @echo '************************************************************' | ||
82 | @echo '' | ||
83 | |||
84 | # Includes the dependencies that the compiler creates (-ppd and -ppa flags) | ||
85 | -include $(OBJECTS:%.object=%.pp) | ||
86 | |||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/main.c b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/main.c deleted file mode 100644 index 405515a..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/main.c +++ /dev/null | |||
@@ -1,137 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | #include <stdint.h> | ||
35 | #include <stdio.h> | ||
36 | #include <pru_cfg.h> | ||
37 | #include <pru_intc.h> | ||
38 | #include <rsc_types.h> | ||
39 | #include <pru_virtqueue.h> | ||
40 | #include <pru_rpmsg.h> | ||
41 | #include <sys_mailbox.h> | ||
42 | #include "resource_table_0.h" | ||
43 | |||
44 | volatile register uint32_t __R31; | ||
45 | |||
46 | /* PRU0 is mailbox module user 1 */ | ||
47 | #define MB_USER 1 | ||
48 | /* CROSSBAR will map MBX4 user 1 event to Int Number 60 */ | ||
49 | #define MB_INT_NUMBER 60 | ||
50 | |||
51 | /* Host-0 Interrupt sets bit 30 in register R31 */ | ||
52 | #define HOST_INT 0x40000000 | ||
53 | |||
54 | /* The mailboxes used for RPMsg are defined in the Linux device tree | ||
55 | * PRU0 uses mailboxes 0 (From ARM) and 1 (To ARM) | ||
56 | * PRU1 uses mailboxes 2 (From ARM) and 3 (To ARM) | ||
57 | */ | ||
58 | #define MB_TO_ARM_HOST 1 | ||
59 | #define MB_FROM_ARM_HOST 0 | ||
60 | |||
61 | /* | ||
62 | * Using the name 'rpmsg-pru' will probe the rpmsg_pru driver found | ||
63 | * at linux-x.y.z/drivers/rpmsg/rpmsg_pru.c | ||
64 | */ | ||
65 | #define CHAN_NAME "rpmsg-pru" | ||
66 | #define CHAN_DESC "Channel 32" | ||
67 | #define CHAN_PORT 32 | ||
68 | |||
69 | /* | ||
70 | * Need to program the crossbar to bring the correct events into the | ||
71 | * PRUSS INTC | ||
72 | */ | ||
73 | #define CTRL_CORE_PRUSS2_IRQ_60_61 *(volatile unsigned int *) 0x4A002940 | ||
74 | #define MAILBOX4_IRQ_USER1 246 | ||
75 | |||
76 | /* | ||
77 | * Used to make sure the Linux drivers are ready for RPMsg communication | ||
78 | * Found at linux-x.y.z/include/uapi/linux/virtio_config.h | ||
79 | */ | ||
80 | #define VIRTIO_CONFIG_S_DRIVER_OK 4 | ||
81 | |||
82 | uint8_t payload[RPMSG_BUF_SIZE]; | ||
83 | |||
84 | /* | ||
85 | * main.c | ||
86 | */ | ||
87 | void main() { | ||
88 | struct pru_rpmsg_transport transport; | ||
89 | uint16_t src, dst, len; | ||
90 | uint32_t regValue; | ||
91 | volatile uint8_t *status; | ||
92 | |||
93 | /* allow OCP master port access by the PRU so the PRU can read external memories */ | ||
94 | CT_CFG.SYSCFG_bit.STANDBY_INIT = 0; | ||
95 | |||
96 | /* need to program the CROSSBAR to map MBX4 User1 event to PRUSS INTC event 60 */ | ||
97 | regValue = CTRL_CORE_PRUSS2_IRQ_60_61; | ||
98 | regValue &= 0xFFFFFE00; | ||
99 | CTRL_CORE_PRUSS2_IRQ_60_61 = regValue | MAILBOX4_IRQ_USER1; | ||
100 | |||
101 | /* clear the status of event MB_INT_NUMBER (the mailbox event) and enable the mailbox event */ | ||
102 | CT_INTC.SICR_bit.STATUS_CLR_INDEX = MB_INT_NUMBER; | ||
103 | MBX4.IRQ[MB_USER].ENABLE_SET |= 1 << (MB_FROM_ARM_HOST * 2); | ||
104 | |||
105 | /* Make sure the Linux drivers are ready for RPMsg communication */ | ||
106 | status = &resourceTable.rpmsg_vdev.status; | ||
107 | while (!(*status & VIRTIO_CONFIG_S_DRIVER_OK)); | ||
108 | |||
109 | /* Initialize pru_virtqueue corresponding to vring0 (PRU to ARM Host direction) */ | ||
110 | pru_virtqueue_init(&transport.virtqueue0, &resourceTable.rpmsg_vring0, &MBX4.MESSAGE[MB_TO_ARM_HOST], &MBX4.MESSAGE[MB_FROM_ARM_HOST]); | ||
111 | |||
112 | /* Initialize pru_virtqueue corresponding to vring1 (ARM Host to PRU direction) */ | ||
113 | pru_virtqueue_init(&transport.virtqueue1, &resourceTable.rpmsg_vring1, &MBX4.MESSAGE[MB_TO_ARM_HOST], &MBX4.MESSAGE[MB_FROM_ARM_HOST]); | ||
114 | |||
115 | /* Create the RPMsg channel between the PRU and ARM user space using the transport structure. */ | ||
116 | while(pru_rpmsg_channel(RPMSG_NS_CREATE, &transport, CHAN_NAME, CHAN_DESC, CHAN_PORT) != PRU_RPMSG_SUCCESS); | ||
117 | while(1){ | ||
118 | /* Check bit 30 of register R31 to see if the mailbox interrupt has occurred */ | ||
119 | if(__R31 & HOST_INT){ | ||
120 | /* Clear the mailbox interrupt */ | ||
121 | MBX4.IRQ[MB_USER].STATUS_CLR |= 1 << (MB_FROM_ARM_HOST * 2); | ||
122 | /* Clear the event status, event MB_INT_NUMBER corresponds to the mailbox interrupt */ | ||
123 | CT_INTC.SICR_bit.STATUS_CLR_INDEX = MB_INT_NUMBER; | ||
124 | /* Use a while loop to read all of the current messages in the mailbox */ | ||
125 | while(MBX4.MSGSTATUS_bit[MB_FROM_ARM_HOST].NBOFMSG > 0){ | ||
126 | /* Check to see if the message corresponds to a receive event for the PRU */ | ||
127 | if(MBX4.MESSAGE[MB_FROM_ARM_HOST] == 1){ | ||
128 | /* Receive the message */ | ||
129 | if(pru_rpmsg_receive(&transport, &src, &dst, payload, &len) == PRU_RPMSG_SUCCESS){ | ||
130 | /* Echo the message back to the same address from which we just received */ | ||
131 | pru_rpmsg_send(&transport, dst, src, payload, len); | ||
132 | } | ||
133 | } | ||
134 | } | ||
135 | } | ||
136 | } | ||
137 | } | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/resource_table_0.h b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/resource_table_0.h deleted file mode 100755 index 177b7c1..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_0/resource_table_0.h +++ /dev/null | |||
@@ -1,148 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | /* | ||
35 | * ======== rsc_table_am335x_pru.h ======== | ||
36 | * | ||
37 | * Define the resource table entries for all PRU cores. This will be | ||
38 | * incorporated into corresponding base images, and used by the remoteproc | ||
39 | * on the host-side to allocated/reserve resources. | ||
40 | * | ||
41 | */ | ||
42 | |||
43 | |||
44 | #ifndef _RSC_TABLE_PRU_H_ | ||
45 | #define _RSC_TABLE_PRU_H_ | ||
46 | |||
47 | #include <stddef.h> | ||
48 | #include <rsc_types.h> | ||
49 | #include "pru_virtio_ids.h" | ||
50 | |||
51 | /* | ||
52 | * Sizes of the virtqueues (expressed in number of buffers supported, | ||
53 | * and must be power of 2) | ||
54 | */ | ||
55 | #define PRU_RPMSG_VQ0_SIZE 16 | ||
56 | #define PRU_RPMSG_VQ1_SIZE 16 | ||
57 | |||
58 | /* | ||
59 | * The feature bitmap for virtio rpmsg | ||
60 | */ | ||
61 | #define VIRTIO_RPMSG_F_NS 0 //name service notifications | ||
62 | |||
63 | /* This firmware supports name service notifications as one of its features */ | ||
64 | #define RPMSG_PRU_C0_FEATURES (1 << VIRTIO_RPMSG_F_NS) | ||
65 | |||
66 | /* Definition for unused interrupts */ | ||
67 | #define HOST_UNUSED 255 | ||
68 | |||
69 | /* Mapping sysevts to a channel. Each pair contains a sysevt, channel | ||
70 | * Mapping event 60 (Mbox0 mailbox interrupt for pru0) to channel 0 | ||
71 | * */ | ||
72 | struct ch_map pru_intc_map[] = { {60, 0}, | ||
73 | }; | ||
74 | |||
75 | struct my_resource_table { | ||
76 | struct resource_table base; | ||
77 | |||
78 | uint32_t offset[2]; /* Should match 'num' in actual definition */ | ||
79 | |||
80 | /* rpmsg vdev entry */ | ||
81 | struct fw_rsc_vdev rpmsg_vdev; | ||
82 | struct fw_rsc_vdev_vring rpmsg_vring0; | ||
83 | struct fw_rsc_vdev_vring rpmsg_vring1; | ||
84 | |||
85 | /* intc definition */ | ||
86 | struct fw_rsc_custom pru_ints; | ||
87 | }; | ||
88 | |||
89 | #pragma DATA_SECTION(resourceTable, ".resource_table") | ||
90 | #pragma RETAIN(resourceTable) | ||
91 | struct my_resource_table resourceTable = { | ||
92 | 1, /* Resource table version: only version 1 is supported by the current driver */ | ||
93 | 2, /* number of entries in the table */ | ||
94 | 0, 0, /* reserved, must be zero */ | ||
95 | /* offsets to entries */ | ||
96 | { | ||
97 | offsetof(struct my_resource_table, rpmsg_vdev), | ||
98 | offsetof(struct my_resource_table, pru_ints), | ||
99 | }, | ||
100 | |||
101 | /* rpmsg vdev entry */ | ||
102 | { | ||
103 | (uint32_t)TYPE_VDEV, //type | ||
104 | (uint32_t)VIRTIO_ID_RPMSG, //id | ||
105 | (uint32_t)0, //notifyid | ||
106 | (uint32_t)RPMSG_PRU_C0_FEATURES, //dfeatures | ||
107 | (uint32_t)0, //gfeatures | ||
108 | (uint32_t)0, //config_len | ||
109 | (uint8_t)0, //status | ||
110 | (uint8_t)2, //num_of_vrings, only two is supported | ||
111 | { (uint8_t)0, (uint8_t)0 }, //reserved | ||
112 | /* no config data */ | ||
113 | }, | ||
114 | /* the two vrings */ | ||
115 | { | ||
116 | 0, //da, will be populated by host, can't pass it in | ||
117 | 16, //align (bytes), | ||
118 | PRU_RPMSG_VQ0_SIZE, //num of descriptors | ||
119 | 0, //notifyid, will be populated, can't pass right now | ||
120 | 0 //reserved | ||
121 | }, | ||
122 | { | ||
123 | 0, //da, will be populated by host, can't pass it in | ||
124 | 16, //align (bytes), | ||
125 | PRU_RPMSG_VQ1_SIZE, //num of descriptors | ||
126 | 0, //notifyid, will be populated, can't pass right now | ||
127 | 0 //reserved | ||
128 | }, | ||
129 | |||
130 | { | ||
131 | TYPE_CUSTOM, TYPE_PRU_INTS, | ||
132 | sizeof(struct fw_rsc_custom_ints), | ||
133 | { /* PRU_INTS version */ | ||
134 | 0x0000, | ||
135 | /* Channel-to-host mapping, 255 for unused | ||
136 | * Mapping Channel-0 to Host-0 (PRU0/1 R31 bit 30) | ||
137 | * */ | ||
138 | 0, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, | ||
139 | HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, | ||
140 | /* Number of evts being mapped to channels */ | ||
141 | (sizeof(pru_intc_map) / sizeof(struct ch_map)), | ||
142 | /* Pointer to the structure containing mapped events */ | ||
143 | pru_intc_map, | ||
144 | }, | ||
145 | }, | ||
146 | }; | ||
147 | |||
148 | #endif /* _RSC_TABLE_PRU_H_ */ | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/.ccsproject b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/.ccsproject deleted file mode 100644 index b169227..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/.ccsproject +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" ?> | ||
2 | <?ccsproject version="1.0"?> | ||
3 | <projectOptions> | ||
4 | <deviceVariant value="TMS192C2026.AM3359.BeagleBone_Black"/> | ||
5 | <deviceFamily value="PRU"/> | ||
6 | <deviceEndianness value="little"/> | ||
7 | <codegenToolVersion value="2.1.1"/> | ||
8 | <isElfFormat value="true"/> | ||
9 | <linkerCommandFile value="AM335x.cmd"/> | ||
10 | <rts value="libc.a"/> | ||
11 | <createSlaveProjects value=""/> | ||
12 | <templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/> | ||
13 | <isTargetManual value="false"/> | ||
14 | </projectOptions> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/.cproject b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/.cproject deleted file mode 100644 index 949d9a2..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/.cproject +++ /dev/null | |||
@@ -1,188 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
3 | <storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings"> | ||
4 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Debug.645362798"> | ||
5 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.645362798" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
6 | <externalSettings/> | ||
7 | <extensions> | ||
8 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
9 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
10 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
11 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
12 | </extensions> | ||
13 | </storageModule> | ||
14 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
15 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.645362798" name="Debug" parent="com.ti.ccstudio.buildDefinitions.PRU.Debug" postbuildStep="" prebuildStep=""> | ||
16 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Debug.645362798." name="/" resourcePath=""> | ||
17 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain.956711848" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.90030497"> | ||
18 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.170972259" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
19 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
20 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
21 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
22 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
23 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
24 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
25 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
26 | </option> | ||
27 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.968091450" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
28 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug.628383823" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug"/> | ||
29 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug.1578107095" name="GNU Make.Debug" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug"/> | ||
30 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug.1583726142" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug"> | ||
31 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.165403288" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
32 | <listOptionValue builtIn="false" value="pru0"/> | ||
33 | <listOptionValue builtIn="false" value="am4379"/> | ||
34 | <listOptionValue builtIn="false" value="icss1"/> | ||
35 | <listOptionValue builtIn="false" value="am5718"/> | ||
36 | </option> | ||
37 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.1902725193" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
38 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.134700685" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
39 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.722869174" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
40 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
41 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
42 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
43 | </option> | ||
44 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.1434870464" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/> | ||
45 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.2057266672" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
46 | <listOptionValue builtIn="false" value="225"/> | ||
47 | </option> | ||
48 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.1166053512" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
49 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.1557336455" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
50 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.1621937493" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
51 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.663100843" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
52 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.1030481890" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
53 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.1766515476" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
54 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.1591899658" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
55 | </tool> | ||
56 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.90030497" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug"> | ||
57 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.1380809663" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
58 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.749687105" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
59 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.1096232913" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
60 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.11995591" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
61 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.175726197" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
62 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
63 | <listOptionValue builtIn="false" value=""../../../../lib/rpmsg_lib.lib""/> | ||
64 | </option> | ||
65 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.289867148" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
66 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
67 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
68 | </option> | ||
69 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.278479693" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
70 | <listOptionValue builtIn="false" value="ICSS1_PRU_CORE=1"/> | ||
71 | </option> | ||
72 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER.566891273" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
73 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.183466164" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
74 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.1045141030" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
75 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.1934543681" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
76 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.485125204" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
77 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.1859810149" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
78 | </tool> | ||
79 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.64306167" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"/> | ||
80 | </toolChain> | ||
81 | </folderInfo> | ||
82 | <sourceEntries> | ||
83 | <entry excluding="AM437x.cmd|AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
84 | </sourceEntries> | ||
85 | </configuration> | ||
86 | </storageModule> | ||
87 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
88 | </cconfiguration> | ||
89 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Release.1722392756"> | ||
90 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1722392756" moduleId="org.eclipse.cdt.core.settings" name="Release"> | ||
91 | <externalSettings/> | ||
92 | <extensions> | ||
93 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
94 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
95 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
96 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
97 | </extensions> | ||
98 | </storageModule> | ||
99 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
100 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1722392756" name="Release" parent="com.ti.ccstudio.buildDefinitions.PRU.Release" postbuildStep="" prebuildStep=""> | ||
101 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Release.1722392756." name="/" resourcePath=""> | ||
102 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain.38847651" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.1693675757"> | ||
103 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1807233654" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
104 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
105 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
106 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
107 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
108 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
109 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
110 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
111 | </option> | ||
112 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1578843660" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
113 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease.2083612799" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease"/> | ||
114 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease.360159630" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease"/> | ||
115 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease.2007741781" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease"> | ||
116 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.399082285" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
117 | <listOptionValue builtIn="false" value="pru0"/> | ||
118 | <listOptionValue builtIn="false" value="am4379"/> | ||
119 | <listOptionValue builtIn="false" value="icss1"/> | ||
120 | <listOptionValue builtIn="false" value="am5718"/> | ||
121 | </option> | ||
122 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.80885908" name="Silicon version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
123 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.220551274" name="Enables use of the hardware MAC available on some PRU cores (--hardware_mac)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
124 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.1531256959" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
125 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
126 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
127 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
128 | </option> | ||
129 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.1813606722" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
130 | <listOptionValue builtIn="false" value="225"/> | ||
131 | </option> | ||
132 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.343679281" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
133 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.794792344" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
134 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.1059947552" name="Specify the endianness of both code and data [See 'General' page to edit] (--endian)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
135 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.73660465" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
136 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.102409843" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
137 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.365378454" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
138 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.1820650285" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
139 | </tool> | ||
140 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.1693675757" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease"> | ||
141 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.341304252" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
142 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.1595745111" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
143 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.1260450601" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
144 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.96353538" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
145 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.2099444392" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
146 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
147 | <listOptionValue builtIn="false" value=""../../../../lib/rpmsg_lib.lib""/> | ||
148 | </option> | ||
149 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.1563952252" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
150 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
151 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
152 | </option> | ||
153 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.505027405" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
154 | <listOptionValue builtIn="false" value="ICSS1_PRU_CORE=1"/> | ||
155 | </option> | ||
156 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER.1430086589" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
157 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.1025980112" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
158 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.1668643621" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
159 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.2094298175" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
160 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.735724062" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
161 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.545773850" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
162 | </tool> | ||
163 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.599838966" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"/> | ||
164 | </toolChain> | ||
165 | </folderInfo> | ||
166 | <sourceEntries> | ||
167 | <entry excluding="AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
168 | </sourceEntries> | ||
169 | </configuration> | ||
170 | </storageModule> | ||
171 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
172 | </cconfiguration> | ||
173 | </storageModule> | ||
174 | <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> | ||
175 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
176 | <project id="PRU_RPMsg_Echo_Interrupt1.com.ti.ccstudio.buildDefinitions.PRU.ProjectType.1927506433" name="PRU" projectType="com.ti.ccstudio.buildDefinitions.PRU.ProjectType"/> | ||
177 | </storageModule> | ||
178 | <storageModule moduleId="scannerConfiguration"/> | ||
179 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"> | ||
180 | <project-mappings> | ||
181 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/> | ||
182 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
183 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
184 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
185 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
186 | </project-mappings> | ||
187 | </storageModule> | ||
188 | </cproject> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/.project b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/.project deleted file mode 100644 index 869b58e..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/.project +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>PRU_RPMsg_Echo_Interrupt2_1</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <arguments> | ||
11 | </arguments> | ||
12 | </buildCommand> | ||
13 | <buildCommand> | ||
14 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
15 | <triggers>full,incremental,</triggers> | ||
16 | <arguments> | ||
17 | </arguments> | ||
18 | </buildCommand> | ||
19 | </buildSpec> | ||
20 | <natures> | ||
21 | <nature>com.ti.ccstudio.core.ccsNature</nature> | ||
22 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
23 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
24 | <nature>org.eclipse.cdt.core.ccnature</nature> | ||
25 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
26 | </natures> | ||
27 | </projectDescription> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/.settings/org.eclipse.cdt.codan.core.prefs b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/.settings/org.eclipse.cdt.codan.core.prefs deleted file mode 100644 index f653028..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/.settings/org.eclipse.cdt.codan.core.prefs +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | inEditor=false | ||
3 | onBuild=false | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/.settings/org.eclipse.cdt.debug.core.prefs b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/.settings/org.eclipse.cdt.debug.core.prefs deleted file mode 100644 index 2adc7b1..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/.settings/org.eclipse.cdt.debug.core.prefs +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | org.eclipse.cdt.debug.core.toggleBreakpointModel=com.ti.ccstudio.debug.CCSBreakpointMarker | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/AM57xx_PRU.cmd b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/AM57xx_PRU.cmd deleted file mode 100755 index f15f640..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/AM57xx_PRU.cmd +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | /****************************************************************************/ | ||
2 | /* AM57xx_PRU.cmd */ | ||
3 | /* Copyright (c) 2015 Texas Instruments Incorporated */ | ||
4 | /* */ | ||
5 | /* Description: This file is a linker command file that can be used for */ | ||
6 | /* linking PRU programs built with the C compiler and */ | ||
7 | /* the resulting .out file on an AM57xx device. */ | ||
8 | /****************************************************************************/ | ||
9 | |||
10 | -cr /* Link using C conventions */ | ||
11 | |||
12 | /* Specify the System Memory Map */ | ||
13 | MEMORY | ||
14 | { | ||
15 | PAGE 0: | ||
16 | PRU_IMEM : org = 0x00000000 len = 0x00003000 /* 12kB PRU-ICSS1 Instruction RAM */ | ||
17 | |||
18 | PAGE 1: | ||
19 | |||
20 | /* RAM */ | ||
21 | |||
22 | PRU_DMEM_0_1 : org = 0x00000000 len = 0x00002000 CREGISTER=24 /* 8kB PRU Data RAM 0_1 */ | ||
23 | PRU_DMEM_1_0 : org = 0x00002000 len = 0x00002000 CREGISTER=25 /* 8kB PRU Data RAM 1_0 */ | ||
24 | PRU_SHAREDMEM : org = 0x00010000 len = 0x00008000 CREGISTER=28 /* 32kB Shared RAM */ | ||
25 | |||
26 | DDR : org = 0x80000000 len = 0x00000100 CREGISTER=31 | ||
27 | L3OCMC : org = 0x40000000 len = 0x00010000 CREGISTER=30 | ||
28 | |||
29 | |||
30 | /* Peripherals */ | ||
31 | |||
32 | PRU_CFG : org = 0x00026000 len = 0x00000120 CREGISTER=4 | ||
33 | PRU_ECAP : org = 0x00030000 len = 0x00000060 CREGISTER=3 | ||
34 | PRU_IEP : org = 0x0002E000 len = 0x0000031C CREGISTER=26 | ||
35 | PRU_INTC : org = 0x00020000 len = 0x00001504 CREGISTER=0 | ||
36 | PRU_UART : org = 0x00028000 len = 0x00000038 CREGISTER=7 | ||
37 | |||
38 | MCASP3_DMA : org = 0x46000000 len = 0x00000100 CREGISTER=8 | ||
39 | I2C3 : org = 0x48060000 len = 0x00000300 CREGISTER=5 | ||
40 | |||
41 | RSVD1 : org = 0x48040000 len = 0x0000005C CREGISTER=1 | ||
42 | RSVD2 : org = 0x4802A000 len = 0x000000D8 CREGISTER=2 | ||
43 | RSVD6 : org = 0x48030000 len = 0x000001A4 CREGISTER=6 | ||
44 | RSVD9 : org = 0x4A100000 len = 0x0000128C CREGISTER=9 | ||
45 | RSVD10 : org = 0x48318000 len = 0x00000100 CREGISTER=10 | ||
46 | RSVD11 : org = 0x48022000 len = 0x00000088 CREGISTER=11 | ||
47 | RSVD12 : org = 0x48024000 len = 0x00000088 CREGISTER=12 | ||
48 | RSVD13 : org = 0x48310000 len = 0x00000100 CREGISTER=13 | ||
49 | RSVD14 : org = 0x481CC000 len = 0x000001E8 CREGISTER=14 | ||
50 | RSVD15 : org = 0x481D0000 len = 0x000001E8 CREGISTER=15 | ||
51 | RSVD16 : org = 0x481A0000 len = 0x000001A4 CREGISTER=16 | ||
52 | RSVD17 : org = 0x4819C000 len = 0x000000D8 CREGISTER=17 | ||
53 | RSVD18 : org = 0x48300000 len = 0x000002C4 CREGISTER=18 | ||
54 | RSVD19 : org = 0x48302000 len = 0x000002C4 CREGISTER=19 | ||
55 | RSVD20 : org = 0x48304000 len = 0x000002C4 CREGISTER=20 | ||
56 | RSVD21 : org = 0x00032400 len = 0x00000100 CREGISTER=21 | ||
57 | RSVD22 : org = 0x480C8000 len = 0x00000140 CREGISTER=22 | ||
58 | RSVD23 : org = 0x480CA000 len = 0x00000880 CREGISTER=23 | ||
59 | RSVD27 : org = 0x00032000 len = 0x00000100 CREGISTER=27 | ||
60 | RSVD29 : org = 0x49000000 len = 0x00001098 CREGISTER=29 | ||
61 | } | ||
62 | |||
63 | /* Specify the sections allocation into memory */ | ||
64 | SECTIONS { | ||
65 | /* Forces _c_int00 to the start of PRU IRAM. Not necessary when loading | ||
66 | an ELF file, but useful when loading a binary */ | ||
67 | .text:_c_int00* > 0x0, PAGE 0 | ||
68 | |||
69 | .text > PRU_IMEM, PAGE 0 | ||
70 | .stack > PRU_DMEM_0_1, PAGE 1 | ||
71 | .bss > PRU_DMEM_0_1, PAGE 1 | ||
72 | .cio > PRU_DMEM_0_1, PAGE 1 | ||
73 | .data > PRU_DMEM_0_1, PAGE 1 | ||
74 | .switch > PRU_DMEM_0_1, PAGE 1 | ||
75 | .sysmem > PRU_DMEM_0_1, PAGE 1 | ||
76 | .cinit > PRU_DMEM_0_1, PAGE 1 | ||
77 | .rodata > PRU_DMEM_0_1, PAGE 1 | ||
78 | .rofardata > PRU_DMEM_0_1, PAGE 1 | ||
79 | .farbss > PRU_DMEM_0_1, PAGE 1 | ||
80 | .fardata > PRU_DMEM_0_1, PAGE 1 | ||
81 | |||
82 | .resource_table > PRU_DMEM_0_1, PAGE 1 | ||
83 | } | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/Makefile b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/Makefile deleted file mode 100644 index 15a5222..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/Makefile +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | # PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: | ||
2 | #(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
3 | #(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
4 | ifndef PRU_CGT | ||
5 | define ERROR_BODY | ||
6 | |||
7 | ************************************************************ | ||
8 | PRU_CGT environment variable is not set. Examples given: | ||
9 | (Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
10 | (Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
11 | ************************************************************ | ||
12 | |||
13 | endef | ||
14 | $(error $(ERROR_BODY)) | ||
15 | endif | ||
16 | |||
17 | MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
18 | CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH)))) | ||
19 | PROJ_NAME=$(CURRENT_DIR) | ||
20 | LINKER_COMMAND_FILE=./AM57xx_PRU.cmd | ||
21 | LIBS=--library=../../../lib/rpmsg_lib.lib | ||
22 | INCLUDE=--include_path=../../../include --include_path=../../../include/am571x | ||
23 | STACK_SIZE=0x100 | ||
24 | HEAP_SIZE=0x100 | ||
25 | GEN_DIR=gen | ||
26 | |||
27 | #Common compiler and linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
28 | CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_directory=$(GEN_DIR) --pp_directory=$(GEN_DIR) -ppd -ppa | ||
29 | #Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
30 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | ||
31 | |||
32 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | ||
33 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | ||
34 | SOURCES=$(wildcard *.c) | ||
35 | #Using .object instead of .obj in order to not conflict with the CCS build process | ||
36 | OBJECTS=$(patsubst %,$(GEN_DIR)/%,$(SOURCES:.c=.object)) | ||
37 | |||
38 | all: printStart $(TARGET) printEnd | ||
39 | |||
40 | printStart: | ||
41 | @echo '' | ||
42 | @echo '************************************************************' | ||
43 | @echo 'Building project: $(PROJ_NAME)' | ||
44 | |||
45 | printEnd: | ||
46 | @echo '' | ||
47 | @echo 'Finished building project: $(PROJ_NAME)' | ||
48 | @echo '************************************************************' | ||
49 | @echo '' | ||
50 | |||
51 | # Invokes the linker (-z flag) to make the .out file | ||
52 | $(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) | ||
53 | @echo '' | ||
54 | @echo 'Building target: $@' | ||
55 | @echo 'Invoking: PRU Linker' | ||
56 | $(PRU_CGT)/bin/clpru $(CFLAGS) -z -i$(PRU_CGT)/lib -i$(PRU_CGT)/include $(LFLAGS) -o $(TARGET) $(OBJECTS) -m$(MAP) $(LINKER_COMMAND_FILE) --library=libc.a $(LIBS) | ||
57 | @echo 'Finished building target: $@' | ||
58 | @echo '' | ||
59 | @echo 'Output files can be found in the "$(GEN_DIR)" directory' | ||
60 | |||
61 | # Invokes the compiler on all c files in the directory to create the object files | ||
62 | $(GEN_DIR)/%.object: %.c | ||
63 | @mkdir -p $(GEN_DIR) | ||
64 | @echo '' | ||
65 | @echo 'Building file: $<' | ||
66 | @echo 'Invoking: PRU Compiler' | ||
67 | $(PRU_CGT)/bin/clpru --include_path=$(PRU_CGT)/include $(INCLUDE) $(CFLAGS) -fe $@ $< | ||
68 | |||
69 | .PHONY: all clean | ||
70 | |||
71 | # Remove the $(GEN_DIR) directory | ||
72 | clean: | ||
73 | @echo '' | ||
74 | @echo '************************************************************' | ||
75 | @echo 'Cleaning project: $(PROJ_NAME)' | ||
76 | @echo '' | ||
77 | @echo 'Removing files in the "$(GEN_DIR)" directory' | ||
78 | @rm -rf $(GEN_DIR) | ||
79 | @echo '' | ||
80 | @echo 'Finished cleaning project: $(PROJ_NAME)' | ||
81 | @echo '************************************************************' | ||
82 | @echo '' | ||
83 | |||
84 | # Includes the dependencies that the compiler creates (-ppd and -ppa flags) | ||
85 | -include $(OBJECTS:%.object=%.pp) | ||
86 | |||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/main.c b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/main.c deleted file mode 100644 index 1a3dad9..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/main.c +++ /dev/null | |||
@@ -1,137 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | #include <stdint.h> | ||
35 | #include <stdio.h> | ||
36 | #include <pru_cfg.h> | ||
37 | #include <pru_intc.h> | ||
38 | #include <rsc_types.h> | ||
39 | #include <pru_virtqueue.h> | ||
40 | #include <pru_rpmsg.h> | ||
41 | #include <sys_mailbox.h> | ||
42 | #include "resource_table_1.h" | ||
43 | |||
44 | volatile register uint32_t __R31; | ||
45 | |||
46 | /* PRU1 is mailbox module user 2 */ | ||
47 | #define MB_USER 2 | ||
48 | /* CROSSBAR will map MBX4 user 2 event to Int Number 59 */ | ||
49 | #define MB_INT_NUMBER 59 | ||
50 | |||
51 | /* Host-1 Interrupt sets bit 31 in register R31 */ | ||
52 | #define HOST_INT 0x80000000 | ||
53 | |||
54 | /* The mailboxes used for RPMsg are defined in the Linux device tree | ||
55 | * PRU0 uses mailboxes 0 (From ARM) and 1 (To ARM) | ||
56 | * PRU1 uses mailboxes 2 (From ARM) and 3 (To ARM) | ||
57 | */ | ||
58 | #define MB_TO_ARM_HOST 3 | ||
59 | #define MB_FROM_ARM_HOST 2 | ||
60 | |||
61 | /* | ||
62 | * Using the name 'rpmsg-pru' will probe the rpmsg_pru driver found | ||
63 | * at linux-x.y.z/drivers/rpmsg/rpmsg_pru.c | ||
64 | */ | ||
65 | #define CHAN_NAME "rpmsg-pru" | ||
66 | #define CHAN_DESC "Channel 33" | ||
67 | #define CHAN_PORT 33 | ||
68 | |||
69 | /* | ||
70 | * Need to program the crossbar to bring the correct events into the | ||
71 | * PRUSS INTC | ||
72 | */ | ||
73 | #define CTRL_CORE_PRUSS2_IRQ_58_59 *(volatile unsigned int *) 0x4A00293C | ||
74 | #define MAILBOX4_IRQ_USER2 247 | ||
75 | |||
76 | /* | ||
77 | * Used to make sure the Linux drivers are ready for RPMsg communication | ||
78 | * Found at linux-x.y.z/include/uapi/linux/virtio_config.h | ||
79 | */ | ||
80 | #define VIRTIO_CONFIG_S_DRIVER_OK 4 | ||
81 | |||
82 | uint8_t payload[RPMSG_BUF_SIZE]; | ||
83 | |||
84 | /* | ||
85 | * main.c | ||
86 | */ | ||
87 | void main() { | ||
88 | struct pru_rpmsg_transport transport; | ||
89 | uint16_t src, dst, len; | ||
90 | uint32_t regValue; | ||
91 | volatile uint8_t *status; | ||
92 | |||
93 | /* allow OCP master port access by the PRU so the PRU can read external memories */ | ||
94 | CT_CFG.SYSCFG_bit.STANDBY_INIT = 0; | ||
95 | |||
96 | /* need to program the CROSSBAR to map MBX4 User2 event to PRUSS INTC event 59 */ | ||
97 | regValue = CTRL_CORE_PRUSS2_IRQ_58_59; | ||
98 | regValue &= 0xFE00FFFF; | ||
99 | CTRL_CORE_PRUSS2_IRQ_58_59 = regValue | (MAILBOX4_IRQ_USER2 << 16); | ||
100 | |||
101 | /* clear the status of event MB_INT_NUMBER (the mailbox event) and enable the mailbox event */ | ||
102 | CT_INTC.SICR_bit.STATUS_CLR_INDEX = MB_INT_NUMBER; | ||
103 | MBX4.IRQ[MB_USER].ENABLE_SET |= 1 << (MB_FROM_ARM_HOST * 2); | ||
104 | |||
105 | /* Make sure the Linux drivers are ready for RPMsg communication */ | ||
106 | status = &resourceTable.rpmsg_vdev.status; | ||
107 | while (!(*status & VIRTIO_CONFIG_S_DRIVER_OK)); | ||
108 | |||
109 | /* Initialize pru_virtqueue corresponding to vring0 (PRU to ARM Host direction) */ | ||
110 | pru_virtqueue_init(&transport.virtqueue0, &resourceTable.rpmsg_vring0, &MBX4.MESSAGE[MB_TO_ARM_HOST], &MBX4.MESSAGE[MB_FROM_ARM_HOST]); | ||
111 | |||
112 | /* Initialize pru_virtqueue corresponding to vring1 (ARM Host to PRU direction) */ | ||
113 | pru_virtqueue_init(&transport.virtqueue1, &resourceTable.rpmsg_vring1, &MBX4.MESSAGE[MB_TO_ARM_HOST], &MBX4.MESSAGE[MB_FROM_ARM_HOST]); | ||
114 | |||
115 | /* Create the RPMsg channel between the PRU and ARM user space using the transport structure. */ | ||
116 | while(pru_rpmsg_channel(RPMSG_NS_CREATE, &transport, CHAN_NAME, CHAN_DESC, CHAN_PORT) != PRU_RPMSG_SUCCESS); | ||
117 | while(1){ | ||
118 | /* Check bit 31 of register R31 to see if the mailbox interrupt has occurred */ | ||
119 | if(__R31 & HOST_INT){ | ||
120 | /* Clear the mailbox interrupt */ | ||
121 | MBX4.IRQ[MB_USER].STATUS_CLR |= 1 << (MB_FROM_ARM_HOST * 2); | ||
122 | /* Clear the event status, event MB_INT_NUMBER corresponds to the mailbox interrupt */ | ||
123 | CT_INTC.SICR_bit.STATUS_CLR_INDEX = MB_INT_NUMBER; | ||
124 | /* Use a while loop to read all of the current messages in the mailbox */ | ||
125 | while(MBX4.MSGSTATUS_bit[MB_FROM_ARM_HOST].NBOFMSG > 0){ | ||
126 | /* Check to see if the message corresponds to a receive event for the PRU */ | ||
127 | if(MBX4.MESSAGE[MB_FROM_ARM_HOST] == 1){ | ||
128 | /* Receive the message */ | ||
129 | if(pru_rpmsg_receive(&transport, &src, &dst, payload, &len) == PRU_RPMSG_SUCCESS){ | ||
130 | /* Echo the message back to the same address from which we just received */ | ||
131 | pru_rpmsg_send(&transport, dst, src, payload, len); | ||
132 | } | ||
133 | } | ||
134 | } | ||
135 | } | ||
136 | } | ||
137 | } | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/resource_table_1.h b/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/resource_table_1.h deleted file mode 100755 index 116a7f5..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Interrupt2_1/resource_table_1.h +++ /dev/null | |||
@@ -1,148 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | /* | ||
35 | * ======== rsc_table_am335x_pru.h ======== | ||
36 | * | ||
37 | * Define the resource table entries for all PRU cores. This will be | ||
38 | * incorporated into corresponding base images, and used by the remoteproc | ||
39 | * on the host-side to allocated/reserve resources. | ||
40 | * | ||
41 | */ | ||
42 | |||
43 | |||
44 | #ifndef _RSC_TABLE_PRU_H_ | ||
45 | #define _RSC_TABLE_PRU_H_ | ||
46 | |||
47 | #include <stddef.h> | ||
48 | #include <rsc_types.h> | ||
49 | #include "pru_virtio_ids.h" | ||
50 | |||
51 | /* | ||
52 | * Sizes of the virtqueues (expressed in number of buffers supported, | ||
53 | * and must be power of 2) | ||
54 | */ | ||
55 | #define PRU_RPMSG_VQ0_SIZE 16 | ||
56 | #define PRU_RPMSG_VQ1_SIZE 16 | ||
57 | |||
58 | /* | ||
59 | * The feature bitmap for virtio rpmsg | ||
60 | */ | ||
61 | #define VIRTIO_RPMSG_F_NS 0 //name service notifications | ||
62 | |||
63 | /* This firmware supports name service notifications as one of its features */ | ||
64 | #define RPMSG_PRU_C0_FEATURES (1 << VIRTIO_RPMSG_F_NS) | ||
65 | |||
66 | /* Definition for unused interrupts */ | ||
67 | #define HOST_UNUSED 255 | ||
68 | |||
69 | /* Mapping sysevts to a channel. Each pair contains a sysevt, channel | ||
70 | * Mapping event 60 (Mbox0 mailbox interrupt for pru0) to channel 0 | ||
71 | * */ | ||
72 | struct ch_map pru_intc_map[] = { {59, 1}, | ||
73 | }; | ||
74 | |||
75 | struct my_resource_table { | ||
76 | struct resource_table base; | ||
77 | |||
78 | uint32_t offset[2]; /* Should match 'num' in actual definition */ | ||
79 | |||
80 | /* rpmsg vdev entry */ | ||
81 | struct fw_rsc_vdev rpmsg_vdev; | ||
82 | struct fw_rsc_vdev_vring rpmsg_vring0; | ||
83 | struct fw_rsc_vdev_vring rpmsg_vring1; | ||
84 | |||
85 | /* intc definition */ | ||
86 | struct fw_rsc_custom pru_ints; | ||
87 | }; | ||
88 | |||
89 | #pragma DATA_SECTION(resourceTable, ".resource_table") | ||
90 | #pragma RETAIN(resourceTable) | ||
91 | struct my_resource_table resourceTable = { | ||
92 | 1, /* Resource table version: only version 1 is supported by the current driver */ | ||
93 | 2, /* number of entries in the table */ | ||
94 | 0, 0, /* reserved, must be zero */ | ||
95 | /* offsets to entries */ | ||
96 | { | ||
97 | offsetof(struct my_resource_table, rpmsg_vdev), | ||
98 | offsetof(struct my_resource_table, pru_ints), | ||
99 | }, | ||
100 | |||
101 | /* rpmsg vdev entry */ | ||
102 | { | ||
103 | (uint32_t)TYPE_VDEV, //type | ||
104 | (uint32_t)VIRTIO_ID_RPMSG, //id | ||
105 | (uint32_t)0, //notifyid | ||
106 | (uint32_t)RPMSG_PRU_C0_FEATURES, //dfeatures | ||
107 | (uint32_t)0, //gfeatures | ||
108 | (uint32_t)0, //config_len | ||
109 | (uint8_t)0, //status | ||
110 | (uint8_t)2, //num_of_vrings, only two is supported | ||
111 | { (uint8_t)0, (uint8_t)0 }, //reserved | ||
112 | /* no config data */ | ||
113 | }, | ||
114 | /* the two vrings */ | ||
115 | { | ||
116 | 0, //da, will be populated by host, can't pass it in | ||
117 | 16, //align (bytes), | ||
118 | PRU_RPMSG_VQ0_SIZE, //num of descriptors | ||
119 | 0, //notifyid, will be populated, can't pass right now | ||
120 | 0 //reserved | ||
121 | }, | ||
122 | { | ||
123 | 0, //da, will be populated by host, can't pass it in | ||
124 | 16, //align (bytes), | ||
125 | PRU_RPMSG_VQ1_SIZE, //num of descriptors | ||
126 | 0, //notifyid, will be populated, can't pass right now | ||
127 | 0 //reserved | ||
128 | }, | ||
129 | |||
130 | { | ||
131 | TYPE_CUSTOM, TYPE_PRU_INTS, | ||
132 | sizeof(struct fw_rsc_custom_ints), | ||
133 | { /* PRU_INTS version */ | ||
134 | 0x0000, | ||
135 | /* Channel-to-host mapping, 255 for unused | ||
136 | * Mapping Channel-1 to Host-1 (PRU0/1 R31 bit 31) | ||
137 | * */ | ||
138 | HOST_UNUSED, 1, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, | ||
139 | HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, HOST_UNUSED, | ||
140 | /* Number of evts being mapped to channels */ | ||
141 | (sizeof(pru_intc_map) / sizeof(struct ch_map)), | ||
142 | /* Pointer to the structure containing mapped events */ | ||
143 | pru_intc_map, | ||
144 | }, | ||
145 | }, | ||
146 | }; | ||
147 | |||
148 | #endif /* _RSC_TABLE_PRU_H_ */ | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/.ccsproject b/examples/am571x/PRU_RPMsg_Echo_Polling1_0/.ccsproject deleted file mode 100644 index b169227..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/.ccsproject +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" ?> | ||
2 | <?ccsproject version="1.0"?> | ||
3 | <projectOptions> | ||
4 | <deviceVariant value="TMS192C2026.AM3359.BeagleBone_Black"/> | ||
5 | <deviceFamily value="PRU"/> | ||
6 | <deviceEndianness value="little"/> | ||
7 | <codegenToolVersion value="2.1.1"/> | ||
8 | <isElfFormat value="true"/> | ||
9 | <linkerCommandFile value="AM335x.cmd"/> | ||
10 | <rts value="libc.a"/> | ||
11 | <createSlaveProjects value=""/> | ||
12 | <templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/> | ||
13 | <isTargetManual value="false"/> | ||
14 | </projectOptions> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/.cproject b/examples/am571x/PRU_RPMsg_Echo_Polling1_0/.cproject deleted file mode 100644 index ba33f5c..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/.cproject +++ /dev/null | |||
@@ -1,188 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
3 | <storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings"> | ||
4 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Debug.381480084"> | ||
5 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.381480084" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
6 | <externalSettings/> | ||
7 | <extensions> | ||
8 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
9 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
10 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
11 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
12 | </extensions> | ||
13 | </storageModule> | ||
14 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
15 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.381480084" name="Debug" parent="com.ti.ccstudio.buildDefinitions.PRU.Debug" postbuildStep="" prebuildStep=""> | ||
16 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Debug.381480084." name="/" resourcePath=""> | ||
17 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain.1807595096" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.589520436"> | ||
18 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1303261943" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
19 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
20 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
21 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
22 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
23 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
24 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
25 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
26 | </option> | ||
27 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1248363121" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
28 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug.832999529" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug"/> | ||
29 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug.1288417331" name="GNU Make.Debug" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug"/> | ||
30 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug.15008612" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug"> | ||
31 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.1504152119" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
32 | <listOptionValue builtIn="false" value="pru0"/> | ||
33 | <listOptionValue builtIn="false" value="am4379"/> | ||
34 | <listOptionValue builtIn="false" value="icss1"/> | ||
35 | <listOptionValue builtIn="false" value="am5718"/> | ||
36 | </option> | ||
37 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.1383779562" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
38 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.228908477" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
39 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.1478517740" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
40 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
41 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
42 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
43 | </option> | ||
44 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.665278477" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/> | ||
45 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.1002751213" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
46 | <listOptionValue builtIn="false" value="225"/> | ||
47 | </option> | ||
48 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.2008244715" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
49 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.139886970" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
50 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.1741637988" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
51 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.1024241912" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
52 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.1895997686" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
53 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.632205046" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
54 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.71224152" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
55 | </tool> | ||
56 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.589520436" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug"> | ||
57 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.1121642443" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
58 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.1354097185" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
59 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.1698725015" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
60 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.11724239" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
61 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.1487990885" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
62 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
63 | <listOptionValue builtIn="false" value=""../../../../lib/rpmsg_lib.lib""/> | ||
64 | </option> | ||
65 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.1896210958" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
66 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
67 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
68 | </option> | ||
69 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.1951488541" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
70 | <listOptionValue builtIn="false" value="ICSS1_PRU_CORE=1"/> | ||
71 | </option> | ||
72 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER.230554541" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
73 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.1260599704" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
74 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.1430069723" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
75 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.2101854515" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
76 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.332392073" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
77 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.65264761" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
78 | </tool> | ||
79 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.1910088450" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"/> | ||
80 | </toolChain> | ||
81 | </folderInfo> | ||
82 | <sourceEntries> | ||
83 | <entry excluding="AM437x.cmd|AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
84 | </sourceEntries> | ||
85 | </configuration> | ||
86 | </storageModule> | ||
87 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
88 | </cconfiguration> | ||
89 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Release.1778392550"> | ||
90 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1778392550" moduleId="org.eclipse.cdt.core.settings" name="Release"> | ||
91 | <externalSettings/> | ||
92 | <extensions> | ||
93 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
94 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
95 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
96 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
97 | </extensions> | ||
98 | </storageModule> | ||
99 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
100 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1778392550" name="Release" parent="com.ti.ccstudio.buildDefinitions.PRU.Release" postbuildStep="" prebuildStep=""> | ||
101 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Release.1778392550." name="/" resourcePath=""> | ||
102 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain.1549508084" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.479338267"> | ||
103 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.2125171734" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
104 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
105 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
106 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
107 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
108 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
109 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
110 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
111 | </option> | ||
112 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.765290240" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
113 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease.827719875" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease"/> | ||
114 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease.871320080" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease"/> | ||
115 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease.1946009331" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease"> | ||
116 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.264620928" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
117 | <listOptionValue builtIn="false" value="pru0"/> | ||
118 | <listOptionValue builtIn="false" value="am4379"/> | ||
119 | <listOptionValue builtIn="false" value="icss1"/> | ||
120 | <listOptionValue builtIn="false" value="am5718"/> | ||
121 | </option> | ||
122 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.1883248928" name="Silicon version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
123 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.1779194096" name="Enables use of the hardware MAC available on some PRU cores (--hardware_mac)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
124 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.546273443" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
125 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
126 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
127 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
128 | </option> | ||
129 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.707403995" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
130 | <listOptionValue builtIn="false" value="225"/> | ||
131 | </option> | ||
132 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.1767075505" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
133 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.579378990" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
134 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.2038159838" name="Specify the endianness of both code and data [See 'General' page to edit] (--endian)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
135 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.1016792846" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
136 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.1163475559" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
137 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.1569286824" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
138 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.2078026985" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
139 | </tool> | ||
140 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.479338267" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease"> | ||
141 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.1267611690" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
142 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.1661081915" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
143 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.946965512" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
144 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.1951616046" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
145 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.453516927" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
146 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
147 | <listOptionValue builtIn="false" value=""../../../../lib/rpmsg_lib.lib""/> | ||
148 | </option> | ||
149 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.2114176849" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
150 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
151 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
152 | </option> | ||
153 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.1433516563" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
154 | <listOptionValue builtIn="false" value="ICSS1_PRU_CORE=1"/> | ||
155 | </option> | ||
156 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER.1393448173" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
157 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.1911927476" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
158 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.885781523" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
159 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.797707868" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
160 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.1703520301" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
161 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.1189023384" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
162 | </tool> | ||
163 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.452360678" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"/> | ||
164 | </toolChain> | ||
165 | </folderInfo> | ||
166 | <sourceEntries> | ||
167 | <entry excluding="AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
168 | </sourceEntries> | ||
169 | </configuration> | ||
170 | </storageModule> | ||
171 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
172 | </cconfiguration> | ||
173 | </storageModule> | ||
174 | <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> | ||
175 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
176 | <project id="PRU_RPMsg_Echo_Polling0.com.ti.ccstudio.buildDefinitions.PRU.ProjectType.1844420452" name="PRU" projectType="com.ti.ccstudio.buildDefinitions.PRU.ProjectType"/> | ||
177 | </storageModule> | ||
178 | <storageModule moduleId="scannerConfiguration"/> | ||
179 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"> | ||
180 | <project-mappings> | ||
181 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/> | ||
182 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
183 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
184 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
185 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
186 | </project-mappings> | ||
187 | </storageModule> | ||
188 | </cproject> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/.project b/examples/am571x/PRU_RPMsg_Echo_Polling1_0/.project deleted file mode 100644 index 5ae836c..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/.project +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>PRU_RPMsg_Echo_Polling1_0</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <arguments> | ||
11 | </arguments> | ||
12 | </buildCommand> | ||
13 | <buildCommand> | ||
14 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
15 | <triggers>full,incremental,</triggers> | ||
16 | <arguments> | ||
17 | </arguments> | ||
18 | </buildCommand> | ||
19 | </buildSpec> | ||
20 | <natures> | ||
21 | <nature>com.ti.ccstudio.core.ccsNature</nature> | ||
22 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
23 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
24 | <nature>org.eclipse.cdt.core.ccnature</nature> | ||
25 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
26 | </natures> | ||
27 | </projectDescription> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/.settings/org.eclipse.cdt.codan.core.prefs b/examples/am571x/PRU_RPMsg_Echo_Polling1_0/.settings/org.eclipse.cdt.codan.core.prefs deleted file mode 100644 index f653028..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/.settings/org.eclipse.cdt.codan.core.prefs +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | inEditor=false | ||
3 | onBuild=false | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/.settings/org.eclipse.cdt.debug.core.prefs b/examples/am571x/PRU_RPMsg_Echo_Polling1_0/.settings/org.eclipse.cdt.debug.core.prefs deleted file mode 100644 index 2adc7b1..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/.settings/org.eclipse.cdt.debug.core.prefs +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | org.eclipse.cdt.debug.core.toggleBreakpointModel=com.ti.ccstudio.debug.CCSBreakpointMarker | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/AM57xx_PRU.cmd b/examples/am571x/PRU_RPMsg_Echo_Polling1_0/AM57xx_PRU.cmd deleted file mode 100755 index f15f640..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/AM57xx_PRU.cmd +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | /****************************************************************************/ | ||
2 | /* AM57xx_PRU.cmd */ | ||
3 | /* Copyright (c) 2015 Texas Instruments Incorporated */ | ||
4 | /* */ | ||
5 | /* Description: This file is a linker command file that can be used for */ | ||
6 | /* linking PRU programs built with the C compiler and */ | ||
7 | /* the resulting .out file on an AM57xx device. */ | ||
8 | /****************************************************************************/ | ||
9 | |||
10 | -cr /* Link using C conventions */ | ||
11 | |||
12 | /* Specify the System Memory Map */ | ||
13 | MEMORY | ||
14 | { | ||
15 | PAGE 0: | ||
16 | PRU_IMEM : org = 0x00000000 len = 0x00003000 /* 12kB PRU-ICSS1 Instruction RAM */ | ||
17 | |||
18 | PAGE 1: | ||
19 | |||
20 | /* RAM */ | ||
21 | |||
22 | PRU_DMEM_0_1 : org = 0x00000000 len = 0x00002000 CREGISTER=24 /* 8kB PRU Data RAM 0_1 */ | ||
23 | PRU_DMEM_1_0 : org = 0x00002000 len = 0x00002000 CREGISTER=25 /* 8kB PRU Data RAM 1_0 */ | ||
24 | PRU_SHAREDMEM : org = 0x00010000 len = 0x00008000 CREGISTER=28 /* 32kB Shared RAM */ | ||
25 | |||
26 | DDR : org = 0x80000000 len = 0x00000100 CREGISTER=31 | ||
27 | L3OCMC : org = 0x40000000 len = 0x00010000 CREGISTER=30 | ||
28 | |||
29 | |||
30 | /* Peripherals */ | ||
31 | |||
32 | PRU_CFG : org = 0x00026000 len = 0x00000120 CREGISTER=4 | ||
33 | PRU_ECAP : org = 0x00030000 len = 0x00000060 CREGISTER=3 | ||
34 | PRU_IEP : org = 0x0002E000 len = 0x0000031C CREGISTER=26 | ||
35 | PRU_INTC : org = 0x00020000 len = 0x00001504 CREGISTER=0 | ||
36 | PRU_UART : org = 0x00028000 len = 0x00000038 CREGISTER=7 | ||
37 | |||
38 | MCASP3_DMA : org = 0x46000000 len = 0x00000100 CREGISTER=8 | ||
39 | I2C3 : org = 0x48060000 len = 0x00000300 CREGISTER=5 | ||
40 | |||
41 | RSVD1 : org = 0x48040000 len = 0x0000005C CREGISTER=1 | ||
42 | RSVD2 : org = 0x4802A000 len = 0x000000D8 CREGISTER=2 | ||
43 | RSVD6 : org = 0x48030000 len = 0x000001A4 CREGISTER=6 | ||
44 | RSVD9 : org = 0x4A100000 len = 0x0000128C CREGISTER=9 | ||
45 | RSVD10 : org = 0x48318000 len = 0x00000100 CREGISTER=10 | ||
46 | RSVD11 : org = 0x48022000 len = 0x00000088 CREGISTER=11 | ||
47 | RSVD12 : org = 0x48024000 len = 0x00000088 CREGISTER=12 | ||
48 | RSVD13 : org = 0x48310000 len = 0x00000100 CREGISTER=13 | ||
49 | RSVD14 : org = 0x481CC000 len = 0x000001E8 CREGISTER=14 | ||
50 | RSVD15 : org = 0x481D0000 len = 0x000001E8 CREGISTER=15 | ||
51 | RSVD16 : org = 0x481A0000 len = 0x000001A4 CREGISTER=16 | ||
52 | RSVD17 : org = 0x4819C000 len = 0x000000D8 CREGISTER=17 | ||
53 | RSVD18 : org = 0x48300000 len = 0x000002C4 CREGISTER=18 | ||
54 | RSVD19 : org = 0x48302000 len = 0x000002C4 CREGISTER=19 | ||
55 | RSVD20 : org = 0x48304000 len = 0x000002C4 CREGISTER=20 | ||
56 | RSVD21 : org = 0x00032400 len = 0x00000100 CREGISTER=21 | ||
57 | RSVD22 : org = 0x480C8000 len = 0x00000140 CREGISTER=22 | ||
58 | RSVD23 : org = 0x480CA000 len = 0x00000880 CREGISTER=23 | ||
59 | RSVD27 : org = 0x00032000 len = 0x00000100 CREGISTER=27 | ||
60 | RSVD29 : org = 0x49000000 len = 0x00001098 CREGISTER=29 | ||
61 | } | ||
62 | |||
63 | /* Specify the sections allocation into memory */ | ||
64 | SECTIONS { | ||
65 | /* Forces _c_int00 to the start of PRU IRAM. Not necessary when loading | ||
66 | an ELF file, but useful when loading a binary */ | ||
67 | .text:_c_int00* > 0x0, PAGE 0 | ||
68 | |||
69 | .text > PRU_IMEM, PAGE 0 | ||
70 | .stack > PRU_DMEM_0_1, PAGE 1 | ||
71 | .bss > PRU_DMEM_0_1, PAGE 1 | ||
72 | .cio > PRU_DMEM_0_1, PAGE 1 | ||
73 | .data > PRU_DMEM_0_1, PAGE 1 | ||
74 | .switch > PRU_DMEM_0_1, PAGE 1 | ||
75 | .sysmem > PRU_DMEM_0_1, PAGE 1 | ||
76 | .cinit > PRU_DMEM_0_1, PAGE 1 | ||
77 | .rodata > PRU_DMEM_0_1, PAGE 1 | ||
78 | .rofardata > PRU_DMEM_0_1, PAGE 1 | ||
79 | .farbss > PRU_DMEM_0_1, PAGE 1 | ||
80 | .fardata > PRU_DMEM_0_1, PAGE 1 | ||
81 | |||
82 | .resource_table > PRU_DMEM_0_1, PAGE 1 | ||
83 | } | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/Makefile b/examples/am571x/PRU_RPMsg_Echo_Polling1_0/Makefile deleted file mode 100644 index 15a5222..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/Makefile +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | # PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: | ||
2 | #(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
3 | #(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
4 | ifndef PRU_CGT | ||
5 | define ERROR_BODY | ||
6 | |||
7 | ************************************************************ | ||
8 | PRU_CGT environment variable is not set. Examples given: | ||
9 | (Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
10 | (Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
11 | ************************************************************ | ||
12 | |||
13 | endef | ||
14 | $(error $(ERROR_BODY)) | ||
15 | endif | ||
16 | |||
17 | MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
18 | CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH)))) | ||
19 | PROJ_NAME=$(CURRENT_DIR) | ||
20 | LINKER_COMMAND_FILE=./AM57xx_PRU.cmd | ||
21 | LIBS=--library=../../../lib/rpmsg_lib.lib | ||
22 | INCLUDE=--include_path=../../../include --include_path=../../../include/am571x | ||
23 | STACK_SIZE=0x100 | ||
24 | HEAP_SIZE=0x100 | ||
25 | GEN_DIR=gen | ||
26 | |||
27 | #Common compiler and linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
28 | CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_directory=$(GEN_DIR) --pp_directory=$(GEN_DIR) -ppd -ppa | ||
29 | #Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
30 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | ||
31 | |||
32 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | ||
33 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | ||
34 | SOURCES=$(wildcard *.c) | ||
35 | #Using .object instead of .obj in order to not conflict with the CCS build process | ||
36 | OBJECTS=$(patsubst %,$(GEN_DIR)/%,$(SOURCES:.c=.object)) | ||
37 | |||
38 | all: printStart $(TARGET) printEnd | ||
39 | |||
40 | printStart: | ||
41 | @echo '' | ||
42 | @echo '************************************************************' | ||
43 | @echo 'Building project: $(PROJ_NAME)' | ||
44 | |||
45 | printEnd: | ||
46 | @echo '' | ||
47 | @echo 'Finished building project: $(PROJ_NAME)' | ||
48 | @echo '************************************************************' | ||
49 | @echo '' | ||
50 | |||
51 | # Invokes the linker (-z flag) to make the .out file | ||
52 | $(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) | ||
53 | @echo '' | ||
54 | @echo 'Building target: $@' | ||
55 | @echo 'Invoking: PRU Linker' | ||
56 | $(PRU_CGT)/bin/clpru $(CFLAGS) -z -i$(PRU_CGT)/lib -i$(PRU_CGT)/include $(LFLAGS) -o $(TARGET) $(OBJECTS) -m$(MAP) $(LINKER_COMMAND_FILE) --library=libc.a $(LIBS) | ||
57 | @echo 'Finished building target: $@' | ||
58 | @echo '' | ||
59 | @echo 'Output files can be found in the "$(GEN_DIR)" directory' | ||
60 | |||
61 | # Invokes the compiler on all c files in the directory to create the object files | ||
62 | $(GEN_DIR)/%.object: %.c | ||
63 | @mkdir -p $(GEN_DIR) | ||
64 | @echo '' | ||
65 | @echo 'Building file: $<' | ||
66 | @echo 'Invoking: PRU Compiler' | ||
67 | $(PRU_CGT)/bin/clpru --include_path=$(PRU_CGT)/include $(INCLUDE) $(CFLAGS) -fe $@ $< | ||
68 | |||
69 | .PHONY: all clean | ||
70 | |||
71 | # Remove the $(GEN_DIR) directory | ||
72 | clean: | ||
73 | @echo '' | ||
74 | @echo '************************************************************' | ||
75 | @echo 'Cleaning project: $(PROJ_NAME)' | ||
76 | @echo '' | ||
77 | @echo 'Removing files in the "$(GEN_DIR)" directory' | ||
78 | @rm -rf $(GEN_DIR) | ||
79 | @echo '' | ||
80 | @echo 'Finished cleaning project: $(PROJ_NAME)' | ||
81 | @echo '************************************************************' | ||
82 | @echo '' | ||
83 | |||
84 | # Includes the dependencies that the compiler creates (-ppd and -ppa flags) | ||
85 | -include $(OBJECTS:%.object=%.pp) | ||
86 | |||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/main.c b/examples/am571x/PRU_RPMsg_Echo_Polling1_0/main.c deleted file mode 100644 index aa3dd80..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/main.c +++ /dev/null | |||
@@ -1,114 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | #include <stdint.h> | ||
35 | #include <stdio.h> | ||
36 | #include <pru_cfg.h> | ||
37 | #include <rsc_types.h> | ||
38 | #include <pru_virtqueue.h> | ||
39 | #include <pru_rpmsg.h> | ||
40 | #include <sys_mailbox.h> | ||
41 | #include "resource_table_0.h" | ||
42 | |||
43 | /* The mailboxes used for RPMsg are defined in the Linux device tree | ||
44 | * PRU0 uses mailboxes 0 (From ARM) and 1 (To ARM) | ||
45 | * PRU1 uses mailboxes 2 (From ARM) and 3 (To ARM) | ||
46 | */ | ||
47 | #define MB_TO_ARM_HOST 1 | ||
48 | #define MB_FROM_ARM_HOST 0 | ||
49 | |||
50 | /* | ||
51 | * Using the name 'rpmsg-pru' will probe the rpmsg_pru driver found | ||
52 | * at linux-x.y.z/drivers/rpmsg/rpmsg_pru.c | ||
53 | */ | ||
54 | #define CHAN_NAME "rpmsg-pru" | ||
55 | #define CHAN_DESC "Channel 30" | ||
56 | #define CHAN_PORT 30 | ||
57 | |||
58 | /* | ||
59 | * Need to program the crossbar to bring the correct events into the | ||
60 | * PRUSS INTC | ||
61 | */ | ||
62 | #define CTRL_CORE_PRUSS1_IRQ_60_61 *(volatile unsigned int *) 0x4A002900 | ||
63 | #define MAILBOX3_IRQ_USER1 242 | ||
64 | |||
65 | /* | ||
66 | * Used to make sure the Linux drivers are ready for RPMsg communication | ||
67 | * Found at linux-x.y.z/include/uapi/linux/virtio_config.h | ||
68 | */ | ||
69 | #define VIRTIO_CONFIG_S_DRIVER_OK 4 | ||
70 | |||
71 | uint8_t payload[RPMSG_BUF_SIZE]; | ||
72 | |||
73 | /* | ||
74 | * main.c | ||
75 | */ | ||
76 | void main() { | ||
77 | struct pru_rpmsg_transport transport; | ||
78 | uint16_t src, dst, len; | ||
79 | uint32_t regValue; | ||
80 | volatile uint8_t *status; | ||
81 | |||
82 | /* allow OCP master port access by the PRU so the PRU can read external memories */ | ||
83 | CT_CFG.SYSCFG_bit.STANDBY_INIT = 0; | ||
84 | |||
85 | /* need to program the CROSSBAR to map MBX3 User1 event to PRUSS INTC event 60 */ | ||
86 | regValue = CTRL_CORE_PRUSS1_IRQ_60_61; | ||
87 | regValue &= 0xFFFFFE00; | ||
88 | CTRL_CORE_PRUSS1_IRQ_60_61 = regValue | MAILBOX3_IRQ_USER1; | ||
89 | |||
90 | /* Make sure the Linux drivers are ready for RPMsg communication */ | ||
91 | status = &resourceTable.rpmsg_vdev.status; | ||
92 | while (!(*status & VIRTIO_CONFIG_S_DRIVER_OK)); | ||
93 | |||
94 | /* Initialize pru_virtqueue corresponding to vring0 (PRU to ARM Host direction) */ | ||
95 | pru_virtqueue_init(&transport.virtqueue0, &resourceTable.rpmsg_vring0, &MBX3.MESSAGE[MB_TO_ARM_HOST], &MBX3.MESSAGE[MB_FROM_ARM_HOST]); | ||
96 | |||
97 | /* Initialize pru_virtqueue corresponding to vring1 (ARM Host to PRU direction) */ | ||
98 | pru_virtqueue_init(&transport.virtqueue1, &resourceTable.rpmsg_vring1, &MBX3.MESSAGE[MB_TO_ARM_HOST], &MBX3.MESSAGE[MB_FROM_ARM_HOST]); | ||
99 | |||
100 | /* Create the RPMsg channel between the PRU and ARM user space using the transport structure. | ||
101 | * The name 'rpmsg-pru' corresponds to the rpmsg_pru driver found | ||
102 | * at linux-x.y.z/drivers/rpmsg/rpmsg_pru.c | ||
103 | */ | ||
104 | while(pru_rpmsg_channel(RPMSG_NS_CREATE, &transport, CHAN_NAME, CHAN_DESC, CHAN_PORT) != PRU_RPMSG_SUCCESS); | ||
105 | while(1){ | ||
106 | if(MBX3.MESSAGE[MB_FROM_ARM_HOST] == 1){ | ||
107 | /* Receive the message */ | ||
108 | if(pru_rpmsg_receive(&transport, &src, &dst, payload, &len) == PRU_RPMSG_SUCCESS){ | ||
109 | /* Echo the message back to the same address from which we just received */ | ||
110 | pru_rpmsg_send(&transport, dst, src, payload, len); | ||
111 | } | ||
112 | } | ||
113 | } | ||
114 | } | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/resource_table_0.h b/examples/am571x/PRU_RPMsg_Echo_Polling1_0/resource_table_0.h deleted file mode 100755 index f95cc2e..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_0/resource_table_0.h +++ /dev/null | |||
@@ -1,118 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | /* | ||
35 | * ======== rsc_table_am335x_pru.h ======== | ||
36 | * | ||
37 | * Define the resource table entries for all PRU cores. This will be | ||
38 | * incorporated into corresponding base images, and used by the remoteproc | ||
39 | * on the host-side to allocated/reserve resources. | ||
40 | * | ||
41 | */ | ||
42 | |||
43 | |||
44 | #ifndef _RSC_TABLE_PRU_H_ | ||
45 | #define _RSC_TABLE_PRU_H_ | ||
46 | |||
47 | #include <stddef.h> | ||
48 | #include <rsc_types.h> | ||
49 | #include "pru_virtio_ids.h" | ||
50 | |||
51 | /* | ||
52 | * Sizes of the virtqueues (expressed in number of buffers supported, | ||
53 | * and must be power of 2) | ||
54 | */ | ||
55 | #define PRU_RPMSG_VQ0_SIZE 16 | ||
56 | #define PRU_RPMSG_VQ1_SIZE 16 | ||
57 | |||
58 | /* | ||
59 | * The feature bitmap for virtio rpmsg | ||
60 | */ | ||
61 | #define VIRTIO_RPMSG_F_NS 0 //name service notifications | ||
62 | |||
63 | /* This firmware supports name service notifications as one of its features */ | ||
64 | #define RPMSG_PRU_C0_FEATURES (1 << VIRTIO_RPMSG_F_NS) | ||
65 | |||
66 | struct my_resource_table { | ||
67 | struct resource_table base; | ||
68 | |||
69 | uint32_t offset[1]; /* Should match 'num' in actual definition */ | ||
70 | |||
71 | /* rpmsg vdev entry */ | ||
72 | struct fw_rsc_vdev rpmsg_vdev; | ||
73 | struct fw_rsc_vdev_vring rpmsg_vring0; | ||
74 | struct fw_rsc_vdev_vring rpmsg_vring1; | ||
75 | }; | ||
76 | |||
77 | #pragma DATA_SECTION(resourceTable, ".resource_table") | ||
78 | #pragma RETAIN(resourceTable) | ||
79 | struct my_resource_table resourceTable = { | ||
80 | 1, /* Resource table version: only version 1 is supported by the current driver */ | ||
81 | 1, /* number of entries in the table */ | ||
82 | 0, 0, /* reserved, must be zero */ | ||
83 | /* offsets to entries */ | ||
84 | { | ||
85 | offsetof(struct my_resource_table, rpmsg_vdev), | ||
86 | }, | ||
87 | |||
88 | /* rpmsg vdev entry */ | ||
89 | { | ||
90 | (uint32_t)TYPE_VDEV, //type | ||
91 | (uint32_t)VIRTIO_ID_RPMSG, //id | ||
92 | (uint32_t)0, //notifyid | ||
93 | (uint32_t)RPMSG_PRU_C0_FEATURES, //dfeatures | ||
94 | (uint32_t)0, //gfeatures | ||
95 | (uint32_t)0, //config_len | ||
96 | (uint8_t)0, //status | ||
97 | (uint8_t)2, //num_of_vrings, only two is supported | ||
98 | { (uint8_t)0, (uint8_t)0 }, //reserved | ||
99 | /* no config data */ | ||
100 | }, | ||
101 | /* the two vrings */ | ||
102 | { | ||
103 | 0, //da, will be populated by host, can't pass it in | ||
104 | 16, //align (bytes), | ||
105 | PRU_RPMSG_VQ0_SIZE, //num of descriptors | ||
106 | 0, //notifyid, will be populated, can't pass right now | ||
107 | 0 //reserved | ||
108 | }, | ||
109 | { | ||
110 | 0, //da, will be populated by host, can't pass it in | ||
111 | 16, //align (bytes), | ||
112 | PRU_RPMSG_VQ1_SIZE, //num of descriptors | ||
113 | 0, //notifyid, will be populated, can't pass right now | ||
114 | 0 //reserved | ||
115 | }, | ||
116 | }; | ||
117 | |||
118 | #endif /* _RSC_TABLE_PRU_H_ */ | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/.ccsproject b/examples/am571x/PRU_RPMsg_Echo_Polling1_1/.ccsproject deleted file mode 100644 index b169227..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/.ccsproject +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" ?> | ||
2 | <?ccsproject version="1.0"?> | ||
3 | <projectOptions> | ||
4 | <deviceVariant value="TMS192C2026.AM3359.BeagleBone_Black"/> | ||
5 | <deviceFamily value="PRU"/> | ||
6 | <deviceEndianness value="little"/> | ||
7 | <codegenToolVersion value="2.1.1"/> | ||
8 | <isElfFormat value="true"/> | ||
9 | <linkerCommandFile value="AM335x.cmd"/> | ||
10 | <rts value="libc.a"/> | ||
11 | <createSlaveProjects value=""/> | ||
12 | <templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/> | ||
13 | <isTargetManual value="false"/> | ||
14 | </projectOptions> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/.cproject b/examples/am571x/PRU_RPMsg_Echo_Polling1_1/.cproject deleted file mode 100644 index 6bcf452..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/.cproject +++ /dev/null | |||
@@ -1,188 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
3 | <storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings"> | ||
4 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Debug.273090423"> | ||
5 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.273090423" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
6 | <externalSettings/> | ||
7 | <extensions> | ||
8 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
9 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
10 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
11 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
12 | </extensions> | ||
13 | </storageModule> | ||
14 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
15 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.273090423" name="Debug" parent="com.ti.ccstudio.buildDefinitions.PRU.Debug" postbuildStep="" prebuildStep=""> | ||
16 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Debug.273090423." name="/" resourcePath=""> | ||
17 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain.397830315" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.2118566887"> | ||
18 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.479820422" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
19 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
20 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
21 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
22 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
23 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
24 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
25 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
26 | </option> | ||
27 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1130522147" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
28 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug.258183160" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug"/> | ||
29 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug.1359966084" name="GNU Make.Debug" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug"/> | ||
30 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug.734230227" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug"> | ||
31 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.2053891412" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
32 | <listOptionValue builtIn="false" value="pru0"/> | ||
33 | <listOptionValue builtIn="false" value="am4379"/> | ||
34 | <listOptionValue builtIn="false" value="icss1"/> | ||
35 | <listOptionValue builtIn="false" value="am5718"/> | ||
36 | </option> | ||
37 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.1076492667" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
38 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.420972037" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
39 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.945116455" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
40 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
41 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
42 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
43 | </option> | ||
44 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.1731580294" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/> | ||
45 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.584318042" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
46 | <listOptionValue builtIn="false" value="225"/> | ||
47 | </option> | ||
48 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.1977658102" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
49 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.1095522342" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
50 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.1487670061" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
51 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.1825029977" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
52 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.765509127" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
53 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.767101420" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
54 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.1224070181" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
55 | </tool> | ||
56 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.2118566887" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug"> | ||
57 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.761698756" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
58 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.1984735768" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
59 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.212988368" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
60 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.695214986" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
61 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.1486151805" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
62 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
63 | <listOptionValue builtIn="false" value=""../../../../lib/rpmsg_lib.lib""/> | ||
64 | </option> | ||
65 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.2128303653" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
66 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
67 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
68 | </option> | ||
69 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.1671589904" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
70 | <listOptionValue builtIn="false" value="ICSS1_PRU_CORE=1"/> | ||
71 | </option> | ||
72 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER.818455989" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
73 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.1384876758" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
74 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.637282767" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
75 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.990448726" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
76 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.1151350696" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
77 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.846021883" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
78 | </tool> | ||
79 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.1392608624" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"/> | ||
80 | </toolChain> | ||
81 | </folderInfo> | ||
82 | <sourceEntries> | ||
83 | <entry excluding="AM437x.cmd|AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
84 | </sourceEntries> | ||
85 | </configuration> | ||
86 | </storageModule> | ||
87 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
88 | </cconfiguration> | ||
89 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Release.308425420"> | ||
90 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Release.308425420" moduleId="org.eclipse.cdt.core.settings" name="Release"> | ||
91 | <externalSettings/> | ||
92 | <extensions> | ||
93 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
94 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
95 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
96 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
97 | </extensions> | ||
98 | </storageModule> | ||
99 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
100 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Release.308425420" name="Release" parent="com.ti.ccstudio.buildDefinitions.PRU.Release" postbuildStep="" prebuildStep=""> | ||
101 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Release.308425420." name="/" resourcePath=""> | ||
102 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain.766793026" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.448850747"> | ||
103 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.908324047" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
104 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
105 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
106 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
107 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
108 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
109 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
110 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
111 | </option> | ||
112 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1230294418" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
113 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease.479222540" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease"/> | ||
114 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease.1677191798" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease"/> | ||
115 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease.1462677482" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease"> | ||
116 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.1593232573" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
117 | <listOptionValue builtIn="false" value="pru0"/> | ||
118 | <listOptionValue builtIn="false" value="am4379"/> | ||
119 | <listOptionValue builtIn="false" value="icss1"/> | ||
120 | <listOptionValue builtIn="false" value="am5718"/> | ||
121 | </option> | ||
122 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.1312999349" name="Silicon version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
123 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.1121714939" name="Enables use of the hardware MAC available on some PRU cores (--hardware_mac)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
124 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.1210976779" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
125 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
126 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
127 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
128 | </option> | ||
129 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.1704693233" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
130 | <listOptionValue builtIn="false" value="225"/> | ||
131 | </option> | ||
132 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.1046074434" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
133 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.870129575" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
134 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.54044697" name="Specify the endianness of both code and data [See 'General' page to edit] (--endian)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
135 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.74823031" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
136 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.887321170" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
137 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.1545845703" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
138 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.1890223295" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
139 | </tool> | ||
140 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.448850747" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease"> | ||
141 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.584770927" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
142 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.879030094" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
143 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.2034950906" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
144 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.541559670" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
145 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.330479822" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
146 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
147 | <listOptionValue builtIn="false" value=""../../../../lib/rpmsg_lib.lib""/> | ||
148 | </option> | ||
149 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.1918870540" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
150 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
151 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
152 | </option> | ||
153 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.129595847" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
154 | <listOptionValue builtIn="false" value="ICSS1_PRU_CORE=1"/> | ||
155 | </option> | ||
156 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER.373267426" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
157 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.1954610545" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
158 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.2001399395" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
159 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.739247068" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
160 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.1674755443" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
161 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.2065017748" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
162 | </tool> | ||
163 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.118188977" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"/> | ||
164 | </toolChain> | ||
165 | </folderInfo> | ||
166 | <sourceEntries> | ||
167 | <entry excluding="AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
168 | </sourceEntries> | ||
169 | </configuration> | ||
170 | </storageModule> | ||
171 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
172 | </cconfiguration> | ||
173 | </storageModule> | ||
174 | <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> | ||
175 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
176 | <project id="PRU_RPMsg_Echo_Polling1.com.ti.ccstudio.buildDefinitions.PRU.ProjectType.815827881" name="PRU" projectType="com.ti.ccstudio.buildDefinitions.PRU.ProjectType"/> | ||
177 | </storageModule> | ||
178 | <storageModule moduleId="scannerConfiguration"/> | ||
179 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"> | ||
180 | <project-mappings> | ||
181 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/> | ||
182 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
183 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
184 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
185 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
186 | </project-mappings> | ||
187 | </storageModule> | ||
188 | </cproject> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/.project b/examples/am571x/PRU_RPMsg_Echo_Polling1_1/.project deleted file mode 100644 index b26340c..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/.project +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>PRU_RPMsg_Echo_Polling1_1</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <arguments> | ||
11 | </arguments> | ||
12 | </buildCommand> | ||
13 | <buildCommand> | ||
14 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
15 | <triggers>full,incremental,</triggers> | ||
16 | <arguments> | ||
17 | </arguments> | ||
18 | </buildCommand> | ||
19 | </buildSpec> | ||
20 | <natures> | ||
21 | <nature>com.ti.ccstudio.core.ccsNature</nature> | ||
22 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
23 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
24 | <nature>org.eclipse.cdt.core.ccnature</nature> | ||
25 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
26 | </natures> | ||
27 | </projectDescription> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/.settings/org.eclipse.cdt.codan.core.prefs b/examples/am571x/PRU_RPMsg_Echo_Polling1_1/.settings/org.eclipse.cdt.codan.core.prefs deleted file mode 100644 index f653028..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/.settings/org.eclipse.cdt.codan.core.prefs +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | inEditor=false | ||
3 | onBuild=false | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/.settings/org.eclipse.cdt.debug.core.prefs b/examples/am571x/PRU_RPMsg_Echo_Polling1_1/.settings/org.eclipse.cdt.debug.core.prefs deleted file mode 100644 index 2adc7b1..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/.settings/org.eclipse.cdt.debug.core.prefs +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | org.eclipse.cdt.debug.core.toggleBreakpointModel=com.ti.ccstudio.debug.CCSBreakpointMarker | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/AM57xx_PRU.cmd b/examples/am571x/PRU_RPMsg_Echo_Polling1_1/AM57xx_PRU.cmd deleted file mode 100755 index f15f640..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/AM57xx_PRU.cmd +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | /****************************************************************************/ | ||
2 | /* AM57xx_PRU.cmd */ | ||
3 | /* Copyright (c) 2015 Texas Instruments Incorporated */ | ||
4 | /* */ | ||
5 | /* Description: This file is a linker command file that can be used for */ | ||
6 | /* linking PRU programs built with the C compiler and */ | ||
7 | /* the resulting .out file on an AM57xx device. */ | ||
8 | /****************************************************************************/ | ||
9 | |||
10 | -cr /* Link using C conventions */ | ||
11 | |||
12 | /* Specify the System Memory Map */ | ||
13 | MEMORY | ||
14 | { | ||
15 | PAGE 0: | ||
16 | PRU_IMEM : org = 0x00000000 len = 0x00003000 /* 12kB PRU-ICSS1 Instruction RAM */ | ||
17 | |||
18 | PAGE 1: | ||
19 | |||
20 | /* RAM */ | ||
21 | |||
22 | PRU_DMEM_0_1 : org = 0x00000000 len = 0x00002000 CREGISTER=24 /* 8kB PRU Data RAM 0_1 */ | ||
23 | PRU_DMEM_1_0 : org = 0x00002000 len = 0x00002000 CREGISTER=25 /* 8kB PRU Data RAM 1_0 */ | ||
24 | PRU_SHAREDMEM : org = 0x00010000 len = 0x00008000 CREGISTER=28 /* 32kB Shared RAM */ | ||
25 | |||
26 | DDR : org = 0x80000000 len = 0x00000100 CREGISTER=31 | ||
27 | L3OCMC : org = 0x40000000 len = 0x00010000 CREGISTER=30 | ||
28 | |||
29 | |||
30 | /* Peripherals */ | ||
31 | |||
32 | PRU_CFG : org = 0x00026000 len = 0x00000120 CREGISTER=4 | ||
33 | PRU_ECAP : org = 0x00030000 len = 0x00000060 CREGISTER=3 | ||
34 | PRU_IEP : org = 0x0002E000 len = 0x0000031C CREGISTER=26 | ||
35 | PRU_INTC : org = 0x00020000 len = 0x00001504 CREGISTER=0 | ||
36 | PRU_UART : org = 0x00028000 len = 0x00000038 CREGISTER=7 | ||
37 | |||
38 | MCASP3_DMA : org = 0x46000000 len = 0x00000100 CREGISTER=8 | ||
39 | I2C3 : org = 0x48060000 len = 0x00000300 CREGISTER=5 | ||
40 | |||
41 | RSVD1 : org = 0x48040000 len = 0x0000005C CREGISTER=1 | ||
42 | RSVD2 : org = 0x4802A000 len = 0x000000D8 CREGISTER=2 | ||
43 | RSVD6 : org = 0x48030000 len = 0x000001A4 CREGISTER=6 | ||
44 | RSVD9 : org = 0x4A100000 len = 0x0000128C CREGISTER=9 | ||
45 | RSVD10 : org = 0x48318000 len = 0x00000100 CREGISTER=10 | ||
46 | RSVD11 : org = 0x48022000 len = 0x00000088 CREGISTER=11 | ||
47 | RSVD12 : org = 0x48024000 len = 0x00000088 CREGISTER=12 | ||
48 | RSVD13 : org = 0x48310000 len = 0x00000100 CREGISTER=13 | ||
49 | RSVD14 : org = 0x481CC000 len = 0x000001E8 CREGISTER=14 | ||
50 | RSVD15 : org = 0x481D0000 len = 0x000001E8 CREGISTER=15 | ||
51 | RSVD16 : org = 0x481A0000 len = 0x000001A4 CREGISTER=16 | ||
52 | RSVD17 : org = 0x4819C000 len = 0x000000D8 CREGISTER=17 | ||
53 | RSVD18 : org = 0x48300000 len = 0x000002C4 CREGISTER=18 | ||
54 | RSVD19 : org = 0x48302000 len = 0x000002C4 CREGISTER=19 | ||
55 | RSVD20 : org = 0x48304000 len = 0x000002C4 CREGISTER=20 | ||
56 | RSVD21 : org = 0x00032400 len = 0x00000100 CREGISTER=21 | ||
57 | RSVD22 : org = 0x480C8000 len = 0x00000140 CREGISTER=22 | ||
58 | RSVD23 : org = 0x480CA000 len = 0x00000880 CREGISTER=23 | ||
59 | RSVD27 : org = 0x00032000 len = 0x00000100 CREGISTER=27 | ||
60 | RSVD29 : org = 0x49000000 len = 0x00001098 CREGISTER=29 | ||
61 | } | ||
62 | |||
63 | /* Specify the sections allocation into memory */ | ||
64 | SECTIONS { | ||
65 | /* Forces _c_int00 to the start of PRU IRAM. Not necessary when loading | ||
66 | an ELF file, but useful when loading a binary */ | ||
67 | .text:_c_int00* > 0x0, PAGE 0 | ||
68 | |||
69 | .text > PRU_IMEM, PAGE 0 | ||
70 | .stack > PRU_DMEM_0_1, PAGE 1 | ||
71 | .bss > PRU_DMEM_0_1, PAGE 1 | ||
72 | .cio > PRU_DMEM_0_1, PAGE 1 | ||
73 | .data > PRU_DMEM_0_1, PAGE 1 | ||
74 | .switch > PRU_DMEM_0_1, PAGE 1 | ||
75 | .sysmem > PRU_DMEM_0_1, PAGE 1 | ||
76 | .cinit > PRU_DMEM_0_1, PAGE 1 | ||
77 | .rodata > PRU_DMEM_0_1, PAGE 1 | ||
78 | .rofardata > PRU_DMEM_0_1, PAGE 1 | ||
79 | .farbss > PRU_DMEM_0_1, PAGE 1 | ||
80 | .fardata > PRU_DMEM_0_1, PAGE 1 | ||
81 | |||
82 | .resource_table > PRU_DMEM_0_1, PAGE 1 | ||
83 | } | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/Makefile b/examples/am571x/PRU_RPMsg_Echo_Polling1_1/Makefile deleted file mode 100644 index 15a5222..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/Makefile +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | # PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: | ||
2 | #(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
3 | #(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
4 | ifndef PRU_CGT | ||
5 | define ERROR_BODY | ||
6 | |||
7 | ************************************************************ | ||
8 | PRU_CGT environment variable is not set. Examples given: | ||
9 | (Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
10 | (Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
11 | ************************************************************ | ||
12 | |||
13 | endef | ||
14 | $(error $(ERROR_BODY)) | ||
15 | endif | ||
16 | |||
17 | MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
18 | CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH)))) | ||
19 | PROJ_NAME=$(CURRENT_DIR) | ||
20 | LINKER_COMMAND_FILE=./AM57xx_PRU.cmd | ||
21 | LIBS=--library=../../../lib/rpmsg_lib.lib | ||
22 | INCLUDE=--include_path=../../../include --include_path=../../../include/am571x | ||
23 | STACK_SIZE=0x100 | ||
24 | HEAP_SIZE=0x100 | ||
25 | GEN_DIR=gen | ||
26 | |||
27 | #Common compiler and linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
28 | CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_directory=$(GEN_DIR) --pp_directory=$(GEN_DIR) -ppd -ppa | ||
29 | #Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
30 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | ||
31 | |||
32 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | ||
33 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | ||
34 | SOURCES=$(wildcard *.c) | ||
35 | #Using .object instead of .obj in order to not conflict with the CCS build process | ||
36 | OBJECTS=$(patsubst %,$(GEN_DIR)/%,$(SOURCES:.c=.object)) | ||
37 | |||
38 | all: printStart $(TARGET) printEnd | ||
39 | |||
40 | printStart: | ||
41 | @echo '' | ||
42 | @echo '************************************************************' | ||
43 | @echo 'Building project: $(PROJ_NAME)' | ||
44 | |||
45 | printEnd: | ||
46 | @echo '' | ||
47 | @echo 'Finished building project: $(PROJ_NAME)' | ||
48 | @echo '************************************************************' | ||
49 | @echo '' | ||
50 | |||
51 | # Invokes the linker (-z flag) to make the .out file | ||
52 | $(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) | ||
53 | @echo '' | ||
54 | @echo 'Building target: $@' | ||
55 | @echo 'Invoking: PRU Linker' | ||
56 | $(PRU_CGT)/bin/clpru $(CFLAGS) -z -i$(PRU_CGT)/lib -i$(PRU_CGT)/include $(LFLAGS) -o $(TARGET) $(OBJECTS) -m$(MAP) $(LINKER_COMMAND_FILE) --library=libc.a $(LIBS) | ||
57 | @echo 'Finished building target: $@' | ||
58 | @echo '' | ||
59 | @echo 'Output files can be found in the "$(GEN_DIR)" directory' | ||
60 | |||
61 | # Invokes the compiler on all c files in the directory to create the object files | ||
62 | $(GEN_DIR)/%.object: %.c | ||
63 | @mkdir -p $(GEN_DIR) | ||
64 | @echo '' | ||
65 | @echo 'Building file: $<' | ||
66 | @echo 'Invoking: PRU Compiler' | ||
67 | $(PRU_CGT)/bin/clpru --include_path=$(PRU_CGT)/include $(INCLUDE) $(CFLAGS) -fe $@ $< | ||
68 | |||
69 | .PHONY: all clean | ||
70 | |||
71 | # Remove the $(GEN_DIR) directory | ||
72 | clean: | ||
73 | @echo '' | ||
74 | @echo '************************************************************' | ||
75 | @echo 'Cleaning project: $(PROJ_NAME)' | ||
76 | @echo '' | ||
77 | @echo 'Removing files in the "$(GEN_DIR)" directory' | ||
78 | @rm -rf $(GEN_DIR) | ||
79 | @echo '' | ||
80 | @echo 'Finished cleaning project: $(PROJ_NAME)' | ||
81 | @echo '************************************************************' | ||
82 | @echo '' | ||
83 | |||
84 | # Includes the dependencies that the compiler creates (-ppd and -ppa flags) | ||
85 | -include $(OBJECTS:%.object=%.pp) | ||
86 | |||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/main.c b/examples/am571x/PRU_RPMsg_Echo_Polling1_1/main.c deleted file mode 100644 index 42574a8..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/main.c +++ /dev/null | |||
@@ -1,114 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | #include <stdint.h> | ||
35 | #include <stdio.h> | ||
36 | #include <pru_cfg.h> | ||
37 | #include <rsc_types.h> | ||
38 | #include <pru_virtqueue.h> | ||
39 | #include <pru_rpmsg.h> | ||
40 | #include <sys_mailbox.h> | ||
41 | #include "resource_table_1.h" | ||
42 | |||
43 | /* The mailboxes used for RPMsg are defined in the Linux device tree | ||
44 | * PRU0 uses mailboxes 0 (From ARM) and 1 (To ARM) | ||
45 | * PRU1 uses mailboxes 2 (From ARM) and 3 (To ARM) | ||
46 | */ | ||
47 | #define MB_TO_ARM_HOST 3 | ||
48 | #define MB_FROM_ARM_HOST 2 | ||
49 | |||
50 | /* | ||
51 | * Using the name 'rpmsg-pru' will probe the rpmsg_pru driver found | ||
52 | * at linux-x.y.z/drivers/rpmsg/rpmsg_pru.c | ||
53 | */ | ||
54 | #define CHAN_NAME "rpmsg-pru" | ||
55 | #define CHAN_DESC "Channel 31" | ||
56 | #define CHAN_PORT 31 | ||
57 | |||
58 | /* | ||
59 | * Need to program the crossbar to bring the correct events into the | ||
60 | * PRUSS INTC | ||
61 | */ | ||
62 | #define CTRL_CORE_PRUSS1_IRQ_58_59 *(volatile unsigned int *) 0x4A0028FC | ||
63 | #define MAILBOX3_IRQ_USER2 243 | ||
64 | |||
65 | /* | ||
66 | * Used to make sure the Linux drivers are ready for RPMsg communication | ||
67 | * Found at linux-x.y.z/include/uapi/linux/virtio_config.h | ||
68 | */ | ||
69 | #define VIRTIO_CONFIG_S_DRIVER_OK 4 | ||
70 | |||
71 | uint8_t payload[RPMSG_BUF_SIZE]; | ||
72 | |||
73 | /* | ||
74 | * main.c | ||
75 | */ | ||
76 | void main() { | ||
77 | struct pru_rpmsg_transport transport; | ||
78 | uint16_t src, dst, len; | ||
79 | uint32_t regValue; | ||
80 | volatile uint8_t *status; | ||
81 | |||
82 | /* allow OCP master port access by the PRU so the PRU can read external memories */ | ||
83 | CT_CFG.SYSCFG_bit.STANDBY_INIT = 0; | ||
84 | |||
85 | /* need to program the CROSSBAR to map MBX3 User2 event to PRUSS INTC event 59 */ | ||
86 | regValue = CTRL_CORE_PRUSS1_IRQ_58_59; | ||
87 | regValue &= 0xFE00FFFF; | ||
88 | CTRL_CORE_PRUSS1_IRQ_58_59 = regValue | (MAILBOX3_IRQ_USER2 << 16); | ||
89 | |||
90 | /* Make sure the Linux drivers are ready for RPMsg communication */ | ||
91 | status = &resourceTable.rpmsg_vdev.status; | ||
92 | while (!(*status & VIRTIO_CONFIG_S_DRIVER_OK)); | ||
93 | |||
94 | /* Initialize pru_virtqueue corresponding to vring0 (PRU to ARM Host direction) */ | ||
95 | pru_virtqueue_init(&transport.virtqueue0, &resourceTable.rpmsg_vring0, &MBX3.MESSAGE[MB_TO_ARM_HOST], &MBX3.MESSAGE[MB_FROM_ARM_HOST]); | ||
96 | |||
97 | /* Initialize pru_virtqueue corresponding to vring1 (ARM Host to PRU direction) */ | ||
98 | pru_virtqueue_init(&transport.virtqueue1, &resourceTable.rpmsg_vring1, &MBX3.MESSAGE[MB_TO_ARM_HOST], &MBX3.MESSAGE[MB_FROM_ARM_HOST]); | ||
99 | |||
100 | /* Create the RPMsg channel between the PRU and ARM user space using the transport structure. | ||
101 | * The name 'rpmsg-pru' corresponds to the rpmsg_pru driver found | ||
102 | * at linux-x.y.z/drivers/rpmsg/rpmsg_pru.c | ||
103 | */ | ||
104 | while(pru_rpmsg_channel(RPMSG_NS_CREATE, &transport, CHAN_NAME, CHAN_DESC, CHAN_PORT) != PRU_RPMSG_SUCCESS); | ||
105 | while(1){ | ||
106 | if(MBX3.MESSAGE[MB_FROM_ARM_HOST] == 1){ | ||
107 | /* Receive the message */ | ||
108 | if(pru_rpmsg_receive(&transport, &src, &dst, payload, &len) == PRU_RPMSG_SUCCESS){ | ||
109 | /* Echo the message back to the same address from which we just received */ | ||
110 | pru_rpmsg_send(&transport, dst, src, payload, len); | ||
111 | } | ||
112 | } | ||
113 | } | ||
114 | } | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/resource_table_1.h b/examples/am571x/PRU_RPMsg_Echo_Polling1_1/resource_table_1.h deleted file mode 100755 index f95cc2e..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling1_1/resource_table_1.h +++ /dev/null | |||
@@ -1,118 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | /* | ||
35 | * ======== rsc_table_am335x_pru.h ======== | ||
36 | * | ||
37 | * Define the resource table entries for all PRU cores. This will be | ||
38 | * incorporated into corresponding base images, and used by the remoteproc | ||
39 | * on the host-side to allocated/reserve resources. | ||
40 | * | ||
41 | */ | ||
42 | |||
43 | |||
44 | #ifndef _RSC_TABLE_PRU_H_ | ||
45 | #define _RSC_TABLE_PRU_H_ | ||
46 | |||
47 | #include <stddef.h> | ||
48 | #include <rsc_types.h> | ||
49 | #include "pru_virtio_ids.h" | ||
50 | |||
51 | /* | ||
52 | * Sizes of the virtqueues (expressed in number of buffers supported, | ||
53 | * and must be power of 2) | ||
54 | */ | ||
55 | #define PRU_RPMSG_VQ0_SIZE 16 | ||
56 | #define PRU_RPMSG_VQ1_SIZE 16 | ||
57 | |||
58 | /* | ||
59 | * The feature bitmap for virtio rpmsg | ||
60 | */ | ||
61 | #define VIRTIO_RPMSG_F_NS 0 //name service notifications | ||
62 | |||
63 | /* This firmware supports name service notifications as one of its features */ | ||
64 | #define RPMSG_PRU_C0_FEATURES (1 << VIRTIO_RPMSG_F_NS) | ||
65 | |||
66 | struct my_resource_table { | ||
67 | struct resource_table base; | ||
68 | |||
69 | uint32_t offset[1]; /* Should match 'num' in actual definition */ | ||
70 | |||
71 | /* rpmsg vdev entry */ | ||
72 | struct fw_rsc_vdev rpmsg_vdev; | ||
73 | struct fw_rsc_vdev_vring rpmsg_vring0; | ||
74 | struct fw_rsc_vdev_vring rpmsg_vring1; | ||
75 | }; | ||
76 | |||
77 | #pragma DATA_SECTION(resourceTable, ".resource_table") | ||
78 | #pragma RETAIN(resourceTable) | ||
79 | struct my_resource_table resourceTable = { | ||
80 | 1, /* Resource table version: only version 1 is supported by the current driver */ | ||
81 | 1, /* number of entries in the table */ | ||
82 | 0, 0, /* reserved, must be zero */ | ||
83 | /* offsets to entries */ | ||
84 | { | ||
85 | offsetof(struct my_resource_table, rpmsg_vdev), | ||
86 | }, | ||
87 | |||
88 | /* rpmsg vdev entry */ | ||
89 | { | ||
90 | (uint32_t)TYPE_VDEV, //type | ||
91 | (uint32_t)VIRTIO_ID_RPMSG, //id | ||
92 | (uint32_t)0, //notifyid | ||
93 | (uint32_t)RPMSG_PRU_C0_FEATURES, //dfeatures | ||
94 | (uint32_t)0, //gfeatures | ||
95 | (uint32_t)0, //config_len | ||
96 | (uint8_t)0, //status | ||
97 | (uint8_t)2, //num_of_vrings, only two is supported | ||
98 | { (uint8_t)0, (uint8_t)0 }, //reserved | ||
99 | /* no config data */ | ||
100 | }, | ||
101 | /* the two vrings */ | ||
102 | { | ||
103 | 0, //da, will be populated by host, can't pass it in | ||
104 | 16, //align (bytes), | ||
105 | PRU_RPMSG_VQ0_SIZE, //num of descriptors | ||
106 | 0, //notifyid, will be populated, can't pass right now | ||
107 | 0 //reserved | ||
108 | }, | ||
109 | { | ||
110 | 0, //da, will be populated by host, can't pass it in | ||
111 | 16, //align (bytes), | ||
112 | PRU_RPMSG_VQ1_SIZE, //num of descriptors | ||
113 | 0, //notifyid, will be populated, can't pass right now | ||
114 | 0 //reserved | ||
115 | }, | ||
116 | }; | ||
117 | |||
118 | #endif /* _RSC_TABLE_PRU_H_ */ | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/.ccsproject b/examples/am571x/PRU_RPMsg_Echo_Polling2_0/.ccsproject deleted file mode 100644 index b169227..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/.ccsproject +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" ?> | ||
2 | <?ccsproject version="1.0"?> | ||
3 | <projectOptions> | ||
4 | <deviceVariant value="TMS192C2026.AM3359.BeagleBone_Black"/> | ||
5 | <deviceFamily value="PRU"/> | ||
6 | <deviceEndianness value="little"/> | ||
7 | <codegenToolVersion value="2.1.1"/> | ||
8 | <isElfFormat value="true"/> | ||
9 | <linkerCommandFile value="AM335x.cmd"/> | ||
10 | <rts value="libc.a"/> | ||
11 | <createSlaveProjects value=""/> | ||
12 | <templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/> | ||
13 | <isTargetManual value="false"/> | ||
14 | </projectOptions> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/.cproject b/examples/am571x/PRU_RPMsg_Echo_Polling2_0/.cproject deleted file mode 100644 index 521abb6..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/.cproject +++ /dev/null | |||
@@ -1,188 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
3 | <storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings"> | ||
4 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Debug.381480084"> | ||
5 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.381480084" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
6 | <externalSettings/> | ||
7 | <extensions> | ||
8 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
9 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
10 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
11 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
12 | </extensions> | ||
13 | </storageModule> | ||
14 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
15 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.381480084" name="Debug" parent="com.ti.ccstudio.buildDefinitions.PRU.Debug" postbuildStep="" prebuildStep=""> | ||
16 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Debug.381480084." name="/" resourcePath=""> | ||
17 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain.153411558" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.1298946026"> | ||
18 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.2060225005" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
19 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
20 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
21 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
22 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
23 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
24 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
25 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
26 | </option> | ||
27 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.646625615" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
28 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug.1580017328" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug"/> | ||
29 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug.935670036" name="GNU Make.Debug" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug"/> | ||
30 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug.1245346683" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug"> | ||
31 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.1480008948" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
32 | <listOptionValue builtIn="false" value="pru0"/> | ||
33 | <listOptionValue builtIn="false" value="am4379"/> | ||
34 | <listOptionValue builtIn="false" value="icss1"/> | ||
35 | <listOptionValue builtIn="false" value="am5718"/> | ||
36 | </option> | ||
37 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.1902936821" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
38 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.1517986697" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
39 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.291163287" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
40 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
41 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
42 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
43 | </option> | ||
44 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.1353095423" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/> | ||
45 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.272695776" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
46 | <listOptionValue builtIn="false" value="225"/> | ||
47 | </option> | ||
48 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.1218963607" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
49 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.288348080" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
50 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.36368320" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
51 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.1509414565" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
52 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.203719352" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
53 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.1254314830" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
54 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.115933409" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
55 | </tool> | ||
56 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.1298946026" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug"> | ||
57 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.695322684" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
58 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.1260455671" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
59 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.1880899319" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
60 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.1349120154" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
61 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.384888937" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
62 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
63 | <listOptionValue builtIn="false" value=""../../../../lib/rpmsg_lib.lib""/> | ||
64 | </option> | ||
65 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.1832109841" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
66 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
67 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
68 | </option> | ||
69 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.962076894" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
70 | <listOptionValue builtIn="false" value="ICSS1_PRU_CORE=1"/> | ||
71 | </option> | ||
72 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER.66181104" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
73 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.550081212" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
74 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.36591653" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
75 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.2005537151" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
76 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.2110288727" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
77 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.381301640" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
78 | </tool> | ||
79 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.1130139170" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"/> | ||
80 | </toolChain> | ||
81 | </folderInfo> | ||
82 | <sourceEntries> | ||
83 | <entry excluding="AM437x.cmd|AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
84 | </sourceEntries> | ||
85 | </configuration> | ||
86 | </storageModule> | ||
87 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
88 | </cconfiguration> | ||
89 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Release.1778392550"> | ||
90 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1778392550" moduleId="org.eclipse.cdt.core.settings" name="Release"> | ||
91 | <externalSettings/> | ||
92 | <extensions> | ||
93 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
94 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
95 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
96 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
97 | </extensions> | ||
98 | </storageModule> | ||
99 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
100 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Release.1778392550" name="Release" parent="com.ti.ccstudio.buildDefinitions.PRU.Release" postbuildStep="" prebuildStep=""> | ||
101 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Release.1778392550." name="/" resourcePath=""> | ||
102 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain.144318780" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.83743293"> | ||
103 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.72561647" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
104 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
105 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
106 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
107 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
108 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
109 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
110 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
111 | </option> | ||
112 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.12898709" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
113 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease.830879844" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease"/> | ||
114 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease.995223294" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease"/> | ||
115 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease.1523585190" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease"> | ||
116 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.1017338092" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
117 | <listOptionValue builtIn="false" value="pru0"/> | ||
118 | <listOptionValue builtIn="false" value="am4379"/> | ||
119 | <listOptionValue builtIn="false" value="icss1"/> | ||
120 | <listOptionValue builtIn="false" value="am5718"/> | ||
121 | </option> | ||
122 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.1464835294" name="Silicon version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
123 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.274159158" name="Enables use of the hardware MAC available on some PRU cores (--hardware_mac)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
124 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.163178908" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
125 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
126 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
127 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
128 | </option> | ||
129 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.767821471" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
130 | <listOptionValue builtIn="false" value="225"/> | ||
131 | </option> | ||
132 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.1150480713" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
133 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.1870572832" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
134 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.503510350" name="Specify the endianness of both code and data [See 'General' page to edit] (--endian)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
135 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.832397199" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
136 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.1733689983" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
137 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.1650507127" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
138 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.864472750" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
139 | </tool> | ||
140 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.83743293" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease"> | ||
141 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.201562647" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
142 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.1587632828" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
143 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.1132951942" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
144 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.364985579" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
145 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.455353585" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
146 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
147 | <listOptionValue builtIn="false" value=""../../../../lib/rpmsg_lib.lib""/> | ||
148 | </option> | ||
149 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.1927078838" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
150 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
151 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
152 | </option> | ||
153 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.2068404913" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
154 | <listOptionValue builtIn="false" value="ICSS1_PRU_CORE=1"/> | ||
155 | </option> | ||
156 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER.1444734962" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
157 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.335387686" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
158 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.2072844039" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
159 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.126737927" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
160 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.1559128859" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
161 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.463737371" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
162 | </tool> | ||
163 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.843641313" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"/> | ||
164 | </toolChain> | ||
165 | </folderInfo> | ||
166 | <sourceEntries> | ||
167 | <entry excluding="AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
168 | </sourceEntries> | ||
169 | </configuration> | ||
170 | </storageModule> | ||
171 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
172 | </cconfiguration> | ||
173 | </storageModule> | ||
174 | <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> | ||
175 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
176 | <project id="PRU_RPMsg_Echo_Polling0.com.ti.ccstudio.buildDefinitions.PRU.ProjectType.1844420452" name="PRU" projectType="com.ti.ccstudio.buildDefinitions.PRU.ProjectType"/> | ||
177 | </storageModule> | ||
178 | <storageModule moduleId="scannerConfiguration"/> | ||
179 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"> | ||
180 | <project-mappings> | ||
181 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/> | ||
182 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
183 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
184 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
185 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
186 | </project-mappings> | ||
187 | </storageModule> | ||
188 | </cproject> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/.project b/examples/am571x/PRU_RPMsg_Echo_Polling2_0/.project deleted file mode 100644 index f18f042..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/.project +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>PRU_RPMsg_Echo_Polling2_0</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <arguments> | ||
11 | </arguments> | ||
12 | </buildCommand> | ||
13 | <buildCommand> | ||
14 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
15 | <triggers>full,incremental,</triggers> | ||
16 | <arguments> | ||
17 | </arguments> | ||
18 | </buildCommand> | ||
19 | </buildSpec> | ||
20 | <natures> | ||
21 | <nature>com.ti.ccstudio.core.ccsNature</nature> | ||
22 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
23 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
24 | <nature>org.eclipse.cdt.core.ccnature</nature> | ||
25 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
26 | </natures> | ||
27 | </projectDescription> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/.settings/org.eclipse.cdt.codan.core.prefs b/examples/am571x/PRU_RPMsg_Echo_Polling2_0/.settings/org.eclipse.cdt.codan.core.prefs deleted file mode 100644 index f653028..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/.settings/org.eclipse.cdt.codan.core.prefs +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | inEditor=false | ||
3 | onBuild=false | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/.settings/org.eclipse.cdt.debug.core.prefs b/examples/am571x/PRU_RPMsg_Echo_Polling2_0/.settings/org.eclipse.cdt.debug.core.prefs deleted file mode 100644 index 2adc7b1..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/.settings/org.eclipse.cdt.debug.core.prefs +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | org.eclipse.cdt.debug.core.toggleBreakpointModel=com.ti.ccstudio.debug.CCSBreakpointMarker | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/AM57xx_PRU.cmd b/examples/am571x/PRU_RPMsg_Echo_Polling2_0/AM57xx_PRU.cmd deleted file mode 100755 index f15f640..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/AM57xx_PRU.cmd +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | /****************************************************************************/ | ||
2 | /* AM57xx_PRU.cmd */ | ||
3 | /* Copyright (c) 2015 Texas Instruments Incorporated */ | ||
4 | /* */ | ||
5 | /* Description: This file is a linker command file that can be used for */ | ||
6 | /* linking PRU programs built with the C compiler and */ | ||
7 | /* the resulting .out file on an AM57xx device. */ | ||
8 | /****************************************************************************/ | ||
9 | |||
10 | -cr /* Link using C conventions */ | ||
11 | |||
12 | /* Specify the System Memory Map */ | ||
13 | MEMORY | ||
14 | { | ||
15 | PAGE 0: | ||
16 | PRU_IMEM : org = 0x00000000 len = 0x00003000 /* 12kB PRU-ICSS1 Instruction RAM */ | ||
17 | |||
18 | PAGE 1: | ||
19 | |||
20 | /* RAM */ | ||
21 | |||
22 | PRU_DMEM_0_1 : org = 0x00000000 len = 0x00002000 CREGISTER=24 /* 8kB PRU Data RAM 0_1 */ | ||
23 | PRU_DMEM_1_0 : org = 0x00002000 len = 0x00002000 CREGISTER=25 /* 8kB PRU Data RAM 1_0 */ | ||
24 | PRU_SHAREDMEM : org = 0x00010000 len = 0x00008000 CREGISTER=28 /* 32kB Shared RAM */ | ||
25 | |||
26 | DDR : org = 0x80000000 len = 0x00000100 CREGISTER=31 | ||
27 | L3OCMC : org = 0x40000000 len = 0x00010000 CREGISTER=30 | ||
28 | |||
29 | |||
30 | /* Peripherals */ | ||
31 | |||
32 | PRU_CFG : org = 0x00026000 len = 0x00000120 CREGISTER=4 | ||
33 | PRU_ECAP : org = 0x00030000 len = 0x00000060 CREGISTER=3 | ||
34 | PRU_IEP : org = 0x0002E000 len = 0x0000031C CREGISTER=26 | ||
35 | PRU_INTC : org = 0x00020000 len = 0x00001504 CREGISTER=0 | ||
36 | PRU_UART : org = 0x00028000 len = 0x00000038 CREGISTER=7 | ||
37 | |||
38 | MCASP3_DMA : org = 0x46000000 len = 0x00000100 CREGISTER=8 | ||
39 | I2C3 : org = 0x48060000 len = 0x00000300 CREGISTER=5 | ||
40 | |||
41 | RSVD1 : org = 0x48040000 len = 0x0000005C CREGISTER=1 | ||
42 | RSVD2 : org = 0x4802A000 len = 0x000000D8 CREGISTER=2 | ||
43 | RSVD6 : org = 0x48030000 len = 0x000001A4 CREGISTER=6 | ||
44 | RSVD9 : org = 0x4A100000 len = 0x0000128C CREGISTER=9 | ||
45 | RSVD10 : org = 0x48318000 len = 0x00000100 CREGISTER=10 | ||
46 | RSVD11 : org = 0x48022000 len = 0x00000088 CREGISTER=11 | ||
47 | RSVD12 : org = 0x48024000 len = 0x00000088 CREGISTER=12 | ||
48 | RSVD13 : org = 0x48310000 len = 0x00000100 CREGISTER=13 | ||
49 | RSVD14 : org = 0x481CC000 len = 0x000001E8 CREGISTER=14 | ||
50 | RSVD15 : org = 0x481D0000 len = 0x000001E8 CREGISTER=15 | ||
51 | RSVD16 : org = 0x481A0000 len = 0x000001A4 CREGISTER=16 | ||
52 | RSVD17 : org = 0x4819C000 len = 0x000000D8 CREGISTER=17 | ||
53 | RSVD18 : org = 0x48300000 len = 0x000002C4 CREGISTER=18 | ||
54 | RSVD19 : org = 0x48302000 len = 0x000002C4 CREGISTER=19 | ||
55 | RSVD20 : org = 0x48304000 len = 0x000002C4 CREGISTER=20 | ||
56 | RSVD21 : org = 0x00032400 len = 0x00000100 CREGISTER=21 | ||
57 | RSVD22 : org = 0x480C8000 len = 0x00000140 CREGISTER=22 | ||
58 | RSVD23 : org = 0x480CA000 len = 0x00000880 CREGISTER=23 | ||
59 | RSVD27 : org = 0x00032000 len = 0x00000100 CREGISTER=27 | ||
60 | RSVD29 : org = 0x49000000 len = 0x00001098 CREGISTER=29 | ||
61 | } | ||
62 | |||
63 | /* Specify the sections allocation into memory */ | ||
64 | SECTIONS { | ||
65 | /* Forces _c_int00 to the start of PRU IRAM. Not necessary when loading | ||
66 | an ELF file, but useful when loading a binary */ | ||
67 | .text:_c_int00* > 0x0, PAGE 0 | ||
68 | |||
69 | .text > PRU_IMEM, PAGE 0 | ||
70 | .stack > PRU_DMEM_0_1, PAGE 1 | ||
71 | .bss > PRU_DMEM_0_1, PAGE 1 | ||
72 | .cio > PRU_DMEM_0_1, PAGE 1 | ||
73 | .data > PRU_DMEM_0_1, PAGE 1 | ||
74 | .switch > PRU_DMEM_0_1, PAGE 1 | ||
75 | .sysmem > PRU_DMEM_0_1, PAGE 1 | ||
76 | .cinit > PRU_DMEM_0_1, PAGE 1 | ||
77 | .rodata > PRU_DMEM_0_1, PAGE 1 | ||
78 | .rofardata > PRU_DMEM_0_1, PAGE 1 | ||
79 | .farbss > PRU_DMEM_0_1, PAGE 1 | ||
80 | .fardata > PRU_DMEM_0_1, PAGE 1 | ||
81 | |||
82 | .resource_table > PRU_DMEM_0_1, PAGE 1 | ||
83 | } | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/Makefile b/examples/am571x/PRU_RPMsg_Echo_Polling2_0/Makefile deleted file mode 100644 index 15a5222..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/Makefile +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | # PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: | ||
2 | #(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
3 | #(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
4 | ifndef PRU_CGT | ||
5 | define ERROR_BODY | ||
6 | |||
7 | ************************************************************ | ||
8 | PRU_CGT environment variable is not set. Examples given: | ||
9 | (Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
10 | (Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
11 | ************************************************************ | ||
12 | |||
13 | endef | ||
14 | $(error $(ERROR_BODY)) | ||
15 | endif | ||
16 | |||
17 | MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
18 | CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH)))) | ||
19 | PROJ_NAME=$(CURRENT_DIR) | ||
20 | LINKER_COMMAND_FILE=./AM57xx_PRU.cmd | ||
21 | LIBS=--library=../../../lib/rpmsg_lib.lib | ||
22 | INCLUDE=--include_path=../../../include --include_path=../../../include/am571x | ||
23 | STACK_SIZE=0x100 | ||
24 | HEAP_SIZE=0x100 | ||
25 | GEN_DIR=gen | ||
26 | |||
27 | #Common compiler and linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
28 | CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_directory=$(GEN_DIR) --pp_directory=$(GEN_DIR) -ppd -ppa | ||
29 | #Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
30 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | ||
31 | |||
32 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | ||
33 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | ||
34 | SOURCES=$(wildcard *.c) | ||
35 | #Using .object instead of .obj in order to not conflict with the CCS build process | ||
36 | OBJECTS=$(patsubst %,$(GEN_DIR)/%,$(SOURCES:.c=.object)) | ||
37 | |||
38 | all: printStart $(TARGET) printEnd | ||
39 | |||
40 | printStart: | ||
41 | @echo '' | ||
42 | @echo '************************************************************' | ||
43 | @echo 'Building project: $(PROJ_NAME)' | ||
44 | |||
45 | printEnd: | ||
46 | @echo '' | ||
47 | @echo 'Finished building project: $(PROJ_NAME)' | ||
48 | @echo '************************************************************' | ||
49 | @echo '' | ||
50 | |||
51 | # Invokes the linker (-z flag) to make the .out file | ||
52 | $(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) | ||
53 | @echo '' | ||
54 | @echo 'Building target: $@' | ||
55 | @echo 'Invoking: PRU Linker' | ||
56 | $(PRU_CGT)/bin/clpru $(CFLAGS) -z -i$(PRU_CGT)/lib -i$(PRU_CGT)/include $(LFLAGS) -o $(TARGET) $(OBJECTS) -m$(MAP) $(LINKER_COMMAND_FILE) --library=libc.a $(LIBS) | ||
57 | @echo 'Finished building target: $@' | ||
58 | @echo '' | ||
59 | @echo 'Output files can be found in the "$(GEN_DIR)" directory' | ||
60 | |||
61 | # Invokes the compiler on all c files in the directory to create the object files | ||
62 | $(GEN_DIR)/%.object: %.c | ||
63 | @mkdir -p $(GEN_DIR) | ||
64 | @echo '' | ||
65 | @echo 'Building file: $<' | ||
66 | @echo 'Invoking: PRU Compiler' | ||
67 | $(PRU_CGT)/bin/clpru --include_path=$(PRU_CGT)/include $(INCLUDE) $(CFLAGS) -fe $@ $< | ||
68 | |||
69 | .PHONY: all clean | ||
70 | |||
71 | # Remove the $(GEN_DIR) directory | ||
72 | clean: | ||
73 | @echo '' | ||
74 | @echo '************************************************************' | ||
75 | @echo 'Cleaning project: $(PROJ_NAME)' | ||
76 | @echo '' | ||
77 | @echo 'Removing files in the "$(GEN_DIR)" directory' | ||
78 | @rm -rf $(GEN_DIR) | ||
79 | @echo '' | ||
80 | @echo 'Finished cleaning project: $(PROJ_NAME)' | ||
81 | @echo '************************************************************' | ||
82 | @echo '' | ||
83 | |||
84 | # Includes the dependencies that the compiler creates (-ppd and -ppa flags) | ||
85 | -include $(OBJECTS:%.object=%.pp) | ||
86 | |||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/main.c b/examples/am571x/PRU_RPMsg_Echo_Polling2_0/main.c deleted file mode 100644 index 6a3f4d9..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/main.c +++ /dev/null | |||
@@ -1,114 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | #include <stdint.h> | ||
35 | #include <stdio.h> | ||
36 | #include <pru_cfg.h> | ||
37 | #include <rsc_types.h> | ||
38 | #include <pru_virtqueue.h> | ||
39 | #include <pru_rpmsg.h> | ||
40 | #include <sys_mailbox.h> | ||
41 | #include "resource_table_0.h" | ||
42 | |||
43 | /* The mailboxes used for RPMsg are defined in the Linux device tree | ||
44 | * PRU0 uses mailboxes 0 (From ARM) and 1 (To ARM) | ||
45 | * PRU1 uses mailboxes 2 (From ARM) and 3 (To ARM) | ||
46 | */ | ||
47 | #define MB_TO_ARM_HOST 1 | ||
48 | #define MB_FROM_ARM_HOST 0 | ||
49 | |||
50 | /* | ||
51 | * Using the name 'rpmsg-pru' will probe the rpmsg_pru driver found | ||
52 | * at linux-x.y.z/drivers/rpmsg/rpmsg_pru.c | ||
53 | */ | ||
54 | #define CHAN_NAME "rpmsg-pru" | ||
55 | #define CHAN_DESC "Channel 32" | ||
56 | #define CHAN_PORT 32 | ||
57 | |||
58 | /* | ||
59 | * Need to program the crossbar to bring the correct events into the | ||
60 | * PRUSS INTC | ||
61 | */ | ||
62 | #define CTRL_CORE_PRUSS2_IRQ_60_61 *(volatile unsigned int *) 0x4A002940 | ||
63 | #define MAILBOX4_IRQ_USER1 246 | ||
64 | |||
65 | /* | ||
66 | * Used to make sure the Linux drivers are ready for RPMsg communication | ||
67 | * Found at linux-x.y.z/include/uapi/linux/virtio_config.h | ||
68 | */ | ||
69 | #define VIRTIO_CONFIG_S_DRIVER_OK 4 | ||
70 | |||
71 | uint8_t payload[RPMSG_BUF_SIZE]; | ||
72 | |||
73 | /* | ||
74 | * main.c | ||
75 | */ | ||
76 | void main() { | ||
77 | struct pru_rpmsg_transport transport; | ||
78 | uint16_t src, dst, len; | ||
79 | uint32_t regValue; | ||
80 | volatile uint8_t *status; | ||
81 | |||
82 | /* allow OCP master port access by the PRU so the PRU can read external memories */ | ||
83 | CT_CFG.SYSCFG_bit.STANDBY_INIT = 0; | ||
84 | |||
85 | /* need to program the CROSSBAR to map MBX4 User1 event to PRUSS INTC event 60 */ | ||
86 | regValue = CTRL_CORE_PRUSS2_IRQ_60_61; | ||
87 | regValue &= 0xFFFFFE00; | ||
88 | CTRL_CORE_PRUSS2_IRQ_60_61 = regValue | MAILBOX4_IRQ_USER1; | ||
89 | |||
90 | /* Make sure the Linux drivers are ready for RPMsg communication */ | ||
91 | status = &resourceTable.rpmsg_vdev.status; | ||
92 | while (!(*status & VIRTIO_CONFIG_S_DRIVER_OK)); | ||
93 | |||
94 | /* Initialize pru_virtqueue corresponding to vring0 (PRU to ARM Host direction) */ | ||
95 | pru_virtqueue_init(&transport.virtqueue0, &resourceTable.rpmsg_vring0, &MBX4.MESSAGE[MB_TO_ARM_HOST], &MBX4.MESSAGE[MB_FROM_ARM_HOST]); | ||
96 | |||
97 | /* Initialize pru_virtqueue corresponding to vring1 (ARM Host to PRU direction) */ | ||
98 | pru_virtqueue_init(&transport.virtqueue1, &resourceTable.rpmsg_vring1, &MBX4.MESSAGE[MB_TO_ARM_HOST], &MBX4.MESSAGE[MB_FROM_ARM_HOST]); | ||
99 | |||
100 | /* Create the RPMsg channel between the PRU and ARM user space using the transport structure. | ||
101 | * The name 'rpmsg-pru' corresponds to the rpmsg_pru driver found | ||
102 | * at linux-x.y.z/drivers/rpmsg/rpmsg_pru.c | ||
103 | */ | ||
104 | while(pru_rpmsg_channel(RPMSG_NS_CREATE, &transport, CHAN_NAME, CHAN_DESC, CHAN_PORT) != PRU_RPMSG_SUCCESS); | ||
105 | while(1){ | ||
106 | if(MBX4.MESSAGE[MB_FROM_ARM_HOST] == 1){ | ||
107 | /* Receive the message */ | ||
108 | if(pru_rpmsg_receive(&transport, &src, &dst, payload, &len) == PRU_RPMSG_SUCCESS){ | ||
109 | /* Echo the message back to the same address from which we just received */ | ||
110 | pru_rpmsg_send(&transport, dst, src, payload, len); | ||
111 | } | ||
112 | } | ||
113 | } | ||
114 | } | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/resource_table_0.h b/examples/am571x/PRU_RPMsg_Echo_Polling2_0/resource_table_0.h deleted file mode 100755 index f95cc2e..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_0/resource_table_0.h +++ /dev/null | |||
@@ -1,118 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | /* | ||
35 | * ======== rsc_table_am335x_pru.h ======== | ||
36 | * | ||
37 | * Define the resource table entries for all PRU cores. This will be | ||
38 | * incorporated into corresponding base images, and used by the remoteproc | ||
39 | * on the host-side to allocated/reserve resources. | ||
40 | * | ||
41 | */ | ||
42 | |||
43 | |||
44 | #ifndef _RSC_TABLE_PRU_H_ | ||
45 | #define _RSC_TABLE_PRU_H_ | ||
46 | |||
47 | #include <stddef.h> | ||
48 | #include <rsc_types.h> | ||
49 | #include "pru_virtio_ids.h" | ||
50 | |||
51 | /* | ||
52 | * Sizes of the virtqueues (expressed in number of buffers supported, | ||
53 | * and must be power of 2) | ||
54 | */ | ||
55 | #define PRU_RPMSG_VQ0_SIZE 16 | ||
56 | #define PRU_RPMSG_VQ1_SIZE 16 | ||
57 | |||
58 | /* | ||
59 | * The feature bitmap for virtio rpmsg | ||
60 | */ | ||
61 | #define VIRTIO_RPMSG_F_NS 0 //name service notifications | ||
62 | |||
63 | /* This firmware supports name service notifications as one of its features */ | ||
64 | #define RPMSG_PRU_C0_FEATURES (1 << VIRTIO_RPMSG_F_NS) | ||
65 | |||
66 | struct my_resource_table { | ||
67 | struct resource_table base; | ||
68 | |||
69 | uint32_t offset[1]; /* Should match 'num' in actual definition */ | ||
70 | |||
71 | /* rpmsg vdev entry */ | ||
72 | struct fw_rsc_vdev rpmsg_vdev; | ||
73 | struct fw_rsc_vdev_vring rpmsg_vring0; | ||
74 | struct fw_rsc_vdev_vring rpmsg_vring1; | ||
75 | }; | ||
76 | |||
77 | #pragma DATA_SECTION(resourceTable, ".resource_table") | ||
78 | #pragma RETAIN(resourceTable) | ||
79 | struct my_resource_table resourceTable = { | ||
80 | 1, /* Resource table version: only version 1 is supported by the current driver */ | ||
81 | 1, /* number of entries in the table */ | ||
82 | 0, 0, /* reserved, must be zero */ | ||
83 | /* offsets to entries */ | ||
84 | { | ||
85 | offsetof(struct my_resource_table, rpmsg_vdev), | ||
86 | }, | ||
87 | |||
88 | /* rpmsg vdev entry */ | ||
89 | { | ||
90 | (uint32_t)TYPE_VDEV, //type | ||
91 | (uint32_t)VIRTIO_ID_RPMSG, //id | ||
92 | (uint32_t)0, //notifyid | ||
93 | (uint32_t)RPMSG_PRU_C0_FEATURES, //dfeatures | ||
94 | (uint32_t)0, //gfeatures | ||
95 | (uint32_t)0, //config_len | ||
96 | (uint8_t)0, //status | ||
97 | (uint8_t)2, //num_of_vrings, only two is supported | ||
98 | { (uint8_t)0, (uint8_t)0 }, //reserved | ||
99 | /* no config data */ | ||
100 | }, | ||
101 | /* the two vrings */ | ||
102 | { | ||
103 | 0, //da, will be populated by host, can't pass it in | ||
104 | 16, //align (bytes), | ||
105 | PRU_RPMSG_VQ0_SIZE, //num of descriptors | ||
106 | 0, //notifyid, will be populated, can't pass right now | ||
107 | 0 //reserved | ||
108 | }, | ||
109 | { | ||
110 | 0, //da, will be populated by host, can't pass it in | ||
111 | 16, //align (bytes), | ||
112 | PRU_RPMSG_VQ1_SIZE, //num of descriptors | ||
113 | 0, //notifyid, will be populated, can't pass right now | ||
114 | 0 //reserved | ||
115 | }, | ||
116 | }; | ||
117 | |||
118 | #endif /* _RSC_TABLE_PRU_H_ */ | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/.ccsproject b/examples/am571x/PRU_RPMsg_Echo_Polling2_1/.ccsproject deleted file mode 100644 index b169227..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/.ccsproject +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" ?> | ||
2 | <?ccsproject version="1.0"?> | ||
3 | <projectOptions> | ||
4 | <deviceVariant value="TMS192C2026.AM3359.BeagleBone_Black"/> | ||
5 | <deviceFamily value="PRU"/> | ||
6 | <deviceEndianness value="little"/> | ||
7 | <codegenToolVersion value="2.1.1"/> | ||
8 | <isElfFormat value="true"/> | ||
9 | <linkerCommandFile value="AM335x.cmd"/> | ||
10 | <rts value="libc.a"/> | ||
11 | <createSlaveProjects value=""/> | ||
12 | <templateProperties value="id=com.ti.common.project.core.emptyProjectTemplate,"/> | ||
13 | <isTargetManual value="false"/> | ||
14 | </projectOptions> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/.cproject b/examples/am571x/PRU_RPMsg_Echo_Polling2_1/.cproject deleted file mode 100644 index 77bbe0a..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/.cproject +++ /dev/null | |||
@@ -1,188 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> | ||
3 | <storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings"> | ||
4 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Debug.273090423"> | ||
5 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.273090423" moduleId="org.eclipse.cdt.core.settings" name="Debug"> | ||
6 | <externalSettings/> | ||
7 | <extensions> | ||
8 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
9 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
10 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
11 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
12 | </extensions> | ||
13 | </storageModule> | ||
14 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
15 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Debug.273090423" name="Debug" parent="com.ti.ccstudio.buildDefinitions.PRU.Debug" postbuildStep="" prebuildStep=""> | ||
16 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Debug.273090423." name="/" resourcePath=""> | ||
17 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain.557481912" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.1929650659"> | ||
18 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1947159809" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
19 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
20 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
21 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
22 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
23 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
24 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
25 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
26 | </option> | ||
27 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.816186613" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
28 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug.1717739587" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformDebug"/> | ||
29 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug.1208025421" name="GNU Make.Debug" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderDebug"/> | ||
30 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug.970682305" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerDebug"> | ||
31 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.670762650" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
32 | <listOptionValue builtIn="false" value="pru0"/> | ||
33 | <listOptionValue builtIn="false" value="am4379"/> | ||
34 | <listOptionValue builtIn="false" value="icss1"/> | ||
35 | <listOptionValue builtIn="false" value="am5718"/> | ||
36 | </option> | ||
37 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.1587658488" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
38 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.1912218497" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
39 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.2114134391" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
40 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
41 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
42 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
43 | </option> | ||
44 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.189791419" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/> | ||
45 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.1314071052" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
46 | <listOptionValue builtIn="false" value="225"/> | ||
47 | </option> | ||
48 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.1367401304" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
49 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.1435970300" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
50 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.2078054751" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
51 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.86191653" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
52 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.1901879612" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
53 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.1807270298" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
54 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.59517222" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
55 | </tool> | ||
56 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug.1929650659" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerDebug"> | ||
57 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.1286116216" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
58 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.494681222" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
59 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.2142578697" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
60 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.308588688" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
61 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.874493353" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
62 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
63 | <listOptionValue builtIn="false" value=""../../../../lib/rpmsg_lib.lib""/> | ||
64 | </option> | ||
65 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.1756111941" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
66 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
67 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
68 | </option> | ||
69 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.529306677" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
70 | <listOptionValue builtIn="false" value="ICSS1_PRU_CORE=1"/> | ||
71 | </option> | ||
72 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER.2102482842" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
73 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.388299324" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
74 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.1915867955" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
75 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.1667100640" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
76 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.1610703298" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
77 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.1053889298" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
78 | </tool> | ||
79 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.235629185" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"/> | ||
80 | </toolChain> | ||
81 | </folderInfo> | ||
82 | <sourceEntries> | ||
83 | <entry excluding="AM437x.cmd|AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
84 | </sourceEntries> | ||
85 | </configuration> | ||
86 | </storageModule> | ||
87 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
88 | </cconfiguration> | ||
89 | <cconfiguration id="com.ti.ccstudio.buildDefinitions.PRU.Release.308425420"> | ||
90 | <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.PRU.Release.308425420" moduleId="org.eclipse.cdt.core.settings" name="Release"> | ||
91 | <externalSettings/> | ||
92 | <extensions> | ||
93 | <extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
94 | <extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
95 | <extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> | ||
96 | <extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/> | ||
97 | </extensions> | ||
98 | </storageModule> | ||
99 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
100 | <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.PRU.Release.308425420" name="Release" parent="com.ti.ccstudio.buildDefinitions.PRU.Release" postbuildStep="" prebuildStep=""> | ||
101 | <folderInfo id="com.ti.ccstudio.buildDefinitions.PRU.Release.308425420." name="/" resourcePath=""> | ||
102 | <toolChain id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain.557848555" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.ReleaseToolchain" targetTool="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.330897032"> | ||
103 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.665476314" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> | ||
104 | <listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS192C2026.AM5718"/> | ||
105 | <listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/> | ||
106 | <listOptionValue builtIn="false" value="OUTPUT_FORMAT=ELF"/> | ||
107 | <listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/> | ||
108 | <listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=AM57xx_PRU.cmd"/> | ||
109 | <listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=libc.a"/> | ||
110 | <listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/> | ||
111 | </option> | ||
112 | <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.543636840" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="2.1.1" valueType="string"/> | ||
113 | <targetPlatform id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease.1650302084" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.targetPlatformRelease"/> | ||
114 | <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease.1807055152" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.builderRelease"/> | ||
115 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease.1577778659" name="PRU Compiler" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.compilerRelease"> | ||
116 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE.798019779" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DEFINE" valueType="definedSymbols"> | ||
117 | <listOptionValue builtIn="false" value="pru0"/> | ||
118 | <listOptionValue builtIn="false" value="am4379"/> | ||
119 | <listOptionValue builtIn="false" value="icss1"/> | ||
120 | <listOptionValue builtIn="false" value="am5718"/> | ||
121 | </option> | ||
122 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.1957553000" name="Silicon version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.SILICON_VERSION.3" valueType="enumerated"/> | ||
123 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.1094445708" name="Enables use of the hardware MAC available on some PRU cores (--hardware_mac)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.HARDWARE_MAC.on" valueType="enumerated"/> | ||
124 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH.1999885578" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.INCLUDE_PATH" valueType="includePath"> | ||
125 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
126 | <listOptionValue builtIn="false" value=""../../../../include""/> | ||
127 | <listOptionValue builtIn="false" value=""../../../../include/am571x""/> | ||
128 | </option> | ||
129 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING.1809792224" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WARNING" valueType="stringList"> | ||
130 | <listOptionValue builtIn="false" value="225"/> | ||
131 | </option> | ||
132 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER.2004806059" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
133 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.195525213" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
134 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.851433824" name="Specify the endianness of both code and data [See 'General' page to edit] (--endian)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.compilerID.ENDIAN.little" valueType="enumerated"/> | ||
135 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS.657834859" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__C_SRCS"/> | ||
136 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS.697628129" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__CPP_SRCS"/> | ||
137 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS.58301576" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM_SRCS"/> | ||
138 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS.1558950717" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.compiler.inputType__ASM2_SRCS"/> | ||
139 | </tool> | ||
140 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease.330897032" name="PRU Linker" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exe.linkerRelease"> | ||
141 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE.1435792959" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.STACK_SIZE" value="0x100" valueType="string"/> | ||
142 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE.96421682" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.HEAP_SIZE" value="0x100" valueType="string"/> | ||
143 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE.1817133857" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.OUTPUT_FILE" value=""${ProjName}.out"" valueType="string"/> | ||
144 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE.17106878" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.MAP_FILE" value=""${ProjName}.map"" valueType="string"/> | ||
145 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY.235767609" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.LIBRARY" valueType="libs"> | ||
146 | <listOptionValue builtIn="false" value=""libc.a""/> | ||
147 | <listOptionValue builtIn="false" value=""../../../../lib/rpmsg_lib.lib""/> | ||
148 | </option> | ||
149 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH.754341879" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.SEARCH_PATH" valueType="libPaths"> | ||
150 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> | ||
151 | <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> | ||
152 | </option> | ||
153 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE.1880717190" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DEFINE" valueType="definedSymbols"> | ||
154 | <listOptionValue builtIn="false" value="ICSS1_PRU_CORE=1"/> | ||
155 | </option> | ||
156 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER.684204220" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/> | ||
157 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.1312801021" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP" value="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.DIAG_WRAP.off" valueType="enumerated"/> | ||
158 | <option id="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO.806739012" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.linkerID.XML_LINK_INFO" value=""${ProjName}_linkInfo.xml"" valueType="string"/> | ||
159 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS.300361417" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD_SRCS"/> | ||
160 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS.1875474730" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__CMD2_SRCS"/> | ||
161 | <inputType id="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS.1196788844" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.exeLinker.inputType__GEN_CMDS"/> | ||
162 | </tool> | ||
163 | <tool id="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex.2081744469" name="PRU Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.PRU_2.1.hex"/> | ||
164 | </toolChain> | ||
165 | </folderInfo> | ||
166 | <sourceEntries> | ||
167 | <entry excluding="AM335x.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> | ||
168 | </sourceEntries> | ||
169 | </configuration> | ||
170 | </storageModule> | ||
171 | <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> | ||
172 | </cconfiguration> | ||
173 | </storageModule> | ||
174 | <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> | ||
175 | <storageModule moduleId="cdtBuildSystem" version="4.0.0"> | ||
176 | <project id="PRU_RPMsg_Echo_Polling1.com.ti.ccstudio.buildDefinitions.PRU.ProjectType.815827881" name="PRU" projectType="com.ti.ccstudio.buildDefinitions.PRU.ProjectType"/> | ||
177 | </storageModule> | ||
178 | <storageModule moduleId="scannerConfiguration"/> | ||
179 | <storageModule moduleId="org.eclipse.cdt.core.language.mapping"> | ||
180 | <project-mappings> | ||
181 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/> | ||
182 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
183 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/> | ||
184 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
185 | <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/> | ||
186 | </project-mappings> | ||
187 | </storageModule> | ||
188 | </cproject> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/.project b/examples/am571x/PRU_RPMsg_Echo_Polling2_1/.project deleted file mode 100644 index 6095051..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/.project +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>PRU_RPMsg_Echo_Polling2_1</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> | ||
10 | <arguments> | ||
11 | </arguments> | ||
12 | </buildCommand> | ||
13 | <buildCommand> | ||
14 | <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> | ||
15 | <triggers>full,incremental,</triggers> | ||
16 | <arguments> | ||
17 | </arguments> | ||
18 | </buildCommand> | ||
19 | </buildSpec> | ||
20 | <natures> | ||
21 | <nature>com.ti.ccstudio.core.ccsNature</nature> | ||
22 | <nature>org.eclipse.cdt.core.cnature</nature> | ||
23 | <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> | ||
24 | <nature>org.eclipse.cdt.core.ccnature</nature> | ||
25 | <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> | ||
26 | </natures> | ||
27 | </projectDescription> | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/.settings/org.eclipse.cdt.codan.core.prefs b/examples/am571x/PRU_RPMsg_Echo_Polling2_1/.settings/org.eclipse.cdt.codan.core.prefs deleted file mode 100644 index f653028..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/.settings/org.eclipse.cdt.codan.core.prefs +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | inEditor=false | ||
3 | onBuild=false | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/.settings/org.eclipse.cdt.debug.core.prefs b/examples/am571x/PRU_RPMsg_Echo_Polling2_1/.settings/org.eclipse.cdt.debug.core.prefs deleted file mode 100644 index 2adc7b1..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/.settings/org.eclipse.cdt.debug.core.prefs +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | org.eclipse.cdt.debug.core.toggleBreakpointModel=com.ti.ccstudio.debug.CCSBreakpointMarker | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/AM57xx_PRU.cmd b/examples/am571x/PRU_RPMsg_Echo_Polling2_1/AM57xx_PRU.cmd deleted file mode 100755 index f15f640..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/AM57xx_PRU.cmd +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | /****************************************************************************/ | ||
2 | /* AM57xx_PRU.cmd */ | ||
3 | /* Copyright (c) 2015 Texas Instruments Incorporated */ | ||
4 | /* */ | ||
5 | /* Description: This file is a linker command file that can be used for */ | ||
6 | /* linking PRU programs built with the C compiler and */ | ||
7 | /* the resulting .out file on an AM57xx device. */ | ||
8 | /****************************************************************************/ | ||
9 | |||
10 | -cr /* Link using C conventions */ | ||
11 | |||
12 | /* Specify the System Memory Map */ | ||
13 | MEMORY | ||
14 | { | ||
15 | PAGE 0: | ||
16 | PRU_IMEM : org = 0x00000000 len = 0x00003000 /* 12kB PRU-ICSS1 Instruction RAM */ | ||
17 | |||
18 | PAGE 1: | ||
19 | |||
20 | /* RAM */ | ||
21 | |||
22 | PRU_DMEM_0_1 : org = 0x00000000 len = 0x00002000 CREGISTER=24 /* 8kB PRU Data RAM 0_1 */ | ||
23 | PRU_DMEM_1_0 : org = 0x00002000 len = 0x00002000 CREGISTER=25 /* 8kB PRU Data RAM 1_0 */ | ||
24 | PRU_SHAREDMEM : org = 0x00010000 len = 0x00008000 CREGISTER=28 /* 32kB Shared RAM */ | ||
25 | |||
26 | DDR : org = 0x80000000 len = 0x00000100 CREGISTER=31 | ||
27 | L3OCMC : org = 0x40000000 len = 0x00010000 CREGISTER=30 | ||
28 | |||
29 | |||
30 | /* Peripherals */ | ||
31 | |||
32 | PRU_CFG : org = 0x00026000 len = 0x00000120 CREGISTER=4 | ||
33 | PRU_ECAP : org = 0x00030000 len = 0x00000060 CREGISTER=3 | ||
34 | PRU_IEP : org = 0x0002E000 len = 0x0000031C CREGISTER=26 | ||
35 | PRU_INTC : org = 0x00020000 len = 0x00001504 CREGISTER=0 | ||
36 | PRU_UART : org = 0x00028000 len = 0x00000038 CREGISTER=7 | ||
37 | |||
38 | MCASP3_DMA : org = 0x46000000 len = 0x00000100 CREGISTER=8 | ||
39 | I2C3 : org = 0x48060000 len = 0x00000300 CREGISTER=5 | ||
40 | |||
41 | RSVD1 : org = 0x48040000 len = 0x0000005C CREGISTER=1 | ||
42 | RSVD2 : org = 0x4802A000 len = 0x000000D8 CREGISTER=2 | ||
43 | RSVD6 : org = 0x48030000 len = 0x000001A4 CREGISTER=6 | ||
44 | RSVD9 : org = 0x4A100000 len = 0x0000128C CREGISTER=9 | ||
45 | RSVD10 : org = 0x48318000 len = 0x00000100 CREGISTER=10 | ||
46 | RSVD11 : org = 0x48022000 len = 0x00000088 CREGISTER=11 | ||
47 | RSVD12 : org = 0x48024000 len = 0x00000088 CREGISTER=12 | ||
48 | RSVD13 : org = 0x48310000 len = 0x00000100 CREGISTER=13 | ||
49 | RSVD14 : org = 0x481CC000 len = 0x000001E8 CREGISTER=14 | ||
50 | RSVD15 : org = 0x481D0000 len = 0x000001E8 CREGISTER=15 | ||
51 | RSVD16 : org = 0x481A0000 len = 0x000001A4 CREGISTER=16 | ||
52 | RSVD17 : org = 0x4819C000 len = 0x000000D8 CREGISTER=17 | ||
53 | RSVD18 : org = 0x48300000 len = 0x000002C4 CREGISTER=18 | ||
54 | RSVD19 : org = 0x48302000 len = 0x000002C4 CREGISTER=19 | ||
55 | RSVD20 : org = 0x48304000 len = 0x000002C4 CREGISTER=20 | ||
56 | RSVD21 : org = 0x00032400 len = 0x00000100 CREGISTER=21 | ||
57 | RSVD22 : org = 0x480C8000 len = 0x00000140 CREGISTER=22 | ||
58 | RSVD23 : org = 0x480CA000 len = 0x00000880 CREGISTER=23 | ||
59 | RSVD27 : org = 0x00032000 len = 0x00000100 CREGISTER=27 | ||
60 | RSVD29 : org = 0x49000000 len = 0x00001098 CREGISTER=29 | ||
61 | } | ||
62 | |||
63 | /* Specify the sections allocation into memory */ | ||
64 | SECTIONS { | ||
65 | /* Forces _c_int00 to the start of PRU IRAM. Not necessary when loading | ||
66 | an ELF file, but useful when loading a binary */ | ||
67 | .text:_c_int00* > 0x0, PAGE 0 | ||
68 | |||
69 | .text > PRU_IMEM, PAGE 0 | ||
70 | .stack > PRU_DMEM_0_1, PAGE 1 | ||
71 | .bss > PRU_DMEM_0_1, PAGE 1 | ||
72 | .cio > PRU_DMEM_0_1, PAGE 1 | ||
73 | .data > PRU_DMEM_0_1, PAGE 1 | ||
74 | .switch > PRU_DMEM_0_1, PAGE 1 | ||
75 | .sysmem > PRU_DMEM_0_1, PAGE 1 | ||
76 | .cinit > PRU_DMEM_0_1, PAGE 1 | ||
77 | .rodata > PRU_DMEM_0_1, PAGE 1 | ||
78 | .rofardata > PRU_DMEM_0_1, PAGE 1 | ||
79 | .farbss > PRU_DMEM_0_1, PAGE 1 | ||
80 | .fardata > PRU_DMEM_0_1, PAGE 1 | ||
81 | |||
82 | .resource_table > PRU_DMEM_0_1, PAGE 1 | ||
83 | } | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/Makefile b/examples/am571x/PRU_RPMsg_Echo_Polling2_1/Makefile deleted file mode 100644 index 15a5222..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/Makefile +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | # PRU_CGT environment variable must point to the TI PRU compiler directory. E.g.: | ||
2 | #(Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
3 | #(Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
4 | ifndef PRU_CGT | ||
5 | define ERROR_BODY | ||
6 | |||
7 | ************************************************************ | ||
8 | PRU_CGT environment variable is not set. Examples given: | ||
9 | (Linux) export PRU_CGT=/home/jason/ti/ccs_v6_1_0/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
10 | (Windows) set PRU_CGT=C:/TI/ccs_v6_0_1/ccsv6/tools/compiler/ti-cgt-pru_2.1.0 | ||
11 | ************************************************************ | ||
12 | |||
13 | endef | ||
14 | $(error $(ERROR_BODY)) | ||
15 | endif | ||
16 | |||
17 | MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
18 | CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH)))) | ||
19 | PROJ_NAME=$(CURRENT_DIR) | ||
20 | LINKER_COMMAND_FILE=./AM57xx_PRU.cmd | ||
21 | LIBS=--library=../../../lib/rpmsg_lib.lib | ||
22 | INCLUDE=--include_path=../../../include --include_path=../../../include/am571x | ||
23 | STACK_SIZE=0x100 | ||
24 | HEAP_SIZE=0x100 | ||
25 | GEN_DIR=gen | ||
26 | |||
27 | #Common compiler and linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
28 | CFLAGS=-v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_directory=$(GEN_DIR) --pp_directory=$(GEN_DIR) -ppd -ppa | ||
29 | #Linker flags (Defined in 'PRU Optimizing C/C++ Compiler User's Guide) | ||
30 | LFLAGS=--reread_libs --warn_sections --stack_size=$(STACK_SIZE) --heap_size=$(HEAP_SIZE) | ||
31 | |||
32 | TARGET=$(GEN_DIR)/$(PROJ_NAME).out | ||
33 | MAP=$(GEN_DIR)/$(PROJ_NAME).map | ||
34 | SOURCES=$(wildcard *.c) | ||
35 | #Using .object instead of .obj in order to not conflict with the CCS build process | ||
36 | OBJECTS=$(patsubst %,$(GEN_DIR)/%,$(SOURCES:.c=.object)) | ||
37 | |||
38 | all: printStart $(TARGET) printEnd | ||
39 | |||
40 | printStart: | ||
41 | @echo '' | ||
42 | @echo '************************************************************' | ||
43 | @echo 'Building project: $(PROJ_NAME)' | ||
44 | |||
45 | printEnd: | ||
46 | @echo '' | ||
47 | @echo 'Finished building project: $(PROJ_NAME)' | ||
48 | @echo '************************************************************' | ||
49 | @echo '' | ||
50 | |||
51 | # Invokes the linker (-z flag) to make the .out file | ||
52 | $(TARGET): $(OBJECTS) $(LINKER_COMMAND_FILE) | ||
53 | @echo '' | ||
54 | @echo 'Building target: $@' | ||
55 | @echo 'Invoking: PRU Linker' | ||
56 | $(PRU_CGT)/bin/clpru $(CFLAGS) -z -i$(PRU_CGT)/lib -i$(PRU_CGT)/include $(LFLAGS) -o $(TARGET) $(OBJECTS) -m$(MAP) $(LINKER_COMMAND_FILE) --library=libc.a $(LIBS) | ||
57 | @echo 'Finished building target: $@' | ||
58 | @echo '' | ||
59 | @echo 'Output files can be found in the "$(GEN_DIR)" directory' | ||
60 | |||
61 | # Invokes the compiler on all c files in the directory to create the object files | ||
62 | $(GEN_DIR)/%.object: %.c | ||
63 | @mkdir -p $(GEN_DIR) | ||
64 | @echo '' | ||
65 | @echo 'Building file: $<' | ||
66 | @echo 'Invoking: PRU Compiler' | ||
67 | $(PRU_CGT)/bin/clpru --include_path=$(PRU_CGT)/include $(INCLUDE) $(CFLAGS) -fe $@ $< | ||
68 | |||
69 | .PHONY: all clean | ||
70 | |||
71 | # Remove the $(GEN_DIR) directory | ||
72 | clean: | ||
73 | @echo '' | ||
74 | @echo '************************************************************' | ||
75 | @echo 'Cleaning project: $(PROJ_NAME)' | ||
76 | @echo '' | ||
77 | @echo 'Removing files in the "$(GEN_DIR)" directory' | ||
78 | @rm -rf $(GEN_DIR) | ||
79 | @echo '' | ||
80 | @echo 'Finished cleaning project: $(PROJ_NAME)' | ||
81 | @echo '************************************************************' | ||
82 | @echo '' | ||
83 | |||
84 | # Includes the dependencies that the compiler creates (-ppd and -ppa flags) | ||
85 | -include $(OBJECTS:%.object=%.pp) | ||
86 | |||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/main.c b/examples/am571x/PRU_RPMsg_Echo_Polling2_1/main.c deleted file mode 100644 index d90f154..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/main.c +++ /dev/null | |||
@@ -1,114 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | #include <stdint.h> | ||
35 | #include <stdio.h> | ||
36 | #include <pru_cfg.h> | ||
37 | #include <rsc_types.h> | ||
38 | #include <pru_virtqueue.h> | ||
39 | #include <pru_rpmsg.h> | ||
40 | #include <sys_mailbox.h> | ||
41 | #include "resource_table_1.h" | ||
42 | |||
43 | /* The mailboxes used for RPMsg are defined in the Linux device tree | ||
44 | * PRU0 uses mailboxes 0 (From ARM) and 1 (To ARM) | ||
45 | * PRU1 uses mailboxes 2 (From ARM) and 3 (To ARM) | ||
46 | */ | ||
47 | #define MB_TO_ARM_HOST 3 | ||
48 | #define MB_FROM_ARM_HOST 2 | ||
49 | |||
50 | /* | ||
51 | * Using the name 'rpmsg-pru' will probe the rpmsg_pru driver found | ||
52 | * at linux-x.y.z/drivers/rpmsg/rpmsg_pru.c | ||
53 | */ | ||
54 | #define CHAN_NAME "rpmsg-pru" | ||
55 | #define CHAN_DESC "Channel 33" | ||
56 | #define CHAN_PORT 33 | ||
57 | |||
58 | /* | ||
59 | * Need to program the crossbar to bring the correct events into the | ||
60 | * PRUSS INTC | ||
61 | */ | ||
62 | #define CTRL_CORE_PRUSS2_IRQ_58_59 *(volatile unsigned int *) 0x4A00293C | ||
63 | #define MAILBOX4_IRQ_USER2 247 | ||
64 | |||
65 | /* | ||
66 | * Used to make sure the Linux drivers are ready for RPMsg communication | ||
67 | * Found at linux-x.y.z/include/uapi/linux/virtio_config.h | ||
68 | */ | ||
69 | #define VIRTIO_CONFIG_S_DRIVER_OK 4 | ||
70 | |||
71 | uint8_t payload[RPMSG_BUF_SIZE]; | ||
72 | |||
73 | /* | ||
74 | * main.c | ||
75 | */ | ||
76 | void main() { | ||
77 | struct pru_rpmsg_transport transport; | ||
78 | uint16_t src, dst, len; | ||
79 | uint32_t regValue; | ||
80 | volatile uint8_t *status; | ||
81 | |||
82 | /* allow OCP master port access by the PRU so the PRU can read external memories */ | ||
83 | CT_CFG.SYSCFG_bit.STANDBY_INIT = 0; | ||
84 | |||
85 | /* need to program the CROSSBAR to map MBX4 User2 event to PRUSS INTC event 59 */ | ||
86 | regValue = CTRL_CORE_PRUSS2_IRQ_58_59; | ||
87 | regValue &= 0xFE00FFFF; | ||
88 | CTRL_CORE_PRUSS2_IRQ_58_59 = regValue | (MAILBOX4_IRQ_USER2 << 16); | ||
89 | |||
90 | /* Make sure the Linux drivers are ready for RPMsg communication */ | ||
91 | status = &resourceTable.rpmsg_vdev.status; | ||
92 | while (!(*status & VIRTIO_CONFIG_S_DRIVER_OK)); | ||
93 | |||
94 | /* Initialize pru_virtqueue corresponding to vring0 (PRU to ARM Host direction) */ | ||
95 | pru_virtqueue_init(&transport.virtqueue0, &resourceTable.rpmsg_vring0, &MBX4.MESSAGE[MB_TO_ARM_HOST], &MBX4.MESSAGE[MB_FROM_ARM_HOST]); | ||
96 | |||
97 | /* Initialize pru_virtqueue corresponding to vring1 (ARM Host to PRU direction) */ | ||
98 | pru_virtqueue_init(&transport.virtqueue1, &resourceTable.rpmsg_vring1, &MBX4.MESSAGE[MB_TO_ARM_HOST], &MBX4.MESSAGE[MB_FROM_ARM_HOST]); | ||
99 | |||
100 | /* Create the RPMsg channel between the PRU and ARM user space using the transport structure. | ||
101 | * The name 'rpmsg-pru' corresponds to the rpmsg_pru driver found | ||
102 | * at linux-x.y.z/drivers/rpmsg/rpmsg_pru.c | ||
103 | */ | ||
104 | while(pru_rpmsg_channel(RPMSG_NS_CREATE, &transport, CHAN_NAME, CHAN_DESC, CHAN_PORT) != PRU_RPMSG_SUCCESS); | ||
105 | while(1){ | ||
106 | if(MBX4.MESSAGE[MB_FROM_ARM_HOST] == 1){ | ||
107 | /* Receive the message */ | ||
108 | if(pru_rpmsg_receive(&transport, &src, &dst, payload, &len) == PRU_RPMSG_SUCCESS){ | ||
109 | /* Echo the message back to the same address from which we just received */ | ||
110 | pru_rpmsg_send(&transport, dst, src, payload, len); | ||
111 | } | ||
112 | } | ||
113 | } | ||
114 | } | ||
diff --git a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/resource_table_1.h b/examples/am571x/PRU_RPMsg_Echo_Polling2_1/resource_table_1.h deleted file mode 100755 index f95cc2e..0000000 --- a/examples/am571x/PRU_RPMsg_Echo_Polling2_1/resource_table_1.h +++ /dev/null | |||
@@ -1,118 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | * | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions | ||
7 | * are met: | ||
8 | * | ||
9 | * * Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * | ||
12 | * * Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the | ||
15 | * distribution. | ||
16 | * | ||
17 | * * Neither the name of Texas Instruments Incorporated nor the names of | ||
18 | * its contributors may be used to endorse or promote products derived | ||
19 | * from this software without specific prior written permission. | ||
20 | * | ||
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
25 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
26 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
27 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
28 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
32 | */ | ||
33 | |||
34 | /* | ||
35 | * ======== rsc_table_am335x_pru.h ======== | ||
36 | * | ||
37 | * Define the resource table entries for all PRU cores. This will be | ||
38 | * incorporated into corresponding base images, and used by the remoteproc | ||
39 | * on the host-side to allocated/reserve resources. | ||
40 | * | ||
41 | */ | ||
42 | |||
43 | |||
44 | #ifndef _RSC_TABLE_PRU_H_ | ||
45 | #define _RSC_TABLE_PRU_H_ | ||
46 | |||
47 | #include <stddef.h> | ||
48 | #include <rsc_types.h> | ||
49 | #include "pru_virtio_ids.h" | ||
50 | |||
51 | /* | ||
52 | * Sizes of the virtqueues (expressed in number of buffers supported, | ||
53 | * and must be power of 2) | ||
54 | */ | ||
55 | #define PRU_RPMSG_VQ0_SIZE 16 | ||
56 | #define PRU_RPMSG_VQ1_SIZE 16 | ||
57 | |||
58 | /* | ||
59 | * The feature bitmap for virtio rpmsg | ||
60 | */ | ||
61 | #define VIRTIO_RPMSG_F_NS 0 //name service notifications | ||
62 | |||
63 | /* This firmware supports name service notifications as one of its features */ | ||
64 | #define RPMSG_PRU_C0_FEATURES (1 << VIRTIO_RPMSG_F_NS) | ||
65 | |||
66 | struct my_resource_table { | ||
67 | struct resource_table base; | ||
68 | |||
69 | uint32_t offset[1]; /* Should match 'num' in actual definition */ | ||
70 | |||
71 | /* rpmsg vdev entry */ | ||
72 | struct fw_rsc_vdev rpmsg_vdev; | ||
73 | struct fw_rsc_vdev_vring rpmsg_vring0; | ||
74 | struct fw_rsc_vdev_vring rpmsg_vring1; | ||
75 | }; | ||
76 | |||
77 | #pragma DATA_SECTION(resourceTable, ".resource_table") | ||
78 | #pragma RETAIN(resourceTable) | ||
79 | struct my_resource_table resourceTable = { | ||
80 | 1, /* Resource table version: only version 1 is supported by the current driver */ | ||
81 | 1, /* number of entries in the table */ | ||
82 | 0, 0, /* reserved, must be zero */ | ||
83 | /* offsets to entries */ | ||
84 | { | ||
85 | offsetof(struct my_resource_table, rpmsg_vdev), | ||
86 | }, | ||
87 | |||
88 | /* rpmsg vdev entry */ | ||
89 | { | ||
90 | (uint32_t)TYPE_VDEV, //type | ||
91 | (uint32_t)VIRTIO_ID_RPMSG, //id | ||
92 | (uint32_t)0, //notifyid | ||
93 | (uint32_t)RPMSG_PRU_C0_FEATURES, //dfeatures | ||
94 | (uint32_t)0, //gfeatures | ||
95 | (uint32_t)0, //config_len | ||
96 | (uint8_t)0, //status | ||
97 | (uint8_t)2, //num_of_vrings, only two is supported | ||
98 | { (uint8_t)0, (uint8_t)0 }, //reserved | ||
99 | /* no config data */ | ||
100 | }, | ||
101 | /* the two vrings */ | ||
102 | { | ||
103 | 0, //da, will be populated by host, can't pass it in | ||
104 | 16, //align (bytes), | ||
105 | PRU_RPMSG_VQ0_SIZE, //num of descriptors | ||
106 | 0, //notifyid, will be populated, can't pass right now | ||
107 | 0 //reserved | ||
108 | }, | ||
109 | { | ||
110 | 0, //da, will be populated by host, can't pass it in | ||
111 | 16, //align (bytes), | ||
112 | PRU_RPMSG_VQ1_SIZE, //num of descriptors | ||
113 | 0, //notifyid, will be populated, can't pass right now | ||
114 | 0 //reserved | ||
115 | }, | ||
116 | }; | ||
117 | |||
118 | #endif /* _RSC_TABLE_PRU_H_ */ | ||