This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

omapl138 - use ipc 3.36 sys/bios timer - got link error

Dear all,

我的開發平台是 debian.

ipc 環境:

XDC_INSTALL_DIR = ti-dsp/xdctools_3_31_02_38_core
BIOS_INSTALL_DIR = ti-dsp/ti-sys-bios/bios_6_42_01_20
ipc_3_36_01_11

我想要使用 sys/bios timer on dsp (c67).

修改 ipc_3_36/packages/ti/ipc/tests/messageq_single.c

Int main(Int argc, Char* argv[])
{
#include <xdc/std.h>
#include <xdc/runtime/Assert.h>
#include <xdc/runtime/System.h>

#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/knl/Task.h>
#include <ti/sysbios/knl/Clock.h>
#include <xdc/runtime/Error.h>

#include <ti/ipc/MessageQ.h>
#include <ti/sysbios/hal/Timer.h>


Timer_Params timerParams;
Timer_Handle myTimer;
Error_Block eb;
Error_init(&eb);
Timer_Params_init(&timerParams);
timerParams.period = 1000;
timerParams.periodType = Timer_PeriodType_MICROSECS;
timerParams.arg = 1;
myTimer = Timer_create(Timer_ANY, myHandler1, &timerParams, &eb);
if (myTimer == NULL)
{
  // System_abort("Timer create failed");
}

}

make -f ipc-bios.mak all

得到 link error

cle674 messageq_single.c ...
lnke674 bin/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674 ...

 undefined                            first referenced                                                                  
  symbol                                  in file                                                                       
 ---------                            ----------------                                                                  
 ti_sysbios_hal_Timer_Params__init__S package/cfg/bin/ti_platforms_evmOMAPL138_DSP/messageq_single/messageq_single.oe674
 ti_sysbios_hal_Timer_create          package/cfg/bin/ti_platforms_evmOMAPL138_DSP/messageq_single/messageq_single.oe674

error: unresolved symbols remain
error: errors encountered during linking;
   "bin/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674" not built
gmake[1]: *** [bin/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674] Error 1
gmake: *** [packages/ti/ipc/tests/,.executables] Error 2
ipc-bios.mak:144: recipe for target 'all' failed

請問我應該怎麼修改, 我沒有使用 ccs, 希望能透過修改 *.cfg 來解決這個問題, 謝謝。