Update repo
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="transfer_bridge_sci"
|
||||
device="TMS320F28388D"
|
||||
cgtVersion="22.6.1.LTS"
|
||||
products="sysconfig;C2000WARE"
|
||||
outputFormat="ELF"
|
||||
launchWizard="False"
|
||||
linkerCommandFile=""
|
||||
enableSysConfigTool="true"
|
||||
sysConfigBuildOptions="--product ${C2000WARE_ROOT}/.metadata/sdk.json"
|
||||
postBuildStep="
|
||||
echo "========= Build of the CLB simulation has moved to the CLB Tool. Click the '?' icon by the _Generate CLB Simulation File_ enable for more details (located in the Global Parameters of the Tile Design SysConfig module) ============="
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/dot_file_libraries/clbDotUtility.js" "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/" "${BuildDirectory}/syscfg" "${BuildDirectory}/syscfg/clb.dot"
|
||||
;if ${GENERATE_DIAGRAM} == 1 mkdir "${BuildDirectory}/diagrams"
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/driverlib/.meta/generate_diagrams.js" "${C2000WARE_ROOT}" "${BuildDirectory}/diagrams" "${BuildDirectory}/syscfg"
|
||||
;if ${GUI_SUPPORT} == 1 "${BuildDirectory}/syscfg/gui_setup.bat"
|
||||
"
|
||||
>
|
||||
<configuration name="CPU1_RAM" compilerBuildOptions= "--opt_level=off -I${C2000WARE_ROOT} -v28 -ml -mt --cla_support=cla2 --define=RAM --define=generic_ram_lnk --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_ram_lnk" />
|
||||
<configuration name="CPU1_FLASH" compilerBuildOptions="--opt_level=off -I${C2000WARE_ROOT} --define=_FLASH --define=generic_flash_lnk -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 --define=_FLASH -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_flash_lnk" />
|
||||
|
||||
<pathVariable name="C2000WARE_ROOT" path="../../../../../../" scope="project" />
|
||||
<pathVariable name="CLB_SYSCFG_ROOT" path="../../../../../../utilities/clb_tool/clb_syscfg/" scope="project" />
|
||||
<pathVariable name="SYSTEMC_INSTALL" path="../../../../../../utilities/clb_tool/clb_syscfg/systemc-2.3.3" scope="project" />
|
||||
<pathVariable name="CLB_SIM_COMPILER" path="C:/TDM-GCC-64/bin" scope="project" />
|
||||
<buildVariable name="CLB_DEBUG" value="0" scope="project" />
|
||||
<buildVariable name="GENERATE_DIAGRAM" value="0" scope="project" />
|
||||
<buildVariable name="GUI_SUPPORT" value="0" scope="project" />
|
||||
<file action="copy" path="../transfer_bridge_sci.c" targetDirectory="" />
|
||||
<file action="copy" path="../transfer_bridge_sci.syscfg" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="transfer_comslogger_export_sci"
|
||||
device="TMS320F28388D"
|
||||
cgtVersion="22.6.1.LTS"
|
||||
products="sysconfig;C2000WARE"
|
||||
outputFormat="ELF"
|
||||
launchWizard="False"
|
||||
linkerCommandFile=""
|
||||
enableSysConfigTool="true"
|
||||
sysConfigBuildOptions="--product ${C2000WARE_ROOT}/.metadata/sdk.json"
|
||||
postBuildStep="
|
||||
echo "========= Build of the CLB simulation has moved to the CLB Tool. Click the '?' icon by the _Generate CLB Simulation File_ enable for more details (located in the Global Parameters of the Tile Design SysConfig module) ============="
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/dot_file_libraries/clbDotUtility.js" "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/" "${BuildDirectory}/syscfg" "${BuildDirectory}/syscfg/clb.dot"
|
||||
;if ${GENERATE_DIAGRAM} == 1 mkdir "${BuildDirectory}/diagrams"
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/driverlib/.meta/generate_diagrams.js" "${C2000WARE_ROOT}" "${BuildDirectory}/diagrams" "${BuildDirectory}/syscfg"
|
||||
;if ${GUI_SUPPORT} == 1 "${BuildDirectory}/syscfg/gui_setup.bat"
|
||||
"
|
||||
>
|
||||
<configuration name="CPU1_RAM" compilerBuildOptions= "--opt_level=off -I${C2000WARE_ROOT} -v28 -ml -mt --cla_support=cla2 --define=RAM --define=generic_ram_lnk --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_ram_lnk" />
|
||||
<configuration name="CPU1_FLASH" compilerBuildOptions="--opt_level=off -I${C2000WARE_ROOT} --define=_FLASH --define=generic_flash_lnk -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 --define=_FLASH -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_flash_lnk" />
|
||||
|
||||
<pathVariable name="C2000WARE_ROOT" path="../../../../../../" scope="project" />
|
||||
<pathVariable name="CLB_SYSCFG_ROOT" path="../../../../../../utilities/clb_tool/clb_syscfg/" scope="project" />
|
||||
<pathVariable name="SYSTEMC_INSTALL" path="../../../../../../utilities/clb_tool/clb_syscfg/systemc-2.3.3" scope="project" />
|
||||
<pathVariable name="CLB_SIM_COMPILER" path="C:/TDM-GCC-64/bin" scope="project" />
|
||||
<buildVariable name="CLB_DEBUG" value="0" scope="project" />
|
||||
<buildVariable name="GENERATE_DIAGRAM" value="0" scope="project" />
|
||||
<buildVariable name="GUI_SUPPORT" value="0" scope="project" />
|
||||
<file action="copy" path="../transfer_comslogger_export_sci.c" targetDirectory="" />
|
||||
<file action="copy" path="../transfer_comslogger_export_sci.syscfg" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="transfer_comslogger_rtlog_export_sci"
|
||||
device="TMS320F28388D"
|
||||
cgtVersion="22.6.1.LTS"
|
||||
products="sysconfig;C2000WARE"
|
||||
outputFormat="ELF"
|
||||
launchWizard="False"
|
||||
linkerCommandFile=""
|
||||
enableSysConfigTool="true"
|
||||
sysConfigBuildOptions="--product ${C2000WARE_ROOT}/.metadata/sdk.json"
|
||||
postBuildStep="
|
||||
echo "========= Build of the CLB simulation has moved to the CLB Tool. Click the '?' icon by the _Generate CLB Simulation File_ enable for more details (located in the Global Parameters of the Tile Design SysConfig module) ============="
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/dot_file_libraries/clbDotUtility.js" "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/" "${BuildDirectory}/syscfg" "${BuildDirectory}/syscfg/clb.dot"
|
||||
;if ${GENERATE_DIAGRAM} == 1 mkdir "${BuildDirectory}/diagrams"
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/driverlib/.meta/generate_diagrams.js" "${C2000WARE_ROOT}" "${BuildDirectory}/diagrams" "${BuildDirectory}/syscfg"
|
||||
;if ${GUI_SUPPORT} == 1 "${BuildDirectory}/syscfg/gui_setup.bat"
|
||||
"
|
||||
>
|
||||
<configuration name="CPU1_RAM" compilerBuildOptions= "--opt_level=off -I${C2000WARE_ROOT} -v28 -ml -mt --cla_support=cla2 --define=RAM --define=generic_ram_lnk --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_ram_lnk" />
|
||||
<configuration name="CPU1_FLASH" compilerBuildOptions="--opt_level=off -I${C2000WARE_ROOT} --define=_FLASH --define=generic_flash_lnk -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 --define=_FLASH -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_flash_lnk" />
|
||||
|
||||
<pathVariable name="C2000WARE_ROOT" path="../../../../../../" scope="project" />
|
||||
<pathVariable name="CLB_SYSCFG_ROOT" path="../../../../../../utilities/clb_tool/clb_syscfg/" scope="project" />
|
||||
<pathVariable name="SYSTEMC_INSTALL" path="../../../../../../utilities/clb_tool/clb_syscfg/systemc-2.3.3" scope="project" />
|
||||
<pathVariable name="CLB_SIM_COMPILER" path="C:/TDM-GCC-64/bin" scope="project" />
|
||||
<buildVariable name="CLB_DEBUG" value="0" scope="project" />
|
||||
<buildVariable name="GENERATE_DIAGRAM" value="0" scope="project" />
|
||||
<buildVariable name="GUI_SUPPORT" value="0" scope="project" />
|
||||
<file action="copy" path="../transfer_comslogger_rtlog_export_sci.c" targetDirectory="" />
|
||||
<file action="copy" path="../transfer_comslogger_rtlog_export_sci.syscfg" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="transfer_customlog_export_fsi"
|
||||
device="TMS320F28388D"
|
||||
cgtVersion="22.6.1.LTS"
|
||||
products="sysconfig;C2000WARE"
|
||||
outputFormat="ELF"
|
||||
launchWizard="False"
|
||||
linkerCommandFile=""
|
||||
enableSysConfigTool="true"
|
||||
sysConfigBuildOptions="--product ${C2000WARE_ROOT}/.metadata/sdk.json"
|
||||
postBuildStep="
|
||||
echo "========= Build of the CLB simulation has moved to the CLB Tool. Click the '?' icon by the _Generate CLB Simulation File_ enable for more details (located in the Global Parameters of the Tile Design SysConfig module) ============="
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/dot_file_libraries/clbDotUtility.js" "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/" "${BuildDirectory}/syscfg" "${BuildDirectory}/syscfg/clb.dot"
|
||||
;if ${GENERATE_DIAGRAM} == 1 mkdir "${BuildDirectory}/diagrams"
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/driverlib/.meta/generate_diagrams.js" "${C2000WARE_ROOT}" "${BuildDirectory}/diagrams" "${BuildDirectory}/syscfg"
|
||||
;if ${GUI_SUPPORT} == 1 "${BuildDirectory}/syscfg/gui_setup.bat"
|
||||
"
|
||||
>
|
||||
<configuration name="CPU1_RAM" compilerBuildOptions= "--opt_level=off -I${C2000WARE_ROOT} -v28 -ml -mt --cla_support=cla2 --define=RAM --define=generic_ram_lnk --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_ram_lnk" />
|
||||
<configuration name="CPU1_FLASH" compilerBuildOptions="--opt_level=off -I${C2000WARE_ROOT} --define=_FLASH --define=generic_flash_lnk -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 --define=_FLASH -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_flash_lnk" />
|
||||
|
||||
<pathVariable name="C2000WARE_ROOT" path="../../../../../../" scope="project" />
|
||||
<pathVariable name="CLB_SYSCFG_ROOT" path="../../../../../../utilities/clb_tool/clb_syscfg/" scope="project" />
|
||||
<pathVariable name="SYSTEMC_INSTALL" path="../../../../../../utilities/clb_tool/clb_syscfg/systemc-2.3.3" scope="project" />
|
||||
<pathVariable name="CLB_SIM_COMPILER" path="C:/TDM-GCC-64/bin" scope="project" />
|
||||
<buildVariable name="CLB_DEBUG" value="0" scope="project" />
|
||||
<buildVariable name="GENERATE_DIAGRAM" value="0" scope="project" />
|
||||
<buildVariable name="GUI_SUPPORT" value="0" scope="project" />
|
||||
<file action="copy" path="../transfer_customlog_export_fsi.c" targetDirectory="" />
|
||||
<file action="copy" path="../transfer_customlog_export_fsi.syscfg" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="transfer_customlog_export_sci"
|
||||
device="TMS320F28388D"
|
||||
cgtVersion="22.6.1.LTS"
|
||||
products="sysconfig;C2000WARE"
|
||||
outputFormat="ELF"
|
||||
launchWizard="False"
|
||||
linkerCommandFile=""
|
||||
enableSysConfigTool="true"
|
||||
sysConfigBuildOptions="--product ${C2000WARE_ROOT}/.metadata/sdk.json"
|
||||
postBuildStep="
|
||||
echo "========= Build of the CLB simulation has moved to the CLB Tool. Click the '?' icon by the _Generate CLB Simulation File_ enable for more details (located in the Global Parameters of the Tile Design SysConfig module) ============="
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/dot_file_libraries/clbDotUtility.js" "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/" "${BuildDirectory}/syscfg" "${BuildDirectory}/syscfg/clb.dot"
|
||||
;if ${GENERATE_DIAGRAM} == 1 mkdir "${BuildDirectory}/diagrams"
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/driverlib/.meta/generate_diagrams.js" "${C2000WARE_ROOT}" "${BuildDirectory}/diagrams" "${BuildDirectory}/syscfg"
|
||||
;if ${GUI_SUPPORT} == 1 "${BuildDirectory}/syscfg/gui_setup.bat"
|
||||
"
|
||||
>
|
||||
<configuration name="CPU1_RAM" compilerBuildOptions= "--opt_level=off -I${C2000WARE_ROOT} -v28 -ml -mt --cla_support=cla2 --define=RAM --define=generic_ram_lnk --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_ram_lnk" />
|
||||
<configuration name="CPU1_FLASH" compilerBuildOptions="--opt_level=off -I${C2000WARE_ROOT} --define=_FLASH --define=generic_flash_lnk -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 --define=_FLASH -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_flash_lnk" />
|
||||
|
||||
<pathVariable name="C2000WARE_ROOT" path="../../../../../../" scope="project" />
|
||||
<pathVariable name="CLB_SYSCFG_ROOT" path="../../../../../../utilities/clb_tool/clb_syscfg/" scope="project" />
|
||||
<pathVariable name="SYSTEMC_INSTALL" path="../../../../../../utilities/clb_tool/clb_syscfg/systemc-2.3.3" scope="project" />
|
||||
<pathVariable name="CLB_SIM_COMPILER" path="C:/TDM-GCC-64/bin" scope="project" />
|
||||
<buildVariable name="CLB_DEBUG" value="0" scope="project" />
|
||||
<buildVariable name="GENERATE_DIAGRAM" value="0" scope="project" />
|
||||
<buildVariable name="GUI_SUPPORT" value="0" scope="project" />
|
||||
<file action="copy" path="../transfer_customlog_export_sci.c" targetDirectory="" />
|
||||
<file action="copy" path="../transfer_customlog_export_sci.syscfg" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="transfer_customlog_export_sci_buffer"
|
||||
device="TMS320F28388D"
|
||||
cgtVersion="22.6.1.LTS"
|
||||
products="sysconfig;C2000WARE"
|
||||
outputFormat="ELF"
|
||||
launchWizard="False"
|
||||
linkerCommandFile=""
|
||||
enableSysConfigTool="true"
|
||||
sysConfigBuildOptions="--product ${C2000WARE_ROOT}/.metadata/sdk.json"
|
||||
postBuildStep="
|
||||
echo "========= Build of the CLB simulation has moved to the CLB Tool. Click the '?' icon by the _Generate CLB Simulation File_ enable for more details (located in the Global Parameters of the Tile Design SysConfig module) ============="
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/dot_file_libraries/clbDotUtility.js" "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/" "${BuildDirectory}/syscfg" "${BuildDirectory}/syscfg/clb.dot"
|
||||
;if ${GENERATE_DIAGRAM} == 1 mkdir "${BuildDirectory}/diagrams"
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/driverlib/.meta/generate_diagrams.js" "${C2000WARE_ROOT}" "${BuildDirectory}/diagrams" "${BuildDirectory}/syscfg"
|
||||
;if ${GUI_SUPPORT} == 1 "${BuildDirectory}/syscfg/gui_setup.bat"
|
||||
"
|
||||
>
|
||||
<configuration name="CPU1_RAM" compilerBuildOptions= "--opt_level=off -I${C2000WARE_ROOT} -v28 -ml -mt --cla_support=cla2 --define=RAM --define=generic_ram_lnk --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_ram_lnk" />
|
||||
<configuration name="CPU1_FLASH" compilerBuildOptions="--opt_level=off -I${C2000WARE_ROOT} --define=_FLASH --define=generic_flash_lnk -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 --define=_FLASH -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_flash_lnk" />
|
||||
|
||||
<pathVariable name="C2000WARE_ROOT" path="../../../../../../" scope="project" />
|
||||
<pathVariable name="CLB_SYSCFG_ROOT" path="../../../../../../utilities/clb_tool/clb_syscfg/" scope="project" />
|
||||
<pathVariable name="SYSTEMC_INSTALL" path="../../../../../../utilities/clb_tool/clb_syscfg/systemc-2.3.3" scope="project" />
|
||||
<pathVariable name="CLB_SIM_COMPILER" path="C:/TDM-GCC-64/bin" scope="project" />
|
||||
<buildVariable name="CLB_DEBUG" value="0" scope="project" />
|
||||
<buildVariable name="GENERATE_DIAGRAM" value="0" scope="project" />
|
||||
<buildVariable name="GUI_SUPPORT" value="0" scope="project" />
|
||||
<file action="copy" path="../transfer_customlog_export_sci_buffer.c" targetDirectory="" />
|
||||
<file action="copy" path="../transfer_customlog_export_sci_buffer.syscfg" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="transfer_customlog_export_sci_logArrays"
|
||||
device="TMS320F28388D"
|
||||
cgtVersion="22.6.1.LTS"
|
||||
products="sysconfig;C2000WARE"
|
||||
outputFormat="ELF"
|
||||
launchWizard="False"
|
||||
linkerCommandFile=""
|
||||
enableSysConfigTool="true"
|
||||
sysConfigBuildOptions="--product ${C2000WARE_ROOT}/.metadata/sdk.json"
|
||||
postBuildStep="
|
||||
echo "========= Build of the CLB simulation has moved to the CLB Tool. Click the '?' icon by the _Generate CLB Simulation File_ enable for more details (located in the Global Parameters of the Tile Design SysConfig module) ============="
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/dot_file_libraries/clbDotUtility.js" "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/" "${BuildDirectory}/syscfg" "${BuildDirectory}/syscfg/clb.dot"
|
||||
;if ${GENERATE_DIAGRAM} == 1 mkdir "${BuildDirectory}/diagrams"
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/driverlib/.meta/generate_diagrams.js" "${C2000WARE_ROOT}" "${BuildDirectory}/diagrams" "${BuildDirectory}/syscfg"
|
||||
;if ${GUI_SUPPORT} == 1 "${BuildDirectory}/syscfg/gui_setup.bat"
|
||||
"
|
||||
>
|
||||
<configuration name="CPU1_RAM" compilerBuildOptions= "--opt_level=off -I${C2000WARE_ROOT} -v28 -ml -mt --cla_support=cla2 --define=RAM --define=generic_ram_lnk --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_ram_lnk" />
|
||||
<configuration name="CPU1_FLASH" compilerBuildOptions="--opt_level=off -I${C2000WARE_ROOT} --define=_FLASH --define=generic_flash_lnk -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 --define=_FLASH -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_flash_lnk" />
|
||||
|
||||
<pathVariable name="C2000WARE_ROOT" path="../../../../../../" scope="project" />
|
||||
<pathVariable name="CLB_SYSCFG_ROOT" path="../../../../../../utilities/clb_tool/clb_syscfg/" scope="project" />
|
||||
<pathVariable name="SYSTEMC_INSTALL" path="../../../../../../utilities/clb_tool/clb_syscfg/systemc-2.3.3" scope="project" />
|
||||
<pathVariable name="CLB_SIM_COMPILER" path="C:/TDM-GCC-64/bin" scope="project" />
|
||||
<buildVariable name="CLB_DEBUG" value="0" scope="project" />
|
||||
<buildVariable name="GENERATE_DIAGRAM" value="0" scope="project" />
|
||||
<buildVariable name="GUI_SUPPORT" value="0" scope="project" />
|
||||
<file action="copy" path="../transfer_customlog_export_sci_logArrays.c" targetDirectory="" />
|
||||
<file action="copy" path="../transfer_customlog_export_sci_logArrays.syscfg" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="transfer_customlog_export_usb"
|
||||
device="TMS320F28388D"
|
||||
cgtVersion="22.6.1.LTS"
|
||||
products="sysconfig;C2000WARE"
|
||||
outputFormat="ELF"
|
||||
launchWizard="False"
|
||||
linkerCommandFile=""
|
||||
enableSysConfigTool="true"
|
||||
sysConfigBuildOptions="--product ${C2000WARE_ROOT}/.metadata/sdk.json"
|
||||
postBuildStep="
|
||||
echo "========= Build of the CLB simulation has moved to the CLB Tool. Click the '?' icon by the _Generate CLB Simulation File_ enable for more details (located in the Global Parameters of the Tile Design SysConfig module) ============="
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/dot_file_libraries/clbDotUtility.js" "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/" "${BuildDirectory}/syscfg" "${BuildDirectory}/syscfg/clb.dot"
|
||||
;if ${GENERATE_DIAGRAM} == 1 mkdir "${BuildDirectory}/diagrams"
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/driverlib/.meta/generate_diagrams.js" "${C2000WARE_ROOT}" "${BuildDirectory}/diagrams" "${BuildDirectory}/syscfg"
|
||||
;if ${GUI_SUPPORT} == 1 "${BuildDirectory}/syscfg/gui_setup.bat"
|
||||
"
|
||||
>
|
||||
<configuration name="CPU1_RAM" compilerBuildOptions= "--opt_level=off -I${C2000WARE_ROOT} -v28 -ml -mt --cla_support=cla2 --define=RAM --define=generic_ram_lnk --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_ram_lnk" />
|
||||
<configuration name="CPU1_FLASH" compilerBuildOptions="--opt_level=off -I${C2000WARE_ROOT} --define=_FLASH --define=generic_flash_lnk -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 --define=_FLASH -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_flash_lnk" />
|
||||
|
||||
<pathVariable name="C2000WARE_ROOT" path="../../../../../../" scope="project" />
|
||||
<pathVariable name="CLB_SYSCFG_ROOT" path="../../../../../../utilities/clb_tool/clb_syscfg/" scope="project" />
|
||||
<pathVariable name="SYSTEMC_INSTALL" path="../../../../../../utilities/clb_tool/clb_syscfg/systemc-2.3.3" scope="project" />
|
||||
<pathVariable name="CLB_SIM_COMPILER" path="C:/TDM-GCC-64/bin" scope="project" />
|
||||
<buildVariable name="CLB_DEBUG" value="0" scope="project" />
|
||||
<buildVariable name="GENERATE_DIAGRAM" value="0" scope="project" />
|
||||
<buildVariable name="GUI_SUPPORT" value="0" scope="project" />
|
||||
<file action="copy" path="../transfer_customlog_export_usb.c" targetDirectory="" />
|
||||
<file action="copy" path="../transfer_customlog_export_usb.syscfg" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
@@ -0,0 +1,33 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="transfer_raw_fsi_tx"
|
||||
device="TMS320F28388D"
|
||||
cgtVersion="22.6.1.LTS"
|
||||
products="sysconfig;C2000WARE"
|
||||
outputFormat="ELF"
|
||||
launchWizard="False"
|
||||
linkerCommandFile=""
|
||||
enableSysConfigTool="true"
|
||||
sysConfigBuildOptions="--product ${C2000WARE_ROOT}/.metadata/sdk.json"
|
||||
postBuildStep="
|
||||
echo "========= Build of the CLB simulation has moved to the CLB Tool. Click the '?' icon by the _Generate CLB Simulation File_ enable for more details (located in the Global Parameters of the Tile Design SysConfig module) ============="
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/dot_file_libraries/clbDotUtility.js" "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/" "${BuildDirectory}/syscfg" "${BuildDirectory}/syscfg/clb.dot"
|
||||
;if ${GENERATE_DIAGRAM} == 1 mkdir "${BuildDirectory}/diagrams"
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/driverlib/.meta/generate_diagrams.js" "${C2000WARE_ROOT}" "${BuildDirectory}/diagrams" "${BuildDirectory}/syscfg"
|
||||
;if ${GUI_SUPPORT} == 1 "${BuildDirectory}/syscfg/gui_setup.bat"
|
||||
"
|
||||
>
|
||||
<configuration name="CPU1_RAM" compilerBuildOptions= "--opt_level=off -I${C2000WARE_ROOT} -v28 -ml -mt --cla_support=cla2 --define=RAM --define=generic_ram_lnk --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_ram_lnk" />
|
||||
<configuration name="CPU1_FLASH" compilerBuildOptions="--opt_level=off -I${C2000WARE_ROOT} --define=_FLASH --define=generic_flash_lnk -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 --define=_FLASH -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_flash_lnk" />
|
||||
|
||||
<pathVariable name="C2000WARE_ROOT" path="../../../../../../" scope="project" />
|
||||
<pathVariable name="CLB_SYSCFG_ROOT" path="../../../../../../utilities/clb_tool/clb_syscfg/" scope="project" />
|
||||
<pathVariable name="SYSTEMC_INSTALL" path="../../../../../../utilities/clb_tool/clb_syscfg/systemc-2.3.3" scope="project" />
|
||||
<pathVariable name="CLB_SIM_COMPILER" path="C:/TDM-GCC-64/bin" scope="project" />
|
||||
<buildVariable name="CLB_DEBUG" value="0" scope="project" />
|
||||
<buildVariable name="GENERATE_DIAGRAM" value="0" scope="project" />
|
||||
<buildVariable name="GUI_SUPPORT" value="0" scope="project" />
|
||||
<file action="copy" path="../transfer_raw_fsi_tx.c" targetDirectory="" />
|
||||
<file action="copy" path="../transfer_raw_fsi_tx.syscfg" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
@@ -0,0 +1,33 @@
|
||||
<projectSpec>
|
||||
<project
|
||||
name="transfer_rtlog"
|
||||
device="TMS320F28388D"
|
||||
cgtVersion="22.6.1.LTS"
|
||||
products="sysconfig;C2000WARE"
|
||||
outputFormat="ELF"
|
||||
launchWizard="False"
|
||||
linkerCommandFile=""
|
||||
enableSysConfigTool="true"
|
||||
sysConfigBuildOptions="--product ${C2000WARE_ROOT}/.metadata/sdk.json"
|
||||
postBuildStep="
|
||||
echo "========= Build of the CLB simulation has moved to the CLB Tool. Click the '?' icon by the _Generate CLB Simulation File_ enable for more details (located in the Global Parameters of the Tile Design SysConfig module) ============="
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/dot_file_libraries/clbDotUtility.js" "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/" "${BuildDirectory}/syscfg" "${BuildDirectory}/syscfg/clb.dot"
|
||||
;if ${GENERATE_DIAGRAM} == 1 mkdir "${BuildDirectory}/diagrams"
|
||||
;if ${GENERATE_DIAGRAM} == 1 ${NODE_TOOL} "${C2000WARE_ROOT}/driverlib/.meta/generate_diagrams.js" "${C2000WARE_ROOT}" "${BuildDirectory}/diagrams" "${BuildDirectory}/syscfg"
|
||||
;if ${GUI_SUPPORT} == 1 "${BuildDirectory}/syscfg/gui_setup.bat"
|
||||
"
|
||||
>
|
||||
<configuration name="CPU1_RAM" compilerBuildOptions= "--opt_level=off -I${C2000WARE_ROOT} -v28 -ml -mt --cla_support=cla2 --define=RAM --define=generic_ram_lnk --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_ram_lnk" />
|
||||
<configuration name="CPU1_FLASH" compilerBuildOptions="--opt_level=off -I${C2000WARE_ROOT} --define=_FLASH --define=generic_flash_lnk -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --tmu_support=tmu0 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225 --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 --define=_FLASH -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs -lboard.cmd.genlibs -ldevice_cmd.cmd.genlibs --define=generic_flash_lnk" />
|
||||
|
||||
<pathVariable name="C2000WARE_ROOT" path="../../../../../../" scope="project" />
|
||||
<pathVariable name="CLB_SYSCFG_ROOT" path="../../../../../../utilities/clb_tool/clb_syscfg/" scope="project" />
|
||||
<pathVariable name="SYSTEMC_INSTALL" path="../../../../../../utilities/clb_tool/clb_syscfg/systemc-2.3.3" scope="project" />
|
||||
<pathVariable name="CLB_SIM_COMPILER" path="C:/TDM-GCC-64/bin" scope="project" />
|
||||
<buildVariable name="CLB_DEBUG" value="0" scope="project" />
|
||||
<buildVariable name="GENERATE_DIAGRAM" value="0" scope="project" />
|
||||
<buildVariable name="GUI_SUPPORT" value="0" scope="project" />
|
||||
<file action="copy" path="../transfer_rtlog.c" targetDirectory="" />
|
||||
<file action="copy" path="../transfer_rtlog.syscfg" targetDirectory="" />
|
||||
</project>
|
||||
</projectSpec>
|
||||
@@ -0,0 +1,129 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: transfer_bridge_sci.c
|
||||
//
|
||||
// TITLE: Transfer: Bridge solution
|
||||
//
|
||||
//! \addtogroup driver_example_list
|
||||
//! <h1> Solution for data logging to bridge device </h1>
|
||||
//!
|
||||
//! This example can be loaded for a bridge device that is taking in FSI
|
||||
//! and outputting SCI. For this example, you can use the already built-in
|
||||
//! XDS UART or SCI to USB on a launchpad or controlCARD to view the output.
|
||||
//! This example works in conjunction with the transfer_customlog_export_fsi
|
||||
//! example.
|
||||
//! Flash the bridge device with this application code, and run the
|
||||
//! transfer_customlog_export_fsi example from another device.
|
||||
//!
|
||||
//! In this example, we are using SCI to export data out of the device while
|
||||
//! receiving FSI as the input.
|
||||
//! If you're using a launchpad, you can enable board components to select
|
||||
//! the correct SCI base to visualize the data through the COM port.
|
||||
//! Open a serial terminal with the correct port selected to view the data
|
||||
//! coming out of the bridge device.
|
||||
//!
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
// C2000Ware v5.04.00.00
|
||||
//
|
||||
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "driverlib.h"
|
||||
#include "device.h"
|
||||
#include "board.h"
|
||||
#include "c2000ware_libraries.h"
|
||||
#include "bridge/bridge.h"
|
||||
|
||||
|
||||
//
|
||||
// Main
|
||||
//
|
||||
void main(void)
|
||||
{
|
||||
|
||||
//
|
||||
// Initialize device clock and peripherals
|
||||
//
|
||||
Device_init();
|
||||
|
||||
//
|
||||
// Disable pin locks and enable internal pull-ups.
|
||||
//
|
||||
Device_initGPIO();
|
||||
|
||||
//
|
||||
// Initialize PIE and clear PIE registers. Disables CPU interrupts.
|
||||
//
|
||||
Interrupt_initModule();
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
//
|
||||
Interrupt_initVectorTable();
|
||||
|
||||
//
|
||||
// PinMux and Peripheral Initialization
|
||||
//
|
||||
Board_init();
|
||||
|
||||
//
|
||||
// C2000Ware Library initialization
|
||||
//
|
||||
C2000Ware_libraries_init();
|
||||
|
||||
//
|
||||
// Logging Inits
|
||||
//
|
||||
BRIDGE_init();
|
||||
|
||||
//
|
||||
// Enable Global Interrupt (INTM) and real time interrupt (DBGM)
|
||||
//
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
while(1)
|
||||
{
|
||||
BRIDGE_transferBufferData();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// End of File
|
||||
//
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/**
|
||||
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
||||
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
||||
* @cliArgs --device "F2838x" --package "337bga" --part "F2838x_337bga" --context "CPU1" --product "C2000WARE@5.02.00.00"
|
||||
* @versions {"tool":"1.0.0+dev"}
|
||||
*/
|
||||
/**
|
||||
* Import the modules used in this configuration.
|
||||
*/
|
||||
const device_support = scripting.addModule("/driverlib/device_support.js");
|
||||
const sysctl = scripting.addModule("/driverlib/sysctl.js");
|
||||
const CMD = scripting.addModule("/utilities/cmd_tool/cmd_syscfg/source/CMD");
|
||||
const CMD1 = CMD.addInstance();
|
||||
const CMD2 = CMD.addInstance();
|
||||
const gui = scripting.addModule("/utilities/transfer/gui.js");
|
||||
const transferbridge = scripting.addModule("/utilities/transfer/transferbridge.js", {}, false);
|
||||
const transferbridge1 = transferbridge.addInstance();
|
||||
|
||||
/**
|
||||
* Write custom configuration values to the imported modules.
|
||||
*/
|
||||
|
||||
transferbridge1.$name = "myBridge0";
|
||||
transferbridge1.comsLinkA = "sci";
|
||||
transferbridge1.comsLinkBBuffer = true;
|
||||
transferbridge1.comsLinkBErrorHandler = true;
|
||||
transferbridge1.comsLinkBModule.enableLoopback = scripting.forceWrite(false);
|
||||
transferbridge1.comsLinkBModule.enableTagMatching = scripting.forceWrite(false);
|
||||
transferbridge1.comsLinkBModule.pingTimeout = scripting.forceWrite(false);
|
||||
transferbridge1.comsLinkBModule.useCase = "FSI RX Single Dataline";
|
||||
transferbridge1.comsLinkAModule.wordLenght = scripting.forceWrite("8");
|
||||
transferbridge1.comsLinkAModule.stop = scripting.forceWrite("ONE");
|
||||
transferbridge1.comsLinkAModule.parity = scripting.forceWrite("SCI_CONFIG_PAR_NONE");
|
||||
transferbridge1.comsLinkAModule.registerInterrupts = scripting.forceWrite(false);
|
||||
transferbridge1.comsLinkAModule.useFifo = scripting.forceWrite(true);
|
||||
transferbridge1.comsLinkAModule.loopback = scripting.forceWrite(false);
|
||||
transferbridge1.comsLinkAModule.useCase = scripting.forceWrite("ALL");
|
||||
transferbridge1.comsLinkAModule.rxFifo = "SCI_FIFO_RX16";
|
||||
transferbridge1.comsLinkAModule.enabledFIFOInterrupts = ["SCI_INT_RXFF"];
|
||||
|
||||
|
||||
/**
|
||||
* Write custom configuration values to the imported modules.
|
||||
*/
|
||||
CMD1.$name = "generic_ram_lnk";
|
||||
CMD2.$name = "generic_flash_lnk";
|
||||
|
||||
CMD1.sectionMemory_text = ["RAMLS0","RAMLS1","RAMLS2","RAMLS3","RAMLS4"];
|
||||
CMD1.sectionMemory_ramfunc = ["RAMM0"];
|
||||
CMD1.sectionMemory_cinit = ["RAMM0"];
|
||||
CMD1.sectionMemory_stack = ["RAMM1"];
|
||||
CMD1.sectionMemory_init_array = ["RAMM0"];
|
||||
CMD1.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD1.sectionMemory_const = ["RAMLS5"];
|
||||
CMD1.sectionMemory_data = ["RAMLS5"];
|
||||
CMD1.sectionMemory_switch = ["RAMM0"];
|
||||
CMD1.sectionMemory_sysmem = ["RAMLS5"];
|
||||
|
||||
CMD2.sectionAlignEnable_ramfunc = true;
|
||||
CMD2.sectionAlignEnable_text = true;
|
||||
CMD2.sectionAlignEnable_binit = true;
|
||||
CMD2.sectionAlignEnable_cinit = true;
|
||||
CMD2.sectionAlignEnable_switch = true;
|
||||
CMD2.sectionAlignEnable_init_array = true;
|
||||
CMD2.sectionAlignEnable_const = true;
|
||||
CMD2.sectionAlignEnable_ovly = true;
|
||||
CMD2.sectionMemory_codestart = "0x080000";
|
||||
CMD2.sectionMemory_stack = ["RAMM1"];
|
||||
CMD2.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD2.sectionMemory_data = ["RAMLS5"];
|
||||
CMD2.sectionMemory_sysmem = ["RAMLS5"];
|
||||
CMD2.sectionMemory_ramfunc = ["FLASH3"];
|
||||
CMD2.sectionMemory_text = ["FLASH1","FLASH2","FLASH3","FLASH4"];
|
||||
CMD2.sectionMemory_binit = ["FLASH4"];
|
||||
CMD2.sectionMemory_cinit = ["FLASH4"];
|
||||
CMD2.sectionMemory_switch = ["FLASH1"];
|
||||
CMD2.sectionMemory_init_array = ["FLASH1"];
|
||||
CMD2.sectionMemory_const = ["FLASH5"];
|
||||
CMD2.sectionMemory_ovly = ["FLASH6"];
|
||||
CMD2.sectionRunFromDifferentAddr_ramfunc = true;
|
||||
CMD2.sectionRun_ramfunc = ["RAMLS0"];
|
||||
CMD2.sectionBinit_ramfunc = false;
|
||||
|
||||
|
||||
@@ -0,0 +1,149 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: transfer_comslogger_export_sci.c
|
||||
//
|
||||
// TITLE: Transfer: Communication Logger
|
||||
//
|
||||
//! \addtogroup driver_example_list
|
||||
//! <h1> Solution for interpreting communication peripheral messages </h1>
|
||||
//!
|
||||
//! This example can be loaded for a bridge device that is taking in FSI
|
||||
//! and outputting SCI. For this example, you can use the already built-in
|
||||
//! XDS UART or SCI to USB on a launchpad or controlCARD to view the output.
|
||||
//! This example works in conjunction with the transfer_raw_fsi_tx example.
|
||||
//! Flash the bridge device with this application code, and run the
|
||||
//! transfer_raw_fsi_tx example from another device.
|
||||
//!
|
||||
//! If you're using a launchpad, you can enable board components to select
|
||||
//! the correct FSI header.
|
||||
//! Please ensure the project variable GUI_SUPPORT is set to 1.
|
||||
//! //! View -> GUI Composer -> Applications ->
|
||||
//! transfer_comslogger_export_sci
|
||||
//!
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
// C2000Ware v5.04.00.00
|
||||
//
|
||||
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "driverlib.h"
|
||||
#include "device.h"
|
||||
#include "board.h"
|
||||
#include "c2000ware_libraries.h"
|
||||
#include "export/export.h"
|
||||
#include "logger/coms_logger.h"
|
||||
|
||||
|
||||
//
|
||||
// Main
|
||||
//
|
||||
void main(void)
|
||||
{
|
||||
|
||||
//
|
||||
// Initialize device clock and peripherals
|
||||
//
|
||||
Device_init();
|
||||
|
||||
//
|
||||
// Disable pin locks and enable internal pull-ups.
|
||||
//
|
||||
Device_initGPIO();
|
||||
|
||||
//
|
||||
// Initialize PIE and clear PIE registers. Disables CPU interrupts.
|
||||
//
|
||||
Interrupt_initModule();
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
//
|
||||
Interrupt_initVectorTable();
|
||||
|
||||
//
|
||||
// PinMux and Peripheral Initialization
|
||||
//
|
||||
Board_init();
|
||||
|
||||
//
|
||||
// C2000Ware Library initialization
|
||||
//
|
||||
C2000Ware_libraries_init();
|
||||
|
||||
//
|
||||
// Logging Inits
|
||||
//
|
||||
EXPORT_init();
|
||||
COMSLOG_init();
|
||||
|
||||
//
|
||||
// Enable Global Interrupt (INTM) and real time interrupt (DBGM)
|
||||
//
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
while(1)
|
||||
{
|
||||
COMSLOG_transferBufferData();
|
||||
}
|
||||
}
|
||||
|
||||
void COMSLOG_transferBufferOverflow() {
|
||||
|
||||
//
|
||||
// Received too much data too quickly. The transfer buffer overflowed
|
||||
// Make the buffer larger
|
||||
//
|
||||
ESTOP0;
|
||||
|
||||
}
|
||||
|
||||
void COMSLOG_comsLinkError(uint16_t status) {
|
||||
|
||||
//
|
||||
// FSI receive error occurred
|
||||
// Bad frames received
|
||||
//
|
||||
ESTOP0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// End of File
|
||||
//
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
/**
|
||||
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
||||
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
||||
* @cliArgs --device "F2838x" --package "337bga" --part "F2838x_337bga" --context "CPU1" --product "C2000WARE@5.02.00.00"
|
||||
* @versions {"tool":"1.0.0+dev"}
|
||||
*/
|
||||
/**
|
||||
* Import the modules used in this configuration.
|
||||
*/
|
||||
const device_support = scripting.addModule("/driverlib/device_support.js");
|
||||
const sysctl = scripting.addModule("/driverlib/sysctl.js");
|
||||
const CMD = scripting.addModule("/utilities/cmd_tool/cmd_syscfg/source/CMD");
|
||||
const CMD1 = CMD.addInstance();
|
||||
const CMD2 = CMD.addInstance();
|
||||
const gui = scripting.addModule("/utilities/transfer/gui.js");
|
||||
|
||||
/**
|
||||
* Write custom configuration values to the imported modules.
|
||||
*/
|
||||
|
||||
gui.fsilogger = true;
|
||||
gui.fsiComsLogger = true;
|
||||
gui.guiProjectName = "transfer_comslogger_export_sci";
|
||||
gui.exporter.$name = "myEXPORT0";
|
||||
gui.exporter.comsLinkModule.wordLenght = scripting.forceWrite("8");
|
||||
gui.exporter.comsLinkModule.stop = scripting.forceWrite("ONE");
|
||||
gui.exporter.comsLinkModule.parity = scripting.forceWrite("SCI_CONFIG_PAR_NONE");
|
||||
gui.exporter.comsLinkModule.registerInterrupts = scripting.forceWrite(false);
|
||||
gui.exporter.comsLinkModule.useFifo = scripting.forceWrite(true);
|
||||
gui.exporter.comsLinkModule.loopback = scripting.forceWrite(false);
|
||||
gui.exporter.comsLinkModule.useCase = scripting.forceWrite("ALL");
|
||||
gui.comsLoggerModule.$name = "myCOMSLogger0";
|
||||
gui.comsLoggerModule.comsLink = scripting.forceWrite("fsi");
|
||||
gui.comsLoggerModule.comsLinkErrorHandler = true;
|
||||
gui.comsLoggerModule.comsLinkModule.enableTagMatching = scripting.forceWrite(false);
|
||||
gui.comsLoggerModule.comsLinkModule.pingTimeout = scripting.forceWrite(false);
|
||||
|
||||
|
||||
/**
|
||||
* Write custom configuration values to the imported modules.
|
||||
*/
|
||||
CMD1.$name = "generic_ram_lnk";
|
||||
CMD2.$name = "generic_flash_lnk";
|
||||
|
||||
CMD1.sectionMemory_text = ["RAMLS0","RAMLS1","RAMLS2","RAMLS3","RAMLS4"];
|
||||
CMD1.sectionMemory_ramfunc = ["RAMM0"];
|
||||
CMD1.sectionMemory_cinit = ["RAMM0"];
|
||||
CMD1.sectionMemory_stack = ["RAMM1"];
|
||||
CMD1.sectionMemory_init_array = ["RAMM0"];
|
||||
CMD1.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD1.sectionMemory_const = ["RAMLS5"];
|
||||
CMD1.sectionMemory_data = ["RAMLS5"];
|
||||
CMD1.sectionMemory_switch = ["RAMM0"];
|
||||
CMD1.sectionMemory_sysmem = ["RAMLS5"];
|
||||
|
||||
CMD2.sectionAlignEnable_ramfunc = true;
|
||||
CMD2.sectionAlignEnable_text = true;
|
||||
CMD2.sectionAlignEnable_binit = true;
|
||||
CMD2.sectionAlignEnable_cinit = true;
|
||||
CMD2.sectionAlignEnable_switch = true;
|
||||
CMD2.sectionAlignEnable_init_array = true;
|
||||
CMD2.sectionAlignEnable_const = true;
|
||||
CMD2.sectionAlignEnable_ovly = true;
|
||||
CMD2.sectionMemory_codestart = "0x080000";
|
||||
CMD2.sectionMemory_stack = ["RAMM1"];
|
||||
CMD2.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD2.sectionMemory_data = ["RAMLS5"];
|
||||
CMD2.sectionMemory_sysmem = ["RAMLS5"];
|
||||
CMD2.sectionMemory_ramfunc = ["FLASH3"];
|
||||
CMD2.sectionMemory_text = ["FLASH1","FLASH2","FLASH3","FLASH4"];
|
||||
CMD2.sectionMemory_binit = ["FLASH4"];
|
||||
CMD2.sectionMemory_cinit = ["FLASH4"];
|
||||
CMD2.sectionMemory_switch = ["FLASH1"];
|
||||
CMD2.sectionMemory_init_array = ["FLASH1"];
|
||||
CMD2.sectionMemory_const = ["FLASH5"];
|
||||
CMD2.sectionMemory_ovly = ["FLASH6"];
|
||||
CMD2.sectionRunFromDifferentAddr_ramfunc = true;
|
||||
CMD2.sectionRun_ramfunc = ["RAMLS0"];
|
||||
CMD2.sectionBinit_ramfunc = false;
|
||||
|
||||
|
||||
+131
@@ -0,0 +1,131 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: transfer_comslogger_rtlog_export_sci.c
|
||||
//
|
||||
// TITLE: Transfer: Communication Logger + Real-Time Log
|
||||
//
|
||||
//! \addtogroup driver_example_list
|
||||
//! <h1> GUI based solution for data logging (one direction) </h1>
|
||||
//!
|
||||
//! This example demonstrates how to use SysConfig to enable datalogging
|
||||
//! on our C28x devices.
|
||||
//!
|
||||
//! This example works in conjunction with
|
||||
//! transfer_rtlog and receives incoming FSI packets.
|
||||
//! The FSI packets then go through SCI to the PC. Please make sure to input
|
||||
//! the correct path in the "Message Decode realtime_log.json" SysConfig
|
||||
//! parameter. This file is an output from the transfer_rtlog project under
|
||||
//! {path_to_ccsproject}\{build_configuration}\syscfg\logger\realtime_log.json
|
||||
//! This .json file will provide the GUI what variables are coming to the
|
||||
//! communcation logger device to then output on the GUI.
|
||||
//! Please ensure GUI_SUPPORT is set to 1.
|
||||
//! //! View -> GUI Composer -> Applications ->
|
||||
//! comslogger_rtlog_export_sci
|
||||
//!
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
// C2000Ware v5.04.00.00
|
||||
//
|
||||
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "driverlib.h"
|
||||
#include "device.h"
|
||||
#include "board.h"
|
||||
#include "c2000ware_libraries.h"
|
||||
#include "export/export.h"
|
||||
#include "logger/coms_logger.h"
|
||||
|
||||
|
||||
//
|
||||
// Main
|
||||
//
|
||||
void main(void)
|
||||
{
|
||||
|
||||
//
|
||||
// Initialize device clock and peripherals
|
||||
//
|
||||
Device_init();
|
||||
|
||||
//
|
||||
// Disable pin locks and enable internal pull-ups.
|
||||
//
|
||||
Device_initGPIO();
|
||||
|
||||
//
|
||||
// Initialize PIE and clear PIE registers. Disables CPU interrupts.
|
||||
//
|
||||
Interrupt_initModule();
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
//
|
||||
Interrupt_initVectorTable();
|
||||
|
||||
//
|
||||
// PinMux and Peripheral Initialization
|
||||
//
|
||||
Board_init();
|
||||
|
||||
//
|
||||
// C2000Ware Library initialization
|
||||
//
|
||||
C2000Ware_libraries_init();
|
||||
|
||||
//
|
||||
// Logging Inits
|
||||
//
|
||||
EXPORT_init();
|
||||
COMSLOG_init();
|
||||
|
||||
//
|
||||
// Enable Global Interrupt (INTM) and real time interrupt (DBGM)
|
||||
//
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
while(1)
|
||||
{
|
||||
COMSLOG_transferBufferData();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// End of File
|
||||
//
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
/**
|
||||
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
||||
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
||||
* @cliArgs --device "F2838x" --package "337bga" --part "F2838x_337bga" --context "CPU1" --product "C2000WARE@5.02.00.00"
|
||||
* @versions {"tool":"1.0.0+dev"}
|
||||
*/
|
||||
/**
|
||||
* Import the modules used in this configuration.
|
||||
*/
|
||||
const device_support = scripting.addModule("/driverlib/device_support.js");
|
||||
const sysctl = scripting.addModule("/driverlib/sysctl.js");
|
||||
const CMD = scripting.addModule("/utilities/cmd_tool/cmd_syscfg/source/CMD");
|
||||
const CMD1 = CMD.addInstance();
|
||||
const CMD2 = CMD.addInstance();
|
||||
const gui = scripting.addModule("/utilities/transfer/gui.js");
|
||||
|
||||
/**
|
||||
* Write custom configuration values to the imported modules.
|
||||
*/
|
||||
CMD1.$name = "generic_ram_lnk";
|
||||
CMD2.$name = "generic_flash_lnk";
|
||||
|
||||
gui.fsilogger = true;
|
||||
gui.guiProjectName = "comslogger_rtlog_export_sci";
|
||||
gui.fsiComsLogger = true;
|
||||
gui.rtlogger = true;
|
||||
gui.exporter.$name = "myEXPORT0";
|
||||
gui.exporter.comsLinkModule.loopback = scripting.forceWrite(false);
|
||||
gui.exporter.comsLinkModule.wordLenght = scripting.forceWrite("8");
|
||||
gui.exporter.comsLinkModule.stop = scripting.forceWrite("ONE");
|
||||
gui.exporter.comsLinkModule.parity = scripting.forceWrite("SCI_CONFIG_PAR_NONE");
|
||||
gui.exporter.comsLinkModule.useFifo = scripting.forceWrite(true);
|
||||
gui.exporter.comsLinkModule.useCase = scripting.forceWrite("ALL");
|
||||
gui.comsLoggerModule.$name = "myCOMSLogger0";
|
||||
gui.comsLoggerModule.comsLink = scripting.forceWrite("fsi");
|
||||
gui.comsLoggerModule.comsLinkModule.enableTagMatching = scripting.forceWrite(false);
|
||||
gui.comsLoggerModule.comsLinkModule.pingTimeout = scripting.forceWrite(false);
|
||||
|
||||
CMD1.sectionMemory_text = ["RAMLS0","RAMLS1","RAMLS2","RAMLS3","RAMLS4"];
|
||||
CMD1.sectionMemory_ramfunc = ["RAMM0"];
|
||||
CMD1.sectionMemory_cinit = ["RAMM0"];
|
||||
CMD1.sectionMemory_stack = ["RAMM1"];
|
||||
CMD1.sectionMemory_init_array = ["RAMM0"];
|
||||
CMD1.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD1.sectionMemory_const = ["RAMLS5"];
|
||||
CMD1.sectionMemory_data = ["RAMLS5"];
|
||||
CMD1.sectionMemory_switch = ["RAMM0"];
|
||||
CMD1.sectionMemory_sysmem = ["RAMLS5"];
|
||||
|
||||
CMD2.sectionAlignEnable_ramfunc = true;
|
||||
CMD2.sectionAlignEnable_text = true;
|
||||
CMD2.sectionAlignEnable_binit = true;
|
||||
CMD2.sectionAlignEnable_cinit = true;
|
||||
CMD2.sectionAlignEnable_switch = true;
|
||||
CMD2.sectionAlignEnable_init_array = true;
|
||||
CMD2.sectionAlignEnable_const = true;
|
||||
CMD2.sectionAlignEnable_ovly = true;
|
||||
CMD2.sectionMemory_codestart = "0x080000";
|
||||
CMD2.sectionMemory_stack = ["RAMM1"];
|
||||
CMD2.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD2.sectionMemory_data = ["RAMLS5"];
|
||||
CMD2.sectionMemory_sysmem = ["RAMLS5"];
|
||||
CMD2.sectionMemory_ramfunc = ["FLASH3"];
|
||||
CMD2.sectionMemory_text = ["FLASH1","FLASH2","FLASH3","FLASH4"];
|
||||
CMD2.sectionMemory_binit = ["FLASH4"];
|
||||
CMD2.sectionMemory_cinit = ["FLASH4"];
|
||||
CMD2.sectionMemory_switch = ["FLASH1"];
|
||||
CMD2.sectionMemory_init_array = ["FLASH1"];
|
||||
CMD2.sectionMemory_const = ["FLASH5"];
|
||||
CMD2.sectionMemory_ovly = ["FLASH6"];
|
||||
CMD2.sectionRunFromDifferentAddr_ramfunc = true;
|
||||
CMD2.sectionRun_ramfunc = ["RAMLS0"];
|
||||
CMD2.sectionBinit_ramfunc = false;
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: transfer_customlog_export_fsi.c
|
||||
//
|
||||
// TITLE: Transfer: Custom Logger Solution
|
||||
//
|
||||
//! \addtogroup driver_example_list
|
||||
//! <h1> GUI based solution for data logging (one direction) </h1>
|
||||
//!
|
||||
//! This example demonstrates how to use SysConfig to enable datalogging
|
||||
//! on our C28x devices.
|
||||
//!
|
||||
//! In this example, we are using FSI to export data out of the device in
|
||||
//! JSON format.
|
||||
//! If you're using a launchpad, you can enable board components to select
|
||||
//! the correct FSI base to visualize the data through the COM port.
|
||||
//!
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
// C2000Ware v5.04.00.00
|
||||
//
|
||||
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "driverlib.h"
|
||||
#include "device.h"
|
||||
#include "board.h"
|
||||
#include "c2000ware_libraries.h"
|
||||
#include "export/export_log.h"
|
||||
|
||||
|
||||
//
|
||||
// Main
|
||||
//
|
||||
void main(void)
|
||||
{
|
||||
|
||||
//
|
||||
// Initialize device clock and peripherals
|
||||
//
|
||||
Device_init();
|
||||
|
||||
//
|
||||
// Disable pin locks and enable internal pull-ups.
|
||||
//
|
||||
Device_initGPIO();
|
||||
|
||||
//
|
||||
// Initialize PIE and clear PIE registers. Disables CPU interrupts.
|
||||
//
|
||||
Interrupt_initModule();
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
//
|
||||
Interrupt_initVectorTable();
|
||||
|
||||
//
|
||||
// PinMux and Peripheral Initialization
|
||||
//
|
||||
Board_init();
|
||||
|
||||
//
|
||||
// C2000Ware Library initialization
|
||||
//
|
||||
C2000Ware_libraries_init();
|
||||
|
||||
//
|
||||
// Logging Inits
|
||||
//
|
||||
EXPORT_init();
|
||||
EXPORTLOG_init();
|
||||
|
||||
//
|
||||
// Enable Global Interrupt (INTM) and real time interrupt (DBGM)
|
||||
//
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
while(1)
|
||||
{
|
||||
DEVICE_DELAY_US(1000000);
|
||||
|
||||
EXPORTLOG_log("Logging entry 1");
|
||||
EXPORTLOG_log("Next log entry 2");
|
||||
EXPORTLOG_log("last entry 3");
|
||||
EXPORT_flushBufferElement();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// End of File
|
||||
//
|
||||
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
/**
|
||||
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
||||
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
||||
* @cliArgs --device "F2838x" --package "337bga" --part "F2838x_337bga" --context "CPU1" --product "C2000WARE@5.02.00.00"
|
||||
* @versions {"tool":"1.0.0+dev"}
|
||||
*/
|
||||
/**
|
||||
* Import the modules used in this configuration.
|
||||
*/
|
||||
const device_support = scripting.addModule("/driverlib/device_support.js");
|
||||
const sysctl = scripting.addModule("/driverlib/sysctl.js");
|
||||
const CMD = scripting.addModule("/utilities/cmd_tool/cmd_syscfg/source/CMD");
|
||||
const CMD1 = CMD.addInstance();
|
||||
const CMD2 = CMD.addInstance();
|
||||
const gui = scripting.addModule("/utilities/transfer/gui.js");
|
||||
|
||||
/**
|
||||
* Write custom configuration values to the imported modules.
|
||||
*/
|
||||
|
||||
gui.customlogger = true;
|
||||
gui.guiProjectName = "transfer_customlog_export_fsi";
|
||||
gui.exporter.$name = "myEXPORT0";
|
||||
gui.exporter.exportCustomLogTimestamp = true;
|
||||
gui.exporter.comsLink = "fsi";
|
||||
gui.exporter.comsLinkModule.startOfTransmissionMode = scripting.forceWrite("FSI_TX_START_FRAME_CTRL");
|
||||
gui.exporter.comsLinkModule.pingTimeout = scripting.forceWrite(false);
|
||||
gui.exporter.comsLinkModule.userCRC = scripting.forceWrite(false);
|
||||
gui.exporter.comsLinkModule.eccComputeWidth = scripting.forceWrite("FSI_32BIT_ECC_COMPUTE");
|
||||
gui.exporter.comsLinkModule.useCase = "FSI TX Single Dataline";
|
||||
gui.exporter.comsLinkModule.d0Qual.padConfig = scripting.forceWrite("STD");
|
||||
gui.exporter.comsLinkModule.clkQual.padConfig = scripting.forceWrite("STD");
|
||||
|
||||
|
||||
/**
|
||||
* Write custom configuration values to the imported modules.
|
||||
*/
|
||||
CMD1.$name = "generic_ram_lnk";
|
||||
CMD2.$name = "generic_flash_lnk";
|
||||
|
||||
CMD1.sectionMemory_text = ["RAMLS0","RAMLS1","RAMLS2","RAMLS3","RAMLS4"];
|
||||
CMD1.sectionMemory_ramfunc = ["RAMM0"];
|
||||
CMD1.sectionMemory_cinit = ["RAMM0"];
|
||||
CMD1.sectionMemory_stack = ["RAMM1"];
|
||||
CMD1.sectionMemory_init_array = ["RAMM0"];
|
||||
CMD1.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD1.sectionMemory_const = ["RAMLS5"];
|
||||
CMD1.sectionMemory_data = ["RAMLS5"];
|
||||
CMD1.sectionMemory_switch = ["RAMM0"];
|
||||
CMD1.sectionMemory_sysmem = ["RAMLS5"];
|
||||
|
||||
CMD2.sectionAlignEnable_ramfunc = true;
|
||||
CMD2.sectionAlignEnable_text = true;
|
||||
CMD2.sectionAlignEnable_binit = true;
|
||||
CMD2.sectionAlignEnable_cinit = true;
|
||||
CMD2.sectionAlignEnable_switch = true;
|
||||
CMD2.sectionAlignEnable_init_array = true;
|
||||
CMD2.sectionAlignEnable_const = true;
|
||||
CMD2.sectionAlignEnable_ovly = true;
|
||||
CMD2.sectionMemory_codestart = "0x080000";
|
||||
CMD2.sectionMemory_stack = ["RAMM1"];
|
||||
CMD2.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD2.sectionMemory_data = ["RAMLS5"];
|
||||
CMD2.sectionMemory_sysmem = ["RAMLS5"];
|
||||
CMD2.sectionMemory_ramfunc = ["FLASH3"];
|
||||
CMD2.sectionMemory_text = ["FLASH1","FLASH2","FLASH3","FLASH4"];
|
||||
CMD2.sectionMemory_binit = ["FLASH4"];
|
||||
CMD2.sectionMemory_cinit = ["FLASH4"];
|
||||
CMD2.sectionMemory_switch = ["FLASH1"];
|
||||
CMD2.sectionMemory_init_array = ["FLASH1"];
|
||||
CMD2.sectionMemory_const = ["FLASH5"];
|
||||
CMD2.sectionMemory_ovly = ["FLASH6"];
|
||||
CMD2.sectionRunFromDifferentAddr_ramfunc = true;
|
||||
CMD2.sectionRun_ramfunc = ["RAMLS0"];
|
||||
CMD2.sectionBinit_ramfunc = false;
|
||||
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: transfer_customlog_export_sci.c
|
||||
//
|
||||
// TITLE: Transfer: Custom Logger Solution
|
||||
//
|
||||
//! \addtogroup driver_example_list
|
||||
//! <h1> GUI based solution for data logging (one direction) </h1>
|
||||
//!
|
||||
//! This example demonstrates how to use SysConfig to enable datalogging
|
||||
//! on our C28x devices. To enable this example, make sure to go to
|
||||
//! Build -> Variables and set GUI_SUPPORT to value of 1.
|
||||
//! This will create the GUI in CCS which can be opened under
|
||||
//! View -> GUI Composer -> Applications -> transfer_customlog_export_sci
|
||||
//!
|
||||
//! In this example, we are using SCI to export data out of the device.
|
||||
//! If you're using a launchpad, you can enable board components to select
|
||||
//! the correct SCI base to visualize the data through the COM port.
|
||||
//!
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
// C2000Ware v5.04.00.00
|
||||
//
|
||||
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "driverlib.h"
|
||||
#include "device.h"
|
||||
#include "board.h"
|
||||
#include "c2000ware_libraries.h"
|
||||
#include "export/export_log.h"
|
||||
|
||||
|
||||
//
|
||||
// Main
|
||||
//
|
||||
void main(void)
|
||||
{
|
||||
|
||||
//
|
||||
// Initialize device clock and peripherals
|
||||
//
|
||||
Device_init();
|
||||
|
||||
//
|
||||
// Disable pin locks and enable internal pull-ups.
|
||||
//
|
||||
Device_initGPIO();
|
||||
|
||||
//
|
||||
// Initialize PIE and clear PIE registers. Disables CPU interrupts.
|
||||
//
|
||||
Interrupt_initModule();
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
//
|
||||
Interrupt_initVectorTable();
|
||||
|
||||
//
|
||||
// PinMux and Peripheral Initialization
|
||||
//
|
||||
Board_init();
|
||||
|
||||
//
|
||||
// C2000Ware Library initialization
|
||||
//
|
||||
C2000Ware_libraries_init();
|
||||
|
||||
//
|
||||
// Logging Inits
|
||||
//
|
||||
EXPORT_init();
|
||||
EXPORTLOG_init();
|
||||
|
||||
//
|
||||
// Enable Global Interrupt (INTM) and real time interrupt (DBGM)
|
||||
//
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
while(1)
|
||||
{
|
||||
DEVICE_DELAY_US(1000000);
|
||||
|
||||
EXPORTLOG_log("Logging entry 1");
|
||||
EXPORTLOG_log("Next log entry 2");
|
||||
EXPORTLOG_log("last entry 3");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// End of File
|
||||
//
|
||||
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
/**
|
||||
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
||||
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
||||
* @cliArgs --device "F2838x" --package "337bga" --part "F2838x_337bga" --context "CPU1" --product "C2000WARE@5.02.00.00"
|
||||
* @versions {"tool":"1.0.0+dev"}
|
||||
*/
|
||||
/**
|
||||
* Import the modules used in this configuration.
|
||||
*/
|
||||
const device_support = scripting.addModule("/driverlib/device_support.js");
|
||||
const sysctl = scripting.addModule("/driverlib/sysctl.js");
|
||||
const CMD = scripting.addModule("/utilities/cmd_tool/cmd_syscfg/source/CMD");
|
||||
const CMD1 = CMD.addInstance();
|
||||
const CMD2 = CMD.addInstance();
|
||||
const gui = scripting.addModule("/utilities/transfer/gui.js");
|
||||
|
||||
/**
|
||||
* Write custom configuration values to the imported modules.
|
||||
*/
|
||||
CMD1.$name = "generic_ram_lnk";
|
||||
CMD2.$name = "generic_flash_lnk";
|
||||
|
||||
CMD1.sectionMemory_text = ["RAMLS0","RAMLS1","RAMLS2","RAMLS3","RAMLS4"];
|
||||
CMD1.sectionMemory_ramfunc = ["RAMM0"];
|
||||
CMD1.sectionMemory_cinit = ["RAMM0"];
|
||||
CMD1.sectionMemory_stack = ["RAMM1"];
|
||||
CMD1.sectionMemory_init_array = ["RAMM0"];
|
||||
CMD1.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD1.sectionMemory_const = ["RAMLS5"];
|
||||
CMD1.sectionMemory_data = ["RAMLS5"];
|
||||
CMD1.sectionMemory_switch = ["RAMM0"];
|
||||
CMD1.sectionMemory_sysmem = ["RAMLS5"];
|
||||
|
||||
CMD2.sectionAlignEnable_ramfunc = true;
|
||||
CMD2.sectionAlignEnable_text = true;
|
||||
CMD2.sectionAlignEnable_binit = true;
|
||||
CMD2.sectionAlignEnable_cinit = true;
|
||||
CMD2.sectionAlignEnable_switch = true;
|
||||
CMD2.sectionAlignEnable_init_array = true;
|
||||
CMD2.sectionAlignEnable_const = true;
|
||||
CMD2.sectionAlignEnable_ovly = true;
|
||||
CMD2.sectionMemory_codestart = "0x080000";
|
||||
CMD2.sectionMemory_stack = ["RAMM1"];
|
||||
CMD2.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD2.sectionMemory_data = ["RAMLS5"];
|
||||
CMD2.sectionMemory_sysmem = ["RAMLS5"];
|
||||
CMD2.sectionMemory_ramfunc = ["FLASH3"];
|
||||
CMD2.sectionMemory_text = ["FLASH1","FLASH2","FLASH3","FLASH4"];
|
||||
CMD2.sectionMemory_binit = ["FLASH4"];
|
||||
CMD2.sectionMemory_cinit = ["FLASH4"];
|
||||
CMD2.sectionMemory_switch = ["FLASH1"];
|
||||
CMD2.sectionMemory_init_array = ["FLASH1"];
|
||||
CMD2.sectionMemory_const = ["FLASH5"];
|
||||
CMD2.sectionMemory_ovly = ["FLASH6"];
|
||||
CMD2.sectionRunFromDifferentAddr_ramfunc = true;
|
||||
CMD2.sectionRun_ramfunc = ["RAMLS0"];
|
||||
CMD2.sectionBinit_ramfunc = false;
|
||||
|
||||
gui.guiProjectName = "transfer_customlog_export_sci";
|
||||
gui.customlogger = true;
|
||||
gui.exporter.$name = "myEXPORT0";
|
||||
gui.exporter.exportMods = false;
|
||||
gui.exporter.exportCustomLogTimestamp = true;
|
||||
gui.exporter.comsLinkModule.wordLenght = scripting.forceWrite("8");
|
||||
gui.exporter.comsLinkModule.stop = scripting.forceWrite("ONE");
|
||||
gui.exporter.comsLinkModule.parity = scripting.forceWrite("SCI_CONFIG_PAR_NONE");
|
||||
gui.exporter.comsLinkModule.registerInterrupts = scripting.forceWrite(false);
|
||||
gui.exporter.comsLinkModule.useFifo = scripting.forceWrite(true);
|
||||
gui.exporter.comsLinkModule.loopback = scripting.forceWrite(false);
|
||||
gui.exporter.comsLinkModule.useCase = scripting.forceWrite("ALL");
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: transfer_customlog_export_sci_buffer.c
|
||||
//
|
||||
// TITLE: Transfer: Custom Logger Solution
|
||||
//
|
||||
//! \addtogroup driver_example_list
|
||||
//! <h1> GUI based solution for data logging (one direction) </h1>
|
||||
//!
|
||||
//! This example demonstrates how to use SysConfig to enable datalogging
|
||||
//! on our C28x devices. To enable this example, make sure to go to
|
||||
//! Build -> Variables and set GUI_SUPPORT to value of 1.
|
||||
//! This will create the GUI in CCS which can be opened under
|
||||
//! View -> GUI Composer -> Applications ->
|
||||
//! transfer_customlog_export_sci_buffer
|
||||
//! In this example, we are using SCI to export data out of the device. Before
|
||||
//! exporting, we write to an internal buffer before exporting out of device.
|
||||
//! If you're using a launchpad, you can enable board components to select
|
||||
//! the correct SCI base to visualize the data through the COM port.
|
||||
//!
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
// C2000Ware v5.04.00.00
|
||||
//
|
||||
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "driverlib.h"
|
||||
#include "device.h"
|
||||
#include "board.h"
|
||||
#include "c2000ware_libraries.h"
|
||||
#include "export/export_log.h"
|
||||
|
||||
|
||||
//
|
||||
// Main
|
||||
//
|
||||
void main(void)
|
||||
{
|
||||
|
||||
//
|
||||
// Initialize device clock and peripherals
|
||||
//
|
||||
Device_init();
|
||||
|
||||
//
|
||||
// Disable pin locks and enable internal pull-ups.
|
||||
//
|
||||
Device_initGPIO();
|
||||
|
||||
//
|
||||
// Initialize PIE and clear PIE registers. Disables CPU interrupts.
|
||||
//
|
||||
Interrupt_initModule();
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
//
|
||||
Interrupt_initVectorTable();
|
||||
|
||||
//
|
||||
// PinMux and Peripheral Initialization
|
||||
//
|
||||
Board_init();
|
||||
|
||||
//
|
||||
// C2000Ware Library initialization
|
||||
//
|
||||
C2000Ware_libraries_init();
|
||||
|
||||
//
|
||||
// Logging Inits
|
||||
//
|
||||
EXPORT_init();
|
||||
EXPORTLOG_init();
|
||||
|
||||
//
|
||||
// Start the high priority ISR
|
||||
//
|
||||
CPUTimer_startTimer(myTimer1s_BASE);
|
||||
|
||||
//
|
||||
// Enable Global Interrupt (INTM) and real time interrupt (DBGM)
|
||||
//
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
while(1)
|
||||
{
|
||||
|
||||
//
|
||||
// Export data out of the device
|
||||
//
|
||||
EXPORT_transferAllBufferData();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
interrupt void INT_myTimer1s_ISR(void){
|
||||
|
||||
//
|
||||
// Log in internal memory
|
||||
//
|
||||
EXPORTLOG_log("Logging entry 1");
|
||||
EXPORTLOG_log("Next log entry 2");
|
||||
EXPORTLOG_log("last entry 3");
|
||||
EXPORTBUFF_flushBufferElement();
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
// End of File
|
||||
//
|
||||
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
/**
|
||||
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
||||
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
||||
* @cliArgs --device "F2838x" --package "337bga" --part "F2838x_337bga" --context "CPU1" --product "C2000WARE@5.02.00.00"
|
||||
* @versions {"tool":"1.0.0+dev"}
|
||||
*/
|
||||
/**
|
||||
* Import the modules used in this configuration.
|
||||
*/
|
||||
const cputimer = scripting.addModule("/driverlib/cputimer.js", {}, false);
|
||||
const cputimer2 = cputimer.addInstance();
|
||||
const device_support = scripting.addModule("/driverlib/device_support.js");
|
||||
const sysctl = scripting.addModule("/driverlib/sysctl.js");
|
||||
const CMD = scripting.addModule("/utilities/cmd_tool/cmd_syscfg/source/CMD");
|
||||
const CMD1 = CMD.addInstance();
|
||||
const CMD2 = CMD.addInstance();
|
||||
const gui = scripting.addModule("/utilities/transfer/gui.js");
|
||||
|
||||
/**
|
||||
* Write custom configuration values to the imported modules.
|
||||
*/
|
||||
cputimer2.cputimerBase = "CPUTIMER1_BASE";
|
||||
cputimer2.timerPrescaler = 200;
|
||||
cputimer2.timerPeriod = 1000000;
|
||||
cputimer2.enableInterrupt = true;
|
||||
cputimer2.registerInterrupts = true;
|
||||
cputimer2.$name = "myTimer1s";
|
||||
cputimer2.timerInt.enableInterrupt = true;
|
||||
|
||||
gui.customlogger = true;
|
||||
gui.guiProjectName = "transfer_customlog_export_sci_buffer";
|
||||
gui.exporter.$name = "myEXPORT0";
|
||||
gui.exporter.exportCustomLogTimestamp = true;
|
||||
gui.exporter.exportBuffer = true;
|
||||
gui.exporter.comsLinkModule.wordLenght = scripting.forceWrite("8");
|
||||
gui.exporter.comsLinkModule.stop = scripting.forceWrite("ONE");
|
||||
gui.exporter.comsLinkModule.parity = scripting.forceWrite("SCI_CONFIG_PAR_NONE");
|
||||
gui.exporter.comsLinkModule.registerInterrupts = scripting.forceWrite(false);
|
||||
gui.exporter.comsLinkModule.useFifo = scripting.forceWrite(true);
|
||||
gui.exporter.comsLinkModule.loopback = scripting.forceWrite(false);
|
||||
gui.exporter.comsLinkModule.useCase = scripting.forceWrite("ALL");
|
||||
|
||||
/**
|
||||
* Write custom configuration values to the imported modules.
|
||||
*/
|
||||
CMD1.$name = "generic_ram_lnk";
|
||||
CMD2.$name = "generic_flash_lnk";
|
||||
|
||||
CMD1.sectionMemory_text = ["RAMLS0","RAMLS1","RAMLS2","RAMLS3","RAMLS4"];
|
||||
CMD1.sectionMemory_ramfunc = ["RAMM0"];
|
||||
CMD1.sectionMemory_cinit = ["RAMM0"];
|
||||
CMD1.sectionMemory_stack = ["RAMM1"];
|
||||
CMD1.sectionMemory_init_array = ["RAMM0"];
|
||||
CMD1.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD1.sectionMemory_const = ["RAMLS5"];
|
||||
CMD1.sectionMemory_data = ["RAMLS5"];
|
||||
CMD1.sectionMemory_switch = ["RAMM0"];
|
||||
CMD1.sectionMemory_sysmem = ["RAMLS5"];
|
||||
|
||||
CMD2.sectionAlignEnable_ramfunc = true;
|
||||
CMD2.sectionAlignEnable_text = true;
|
||||
CMD2.sectionAlignEnable_binit = true;
|
||||
CMD2.sectionAlignEnable_cinit = true;
|
||||
CMD2.sectionAlignEnable_switch = true;
|
||||
CMD2.sectionAlignEnable_init_array = true;
|
||||
CMD2.sectionAlignEnable_const = true;
|
||||
CMD2.sectionAlignEnable_ovly = true;
|
||||
CMD2.sectionMemory_codestart = "0x080000";
|
||||
CMD2.sectionMemory_stack = ["RAMM1"];
|
||||
CMD2.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD2.sectionMemory_data = ["RAMLS5"];
|
||||
CMD2.sectionMemory_sysmem = ["RAMLS5"];
|
||||
CMD2.sectionMemory_ramfunc = ["FLASH3"];
|
||||
CMD2.sectionMemory_text = ["FLASH1","FLASH2","FLASH3","FLASH4"];
|
||||
CMD2.sectionMemory_binit = ["FLASH4"];
|
||||
CMD2.sectionMemory_cinit = ["FLASH4"];
|
||||
CMD2.sectionMemory_switch = ["FLASH1"];
|
||||
CMD2.sectionMemory_init_array = ["FLASH1"];
|
||||
CMD2.sectionMemory_const = ["FLASH5"];
|
||||
CMD2.sectionMemory_ovly = ["FLASH6"];
|
||||
CMD2.sectionRunFromDifferentAddr_ramfunc = true;
|
||||
CMD2.sectionRun_ramfunc = ["RAMLS0"];
|
||||
CMD2.sectionBinit_ramfunc = false;
|
||||
|
||||
|
||||
+136
@@ -0,0 +1,136 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: transfer_customlog_export_sci_logArrays.c
|
||||
//
|
||||
// TITLE: Transfer: Custom Logger Solution
|
||||
//
|
||||
//! \addtogroup driver_example_list
|
||||
//! <h1> GUI based solution for data logging (one direction) </h1>
|
||||
//!
|
||||
//! This example demonstrates how to use SysConfig to enable datalogging
|
||||
//! on our C28x devices. To enable this example, make sure to go to
|
||||
//! Build -> Variables and set GUI_SUPPORT to value of 1.
|
||||
//! This will create the GUI in CCS which can be opened under
|
||||
//! View -> GUI Composer -> Applications ->
|
||||
//! transfer_customlog_export_sci_logArrays
|
||||
//!
|
||||
//! In this example, we are using SCI to export data out of the device. We
|
||||
//! export a few arrays to show case this example.
|
||||
//! If you're using a launchpad, you can enable board components to select
|
||||
//! the correct SCI base to visualize the data through the COM port.
|
||||
//!
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
// C2000Ware v5.04.00.00
|
||||
//
|
||||
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "driverlib.h"
|
||||
#include "device.h"
|
||||
#include "board.h"
|
||||
#include "c2000ware_libraries.h"
|
||||
#include "export/export_log.h"
|
||||
|
||||
uint32_t u32Arr [3] = {15689, 99, 98623156};
|
||||
int32_t i32Arr [3] = {-25555, 98952, -45632};
|
||||
float f32Arr [3] = {60233.36, 0.99, -3156.005};
|
||||
//
|
||||
// Main
|
||||
//
|
||||
void main(void)
|
||||
{
|
||||
|
||||
//
|
||||
// Initialize device clock and peripherals
|
||||
//
|
||||
Device_init();
|
||||
|
||||
//
|
||||
// Disable pin locks and enable internal pull-ups.
|
||||
//
|
||||
Device_initGPIO();
|
||||
|
||||
//
|
||||
// Initialize PIE and clear PIE registers. Disables CPU interrupts.
|
||||
//
|
||||
Interrupt_initModule();
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
//
|
||||
Interrupt_initVectorTable();
|
||||
|
||||
//
|
||||
// PinMux and Peripheral Initialization
|
||||
//
|
||||
Board_init();
|
||||
|
||||
//
|
||||
// C2000Ware Library initialization
|
||||
//
|
||||
C2000Ware_libraries_init();
|
||||
|
||||
//
|
||||
// Logging Inits
|
||||
//
|
||||
EXPORT_init();
|
||||
EXPORTLOG_init();
|
||||
|
||||
//
|
||||
// Enable Global Interrupt (INTM) and real time interrupt (DBGM)
|
||||
//
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
while(1)
|
||||
{
|
||||
DEVICE_DELAY_US(1000000);
|
||||
|
||||
EXPORTLOG_log("Logging UInt32 array");
|
||||
EXPORTLOG_logUint32Array(u32Arr, 3);
|
||||
EXPORTLOG_log("Logging Int32 array");
|
||||
EXPORTLOG_logInt32Array(i32Arr, 3);
|
||||
EXPORTLOG_log("Logging float32 array (4 decimal points)");
|
||||
EXPORTLOG_logFloat32Array(f32Arr, 3, 4);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// End of File
|
||||
//
|
||||
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
/**
|
||||
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
||||
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
||||
* @cliArgs --device "F2838x" --package "337bga" --part "F2838x_337bga" --context "CPU1" --product "C2000WARE@5.02.00.00"
|
||||
* @versions {"tool":"1.0.0+dev"}
|
||||
*/
|
||||
/**
|
||||
* Import the modules used in this configuration.
|
||||
*/
|
||||
const device_support = scripting.addModule("/driverlib/device_support.js");
|
||||
const sysctl = scripting.addModule("/driverlib/sysctl.js");
|
||||
const CMD = scripting.addModule("/utilities/cmd_tool/cmd_syscfg/source/CMD");
|
||||
const CMD1 = CMD.addInstance();
|
||||
const CMD2 = CMD.addInstance();
|
||||
const gui = scripting.addModule("/utilities/transfer/gui.js");
|
||||
|
||||
/**
|
||||
* Write custom configuration values to the imported modules.
|
||||
*/
|
||||
gui.customlogger = true;
|
||||
gui.guiProjectName = "transfer_customlog_export_sci_logArrays";
|
||||
gui.exporter.$name = "myEXPORT0";
|
||||
gui.exporter.exportCustomLogTimestamp = true;
|
||||
gui.exporter.comsLinkModule.wordLenght = scripting.forceWrite("8");
|
||||
gui.exporter.comsLinkModule.stop = scripting.forceWrite("ONE");
|
||||
gui.exporter.comsLinkModule.parity = scripting.forceWrite("SCI_CONFIG_PAR_NONE");
|
||||
gui.exporter.comsLinkModule.registerInterrupts = scripting.forceWrite(false);
|
||||
gui.exporter.comsLinkModule.useFifo = scripting.forceWrite(true);
|
||||
gui.exporter.comsLinkModule.loopback = scripting.forceWrite(false);
|
||||
gui.exporter.comsLinkModule.useCase = scripting.forceWrite("ALL");
|
||||
|
||||
/**
|
||||
* Write custom configuration values to the imported modules.
|
||||
*/
|
||||
CMD1.$name = "generic_ram_lnk";
|
||||
CMD2.$name = "generic_flash_lnk";
|
||||
|
||||
CMD1.sectionMemory_text = ["RAMLS0","RAMLS1","RAMLS2","RAMLS3","RAMLS4"];
|
||||
CMD1.sectionMemory_ramfunc = ["RAMM0"];
|
||||
CMD1.sectionMemory_cinit = ["RAMM0"];
|
||||
CMD1.sectionMemory_stack = ["RAMM1"];
|
||||
CMD1.sectionMemory_init_array = ["RAMM0"];
|
||||
CMD1.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD1.sectionMemory_const = ["RAMLS5"];
|
||||
CMD1.sectionMemory_data = ["RAMLS5"];
|
||||
CMD1.sectionMemory_switch = ["RAMM0"];
|
||||
CMD1.sectionMemory_sysmem = ["RAMLS5"];
|
||||
|
||||
CMD2.sectionAlignEnable_ramfunc = true;
|
||||
CMD2.sectionAlignEnable_text = true;
|
||||
CMD2.sectionAlignEnable_binit = true;
|
||||
CMD2.sectionAlignEnable_cinit = true;
|
||||
CMD2.sectionAlignEnable_switch = true;
|
||||
CMD2.sectionAlignEnable_init_array = true;
|
||||
CMD2.sectionAlignEnable_const = true;
|
||||
CMD2.sectionAlignEnable_ovly = true;
|
||||
CMD2.sectionMemory_codestart = "0x080000";
|
||||
CMD2.sectionMemory_stack = ["RAMM1"];
|
||||
CMD2.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD2.sectionMemory_data = ["RAMLS5"];
|
||||
CMD2.sectionMemory_sysmem = ["RAMLS5"];
|
||||
CMD2.sectionMemory_ramfunc = ["FLASH3"];
|
||||
CMD2.sectionMemory_text = ["FLASH1","FLASH2","FLASH3","FLASH4"];
|
||||
CMD2.sectionMemory_binit = ["FLASH4"];
|
||||
CMD2.sectionMemory_cinit = ["FLASH4"];
|
||||
CMD2.sectionMemory_switch = ["FLASH1"];
|
||||
CMD2.sectionMemory_init_array = ["FLASH1"];
|
||||
CMD2.sectionMemory_const = ["FLASH5"];
|
||||
CMD2.sectionMemory_ovly = ["FLASH6"];
|
||||
CMD2.sectionRunFromDifferentAddr_ramfunc = true;
|
||||
CMD2.sectionRun_ramfunc = ["RAMLS0"];
|
||||
CMD2.sectionBinit_ramfunc = false;
|
||||
|
||||
|
||||
@@ -0,0 +1,140 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: transfer_customlog_export_usb.c
|
||||
//
|
||||
// TITLE: Transfer: Custom Logger Solution
|
||||
//
|
||||
//! \addtogroup driver_example_list
|
||||
//! <h1> GUI based solution for data logging (one direction) </h1>
|
||||
//!
|
||||
//! This example demonstrates how to use SysConfig to enable datalogging
|
||||
//! on our C28x devices. To enable this example, make sure to go to
|
||||
//! Build -> Variables and set GUI_SUPPORT to value of 1.
|
||||
//! This will create the GUI in CCS which can be opened under
|
||||
//! View -> GUI Composer -> Applications -> transfer_customlog_export_usb
|
||||
//! This example will work on the controlCARD and requires the application
|
||||
//! to be ran first, then you can open the correct COM port for the USB
|
||||
//! to view the logs.
|
||||
//!
|
||||
//! In this example, we are using USB to export data out of the device. Before
|
||||
//! exporting.
|
||||
//! If you're using a launchpad, you can enable board components to select
|
||||
//! the correct USB base to visualize the data through the COM port.
|
||||
//!
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
// C2000Ware v5.04.00.00
|
||||
//
|
||||
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "driverlib.h"
|
||||
#include "device.h"
|
||||
#include "board.h"
|
||||
#include "c2000ware_libraries.h"
|
||||
#include "export/export_log.h"
|
||||
|
||||
//
|
||||
// Notifies USB has been connected
|
||||
//
|
||||
extern bool g_bUSBConfigured;
|
||||
|
||||
//
|
||||
// Main
|
||||
//
|
||||
void main(void)
|
||||
{
|
||||
|
||||
//
|
||||
// Initialize device clock and peripherals
|
||||
//
|
||||
Device_init();
|
||||
|
||||
//
|
||||
// Disable pin locks and enable internal pull-ups.
|
||||
//
|
||||
Device_initGPIO();
|
||||
|
||||
//
|
||||
// Initialize PIE and clear PIE registers. Disables CPU interrupts.
|
||||
//
|
||||
Interrupt_initModule();
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
//
|
||||
Interrupt_initVectorTable();
|
||||
|
||||
//
|
||||
// PinMux and Peripheral Initialization
|
||||
//
|
||||
Board_init();
|
||||
|
||||
//
|
||||
// C2000Ware Library initialization
|
||||
//
|
||||
C2000Ware_libraries_init();
|
||||
|
||||
//
|
||||
// Logging Inits
|
||||
//
|
||||
EXPORT_init();
|
||||
EXPORTLOG_init();
|
||||
|
||||
//
|
||||
// Enable Global Interrupt (INTM) and real time interrupt (DBGM)
|
||||
//
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
while(!g_bUSBConfigured);
|
||||
DEVICE_DELAY_US(10000000);
|
||||
|
||||
while(1)
|
||||
{
|
||||
DEVICE_DELAY_US(1000000);
|
||||
|
||||
EXPORTLOG_log("Logging entry 1");
|
||||
EXPORTLOG_log("Next log entry 2");
|
||||
EXPORTLOG_log("last entry 3");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// End of File
|
||||
//
|
||||
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
/**
|
||||
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
||||
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
||||
* @cliArgs --device "F2838x" --package "337bga" --part "F2838x_337bga" --context "CPU1" --product "C2000WARE@5.02.00.00"
|
||||
* @versions {"tool":"1.0.0+dev"}
|
||||
*/
|
||||
/**
|
||||
* Import the modules used in this configuration.
|
||||
*/
|
||||
const device_support = scripting.addModule("/driverlib/device_support.js");
|
||||
const sysctl = scripting.addModule("/driverlib/sysctl.js");
|
||||
const CMD = scripting.addModule("/utilities/cmd_tool/cmd_syscfg/source/CMD");
|
||||
const CMD1 = CMD.addInstance();
|
||||
const CMD2 = CMD.addInstance();
|
||||
const gui = scripting.addModule("/utilities/transfer/gui.js");
|
||||
|
||||
|
||||
/**
|
||||
* Write custom configuration values to the imported modules.
|
||||
*/
|
||||
gui.customlogger = true;
|
||||
gui.guiProjectName = "transfer_customlog_export_usb";
|
||||
gui.exporter.$name = "myEXPORT0";
|
||||
gui.exporter.exportCustomLogTimestamp = true;
|
||||
gui.exporter.comsLink = "usb";
|
||||
gui.exporter.comsLinkModule.useCase = scripting.forceWrite("ALL");
|
||||
gui.exporter.comsLinkModule.usbLib.usb_mode = scripting.forceWrite("Device");
|
||||
gui.exporter.comsLinkModule.usbLib.deviceClasses = scripting.forceWrite("CDC");
|
||||
gui.exporter.comsLinkModule.usbLib.usbBufferSize = 512;
|
||||
gui.exporter.comsLinkModule.dmQual.padConfig = scripting.forceWrite("STD");
|
||||
gui.exporter.comsLinkModule.dpQual.padConfig = scripting.forceWrite("STD");
|
||||
|
||||
/**
|
||||
* Write custom configuration values to the imported modules.
|
||||
*/
|
||||
CMD1.$name = "generic_ram_lnk";
|
||||
CMD2.$name = "generic_flash_lnk";
|
||||
|
||||
CMD1.sectionMemory_text = ["RAMLS0","RAMLS1","RAMLS2","RAMLS3","RAMLS4"];
|
||||
CMD1.sectionMemory_ramfunc = ["RAMM0"];
|
||||
CMD1.sectionMemory_cinit = ["RAMM0"];
|
||||
CMD1.sectionMemory_stack = ["RAMM1"];
|
||||
CMD1.sectionMemory_init_array = ["RAMM0"];
|
||||
CMD1.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD1.sectionMemory_const = ["RAMLS5"];
|
||||
CMD1.sectionMemory_data = ["RAMLS5"];
|
||||
CMD1.sectionMemory_switch = ["RAMM0"];
|
||||
CMD1.sectionMemory_sysmem = ["RAMLS5"];
|
||||
|
||||
CMD2.sectionAlignEnable_ramfunc = true;
|
||||
CMD2.sectionAlignEnable_text = true;
|
||||
CMD2.sectionAlignEnable_binit = true;
|
||||
CMD2.sectionAlignEnable_cinit = true;
|
||||
CMD2.sectionAlignEnable_switch = true;
|
||||
CMD2.sectionAlignEnable_init_array = true;
|
||||
CMD2.sectionAlignEnable_const = true;
|
||||
CMD2.sectionAlignEnable_ovly = true;
|
||||
CMD2.sectionMemory_codestart = "0x080000";
|
||||
CMD2.sectionMemory_stack = ["RAMM1"];
|
||||
CMD2.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD2.sectionMemory_data = ["RAMLS5"];
|
||||
CMD2.sectionMemory_sysmem = ["RAMLS5"];
|
||||
CMD2.sectionMemory_ramfunc = ["FLASH3"];
|
||||
CMD2.sectionMemory_text = ["FLASH1","FLASH2","FLASH3","FLASH4"];
|
||||
CMD2.sectionMemory_binit = ["FLASH4"];
|
||||
CMD2.sectionMemory_cinit = ["FLASH4"];
|
||||
CMD2.sectionMemory_switch = ["FLASH1"];
|
||||
CMD2.sectionMemory_init_array = ["FLASH1"];
|
||||
CMD2.sectionMemory_const = ["FLASH5"];
|
||||
CMD2.sectionMemory_ovly = ["FLASH6"];
|
||||
CMD2.sectionRunFromDifferentAddr_ramfunc = true;
|
||||
CMD2.sectionRun_ramfunc = ["RAMLS0"];
|
||||
CMD2.sectionBinit_ramfunc = false;
|
||||
CMD1.sectionMemory_text = ["RAMD0","RAMD1","RAMLS0","RAMLS1","RAMLS2","RAMLS3","RAMLS4","RAMLS5","RAMLS6","RAMLS7"];
|
||||
CMD1.sectionMemory_const = ["RAMLS5","RAMLS6","RAMLS7"];
|
||||
@@ -0,0 +1,148 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: transfer_raw_fsi_tx.c
|
||||
//
|
||||
// TITLE: Transfer: Custom Logger Solution
|
||||
//
|
||||
//! \addtogroup driver_example_list
|
||||
//! <h1> GUI based solution for data logging (one direction) </h1>
|
||||
//!
|
||||
//! This example demonstrates how to use SysConfig to enable datalogging
|
||||
//! on our C28x devices.
|
||||
//!
|
||||
//! In this example, we are using FSI to export data out of the device.
|
||||
//! This will export raw FSI frames in no packaged format. This example can
|
||||
//! be used with transfer_comslogger_rtlog_export_sci example to view the
|
||||
//! FSI frames via SCI.
|
||||
//! If you're using a launchpad, you can enable board components to select
|
||||
//! the correct FSI base to visualize the data through the COM port.
|
||||
//!
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
// C2000Ware v5.04.00.00
|
||||
//
|
||||
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "driverlib.h"
|
||||
#include "device.h"
|
||||
#include "board.h"
|
||||
#include "c2000ware_libraries.h"
|
||||
|
||||
|
||||
volatile uint16_t myFSITX0_transferInProgress = 0;
|
||||
uint16_t data[myFSITX0_nWords] = {
|
||||
48,49,50,51,
|
||||
52,53,54,55,
|
||||
56,57,58,59,
|
||||
60,61,62,63
|
||||
};
|
||||
|
||||
//
|
||||
// Main
|
||||
//
|
||||
void main(void)
|
||||
{
|
||||
|
||||
//
|
||||
// Initialize device clock and peripherals
|
||||
//
|
||||
Device_init();
|
||||
|
||||
//
|
||||
// Disable pin locks and enable internal pull-ups.
|
||||
//
|
||||
Device_initGPIO();
|
||||
|
||||
//
|
||||
// Initialize PIE and clear PIE registers. Disables CPU interrupts.
|
||||
//
|
||||
Interrupt_initModule();
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
//
|
||||
Interrupt_initVectorTable();
|
||||
|
||||
//
|
||||
// PinMux and Peripheral Initialization
|
||||
//
|
||||
Board_init();
|
||||
|
||||
//
|
||||
// C2000Ware Library initialization
|
||||
//
|
||||
C2000Ware_libraries_init();
|
||||
|
||||
|
||||
//
|
||||
// Enable Global Interrupt (INTM) and real time interrupt (DBGM)
|
||||
//
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
while(1)
|
||||
{
|
||||
DEVICE_DELAY_US(1000000);
|
||||
|
||||
|
||||
while(myFSITX0_transferInProgress == 1);
|
||||
FSI_writeTxBuffer(myFSITX0_BASE, (const uint16_t *)data, myFSITX0_nWords, 0);
|
||||
//
|
||||
// Start Transfer
|
||||
//
|
||||
FSI_startTxTransmit(myFSITX0_BASE);
|
||||
myFSITX0_transferInProgress = 1;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
interrupt void INT_myFSITX0_1_ISR() {
|
||||
myFSITX0_transferInProgress = 0;
|
||||
FSI_clearTxEvents(myFSITX0_BASE, FSI_TX_EVTMASK);
|
||||
|
||||
//
|
||||
// Issue PIE ack
|
||||
//
|
||||
Interrupt_clearACKGroup(INT_myFSITX0_1_INTERRUPT_ACK_GROUP);
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// End of File
|
||||
//
|
||||
@@ -0,0 +1,76 @@
|
||||
/**
|
||||
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
||||
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
||||
* @cliArgs --device "F2838x" --package "337bga" --part "F2838x_337bga" --context "CPU1" --product "C2000WARE@5.02.00.00"
|
||||
* @versions {"tool":"1.0.0+dev"}
|
||||
*/
|
||||
/**
|
||||
* Import the modules used in this configuration.
|
||||
*/
|
||||
const device_support = scripting.addModule("/driverlib/device_support.js");
|
||||
const sysctl = scripting.addModule("/driverlib/sysctl.js");
|
||||
const CMD = scripting.addModule("/utilities/cmd_tool/cmd_syscfg/source/CMD");
|
||||
const CMD1 = CMD.addInstance();
|
||||
const CMD2 = CMD.addInstance();
|
||||
const fsitx = scripting.addModule("/driverlib/fsitx.js", {}, false);
|
||||
const fsitx1 = fsitx.addInstance();
|
||||
|
||||
/**
|
||||
* Write custom configuration values to the imported modules.
|
||||
*/
|
||||
|
||||
fsitx1.$name = "myFSITX0";
|
||||
fsitx1.clkPres = 8;
|
||||
fsitx1.frameType = "FSI_FRAME_TYPE_NWORD_DATA";
|
||||
fsitx1.softwareFrameSize = "16";
|
||||
fsitx1.enableInterrupt = true;
|
||||
fsitx1.useInterrupts = ["FSI_INT1"];
|
||||
fsitx1.enabledINT1Interrupts = ["FSI_TX_EVT_FRAME_DONE"];
|
||||
fsitx1.registerInterruptLine1 = true;
|
||||
fsitx1.fsiTxInt1.enableInterrupt = true;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Write custom configuration values to the imported modules.
|
||||
*/
|
||||
CMD1.$name = "generic_ram_lnk";
|
||||
CMD2.$name = "generic_flash_lnk";
|
||||
|
||||
CMD1.sectionMemory_text = ["RAMLS0","RAMLS1","RAMLS2","RAMLS3","RAMLS4"];
|
||||
CMD1.sectionMemory_ramfunc = ["RAMM0"];
|
||||
CMD1.sectionMemory_cinit = ["RAMM0"];
|
||||
CMD1.sectionMemory_stack = ["RAMM1"];
|
||||
CMD1.sectionMemory_init_array = ["RAMM0"];
|
||||
CMD1.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD1.sectionMemory_const = ["RAMLS5"];
|
||||
CMD1.sectionMemory_data = ["RAMLS5"];
|
||||
CMD1.sectionMemory_switch = ["RAMM0"];
|
||||
CMD1.sectionMemory_sysmem = ["RAMLS5"];
|
||||
|
||||
CMD2.sectionAlignEnable_ramfunc = true;
|
||||
CMD2.sectionAlignEnable_text = true;
|
||||
CMD2.sectionAlignEnable_binit = true;
|
||||
CMD2.sectionAlignEnable_cinit = true;
|
||||
CMD2.sectionAlignEnable_switch = true;
|
||||
CMD2.sectionAlignEnable_init_array = true;
|
||||
CMD2.sectionAlignEnable_const = true;
|
||||
CMD2.sectionAlignEnable_ovly = true;
|
||||
CMD2.sectionMemory_codestart = "0x080000";
|
||||
CMD2.sectionMemory_stack = ["RAMM1"];
|
||||
CMD2.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD2.sectionMemory_data = ["RAMLS5"];
|
||||
CMD2.sectionMemory_sysmem = ["RAMLS5"];
|
||||
CMD2.sectionMemory_ramfunc = ["FLASH3"];
|
||||
CMD2.sectionMemory_text = ["FLASH1","FLASH2","FLASH3","FLASH4"];
|
||||
CMD2.sectionMemory_binit = ["FLASH4"];
|
||||
CMD2.sectionMemory_cinit = ["FLASH4"];
|
||||
CMD2.sectionMemory_switch = ["FLASH1"];
|
||||
CMD2.sectionMemory_init_array = ["FLASH1"];
|
||||
CMD2.sectionMemory_const = ["FLASH5"];
|
||||
CMD2.sectionMemory_ovly = ["FLASH6"];
|
||||
CMD2.sectionRunFromDifferentAddr_ramfunc = true;
|
||||
CMD2.sectionRun_ramfunc = ["RAMLS0"];
|
||||
CMD2.sectionBinit_ramfunc = false;
|
||||
|
||||
|
||||
@@ -0,0 +1,153 @@
|
||||
//#############################################################################
|
||||
//
|
||||
// FILE: transfer_rtlog.c
|
||||
//
|
||||
// TITLE: Transfer: Custom Logger Solution
|
||||
//
|
||||
//! \addtogroup driver_example_list
|
||||
//! <h1> GUI based solution for data logging (one direction) </h1>
|
||||
//!
|
||||
//! This example demonstrates how to use SysConfig to enable datalogging
|
||||
//! on our C28x devices.
|
||||
//!
|
||||
//! In this example, we are using FSI to export data out of the device.
|
||||
//! If you're using a launchpad, you can enable board components to select
|
||||
//! the correct FSI base then refer to transfer_comslogger_rtlog_export_sci to
|
||||
//! visualize the data through a COM port. This project works in conjunction
|
||||
//! with transfer_comslogger_rtlog_export_sci.
|
||||
//! This project generates a file named loggger/realtime_log.json that is
|
||||
//! used for the transfer_comslogger_rtlog_export_sci project. This file
|
||||
//! provides the metadata to know how to display the incoming data coming
|
||||
//! from the FSI frame to the GUI. The GUI tab named RT Logger will show
|
||||
//! the data in a table format.
|
||||
//!
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
// C2000Ware v5.04.00.00
|
||||
//
|
||||
// Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
//
|
||||
// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
// its contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// $
|
||||
//#############################################################################
|
||||
|
||||
//
|
||||
// Included Files
|
||||
//
|
||||
#include "driverlib.h"
|
||||
#include "device.h"
|
||||
#include "board.h"
|
||||
#include "c2000ware_libraries.h"
|
||||
#include "logger/realtime_log.h"
|
||||
uint16_t a = 0;
|
||||
float e[8] = {
|
||||
1243.43, -4399.24, -23.392, 0.0213,
|
||||
-2093, 238.4993, -2390.300, 329.401
|
||||
};
|
||||
|
||||
//
|
||||
// Main
|
||||
//
|
||||
void main(void)
|
||||
{
|
||||
|
||||
//
|
||||
// Initialize device clock and peripherals
|
||||
//
|
||||
Device_init();
|
||||
|
||||
//
|
||||
// Disable pin locks and enable internal pull-ups.
|
||||
//
|
||||
Device_initGPIO();
|
||||
|
||||
//
|
||||
// Initialize PIE and clear PIE registers. Disables CPU interrupts.
|
||||
//
|
||||
Interrupt_initModule();
|
||||
|
||||
//
|
||||
// Initialize the PIE vector table with pointers to the shell Interrupt
|
||||
// Service Routines (ISR).
|
||||
//
|
||||
Interrupt_initVectorTable();
|
||||
|
||||
//
|
||||
// PinMux and Peripheral Initialization
|
||||
//
|
||||
Board_init();
|
||||
|
||||
//
|
||||
// C2000Ware Library initialization
|
||||
//
|
||||
C2000Ware_libraries_init();
|
||||
|
||||
//
|
||||
// Logging Inits
|
||||
//
|
||||
RTLOG_init();
|
||||
|
||||
//
|
||||
// Start the high priority ISR
|
||||
//
|
||||
CPUTimer_startTimer(myTimer1s_BASE);
|
||||
|
||||
//
|
||||
// Enable Global Interrupt (INTM) and real time interrupt (DBGM)
|
||||
//
|
||||
EINT;
|
||||
ERTM;
|
||||
|
||||
while(1)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
volatile uint16_t toggle = 0;
|
||||
interrupt void INT_myTimer1s_ISR(void){
|
||||
uint32_t b = 6798004;
|
||||
float c = -189.4934;
|
||||
uint16_t d[2] = {19872, 290};
|
||||
|
||||
if (toggle == 0)
|
||||
{
|
||||
RTLOG_writeLog_0(a, b, c, d);
|
||||
}
|
||||
else {
|
||||
RTLOG_writeLog_1(e);
|
||||
}
|
||||
toggle ^= 1;
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
// End of File
|
||||
//
|
||||
@@ -0,0 +1,89 @@
|
||||
/**
|
||||
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
|
||||
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
|
||||
* @cliArgs --device "F2838x" --package "337bga" --part "F2838x_337bga" --context "CPU1" --product "C2000WARE@5.02.00.00"
|
||||
* @versions {"tool":"1.0.0+dev"}
|
||||
*/
|
||||
/**
|
||||
* Import the modules used in this configuration.
|
||||
*/
|
||||
const device_support = scripting.addModule("/driverlib/device_support.js");
|
||||
const sysctl = scripting.addModule("/driverlib/sysctl.js");
|
||||
const CMD = scripting.addModule("/utilities/cmd_tool/cmd_syscfg/source/CMD");
|
||||
const CMD1 = CMD.addInstance();
|
||||
const CMD2 = CMD.addInstance();
|
||||
const realtimelog = scripting.addModule("/utilities/transfer/realtimelog.js", {}, false);
|
||||
const realtimelog1 = realtimelog.addInstance();
|
||||
const cputimer = scripting.addModule("/driverlib/cputimer.js", {}, false);
|
||||
const cputimer1 = cputimer.addInstance();
|
||||
|
||||
/**
|
||||
* Write custom configuration values to the imported modules.
|
||||
*/
|
||||
cputimer1.cputimerBase = "CPUTIMER1_BASE";
|
||||
cputimer1.timerPrescaler = 200;
|
||||
cputimer1.timerPeriod = 1000000;
|
||||
cputimer1.registerInterrupts = true;
|
||||
cputimer1.enableInterrupt = true;
|
||||
cputimer1.$name = "myTimer1s";
|
||||
cputimer1.timerInt.enableInterrupt = true;
|
||||
CMD1.$name = "generic_ram_lnk";
|
||||
CMD2.$name = "generic_flash_lnk";
|
||||
|
||||
CMD1.sectionMemory_text = ["RAMLS0","RAMLS1","RAMLS2","RAMLS3","RAMLS4"];
|
||||
CMD1.sectionMemory_ramfunc = ["RAMM0"];
|
||||
CMD1.sectionMemory_cinit = ["RAMM0"];
|
||||
CMD1.sectionMemory_stack = ["RAMM1"];
|
||||
CMD1.sectionMemory_init_array = ["RAMM0"];
|
||||
CMD1.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD1.sectionMemory_const = ["RAMLS5"];
|
||||
CMD1.sectionMemory_data = ["RAMLS5"];
|
||||
CMD1.sectionMemory_switch = ["RAMM0"];
|
||||
CMD1.sectionMemory_sysmem = ["RAMLS5"];
|
||||
|
||||
CMD2.sectionAlignEnable_ramfunc = true;
|
||||
CMD2.sectionAlignEnable_text = true;
|
||||
CMD2.sectionAlignEnable_binit = true;
|
||||
CMD2.sectionAlignEnable_cinit = true;
|
||||
CMD2.sectionAlignEnable_switch = true;
|
||||
CMD2.sectionAlignEnable_init_array = true;
|
||||
CMD2.sectionAlignEnable_const = true;
|
||||
CMD2.sectionAlignEnable_ovly = true;
|
||||
CMD2.sectionMemory_codestart = "0x080000";
|
||||
CMD2.sectionMemory_stack = ["RAMM1"];
|
||||
CMD2.sectionMemory_bss = ["RAMLS5"];
|
||||
CMD2.sectionMemory_data = ["RAMLS5"];
|
||||
CMD2.sectionMemory_sysmem = ["RAMLS5"];
|
||||
CMD2.sectionMemory_ramfunc = ["FLASH3"];
|
||||
CMD2.sectionMemory_text = ["FLASH1","FLASH2","FLASH3","FLASH4"];
|
||||
CMD2.sectionMemory_binit = ["FLASH4"];
|
||||
CMD2.sectionMemory_cinit = ["FLASH4"];
|
||||
CMD2.sectionMemory_switch = ["FLASH1"];
|
||||
CMD2.sectionMemory_init_array = ["FLASH1"];
|
||||
CMD2.sectionMemory_const = ["FLASH5"];
|
||||
CMD2.sectionMemory_ovly = ["FLASH6"];
|
||||
CMD2.sectionRunFromDifferentAddr_ramfunc = true;
|
||||
CMD2.sectionRun_ramfunc = ["RAMLS0"];
|
||||
CMD2.sectionBinit_ramfunc = false;
|
||||
|
||||
realtimelog1.$name = "myRTLOG0";
|
||||
realtimelog1.comsLinkModule.startOfTransmissionMode = scripting.forceWrite("FSI_TX_START_FRAME_CTRL");
|
||||
realtimelog1.comsLinkModule.d0Qual.$name = "myGPIOQUAL0";
|
||||
realtimelog1.comsLinkModule.d1Qual.$name = "myGPIOQUAL1";
|
||||
realtimelog1.comsLinkModule.clkQual.$name = "myGPIOQUAL2";
|
||||
realtimelog1.logMsgTypes.create(2);
|
||||
realtimelog1.logMsgTypes[0].$name = "myLogMsgType0";
|
||||
realtimelog1.logMsgTypes[0].logVariables.create(4);
|
||||
realtimelog1.logMsgTypes[0].logVariables[0].$name = "a";
|
||||
realtimelog1.logMsgTypes[0].logVariables[1].$name = "b";
|
||||
realtimelog1.logMsgTypes[0].logVariables[1].varType = "uint32_t";
|
||||
realtimelog1.logMsgTypes[0].logVariables[2].$name = "c";
|
||||
realtimelog1.logMsgTypes[0].logVariables[2].varType = "float";
|
||||
realtimelog1.logMsgTypes[0].logVariables[3].varType = "uint16_t*";
|
||||
realtimelog1.logMsgTypes[0].logVariables[3].length = 2;
|
||||
realtimelog1.logMsgTypes[0].logVariables[3].$name = "d";
|
||||
realtimelog1.logMsgTypes[1].$name = "myLogMsgType1";
|
||||
realtimelog1.logMsgTypes[1].id = 1;
|
||||
realtimelog1.logMsgTypes[1].logVariables[0].$name = "e";
|
||||
realtimelog1.logMsgTypes[1].logVariables[0].varType = "float*";
|
||||
realtimelog1.logMsgTypes[1].logVariables[0].length = 8;
|
||||
Reference in New Issue
Block a user