在进行DSP软件调试时,常常从其他地方拷贝程序到用户主机上运行,因此依赖项路径通常需要重新设置,CCS工程组建选项提供了这样一个窗口,用户可以指定路径。
1. Include the following files in application project that uses driver library.
$(ProjectDir)\emac_dm6437\ti\ndk\example\network\cfgdemo\evmdm6437\
evmdm6437init.c
%DVSDK_INSTALL_DIR%\biosutils_1_00_00_16\packages\ti\bios\log\ndk\e
xamples\common\logserverstacksetup.c
2. Include the following Libraries in sample project of driver.
%DVSDK_INSTALL_DIR%\boards\evmdm6437_v1\lib\evmdm6437bsl.lib
%NDK_INSTALL_DIR%\packages\ti\ndk\lib\c64plus\hal\hal_ser_stub.lib
%NDK_INSTALL_DIR%\packages\ti\ndk\lib\c64plus\hal\hal_timer_bios.lib
%NDK_INSTALL_DIR%\packages\ti\ndk\lib\c64plus\miniPrintf.lib
%NDK_INSTALL_DIR%\packages\ti\ndk\lib\c64plus\netctrl.lib
%NDK_INSTALL_DIR%\packages\ti\ndk\lib\c64plus\nettool.lib
%NDK_INSTALL_DIR%\packages\ti\ndk\lib\c64plus\os.lib
%NDK_INSTALL_DIR%\packages\ti\ndk\lib\c64plus\stack.lib
%NDK_INSTALL_DIR%\packages\ti\ndk\lib\hal\evmdm6437\hal_eth_dm64l
c.lib
%NDK_INSTALL_DIR%\packages\ti\ndk\lib\hal\evmdm6437\hal_userled_dm
6437.lib
Include paths:
Open Build options of sample project. Go to “Compiler” tab. Select the
“Preprocessor” category. Add the following paths in “include search path(-i
field.
-i"%NDK_INSTALL_DIR%\packages\ti\ndk\inc"
-i"%NDK_INSTALL_DIR%\packages\ti\ndk\example\tools"
-i"%DVSDK_INSTALL_DIR%\boards\evmdm6437_v1\include"
-i"%BIOSUTILS_INSTALL_DIR%\packages\ti\bios\log\ndk"
-i"%BIOSUTILS_INSTALL_DIR%\packages\ti\bios\log\support"
-i”%NDK_INSTALL_DIR%\packages\ti\ndk\inc”
-i”%BIOS_INSTALL_DIR%\packages”
-i”�S_DIR%\boards\evmdm6437\boards\evmdm6437_v1\include”
-i”%BIOSUTILS_INSTALL_DIR%\packages”
"DspBiosBuilder" Settings(导入路径之间用分号隔开)
Open Build options of sample project. Go to “DspBiosBuilder” tab. Select the
“Basic” category. Add the following paths in “import path” field.
%NDK_INSTALL_DIR%/packages/ti/ndk/inc/tci;
%BIOSUTILS_INSTALL_DIR%\packages\ti\bios\utils;
%BIOSUTILS_INSTALL_DIR%\packages\ti\bios\log\support;
%BIOSUTILS_INSTALL_DIR%\packages\ti\bios\log\ndk\examples\common"
"Linker" Settings:(每个路径必须用-i选项标示,路径用双引号括起来,多个路径之间不需要分号)
Open Build options of sample project. Go to “Linker” tab. Select the “Library”
category. Add the following paths in “Search Path(-i)” field.
-i"%BIOS_INSTALL_DIR%\packages\ti\rtdx\lib\c6000"
-i"%BIOSUTILS_INSTALL_DIR%\packages\ti\bios\log\ndk\lib"
-i"%BIOSUTILS_INSTALL_DIR%\packages\ti\bios\log\support\lib"
-i"%BIOSUTILS_INSTALL_DIR%\packages\ti\bios\utils\lib"
Add the following paths in “Incl. Libraries(-l)” field.
-l"logsupport.a64P"
-l"logservercgi.a64P"
-l"utils.a64P"
添加路径时,需要注意对应不同的选项添加路径形式不一样,严格按照上面例子来 |