Other Parts Discussed in Thread: SYSBIOS
Tool/software: Code Composer Studio
I try to add a timer to my CCS PROJETCT FOR dsp1 on AM5728. the BIOS version is bios_6_46_05_55
here is the code I add to the main.c
---------------------------------------------------------------------
#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/knl/Task.h>
#include <ti/sysbios/knl/Clock.h>
#include <ti/sysbios/hal/Timer.h>
#include <ti/sysbios/knl/Swi.h>
#include <ti/sysbios/knl/Semaphore.h>
.......
//create timer
Timer_Params_init(&timer1params);
timer1params.period = 1000; //unit:us
timer1params.runMode = Timer_RunMode_CONTINUOUS;
timer1params.startMode = Timer_StartMode_USER;
timer1 = Timer_create(Timer_ANY, Timer_Cycle_Function, &timer1params, &eb);
..............
---------------------------------------------------------------------------------------------------------------------------
when linking , ccs report :
undefined first referenced
symbol in file
--------- ----------------
ti_sysbios_hal_Timer_Params__init__S ./src/main.obj
ti_sysbios_hal_Timer_create ./src/main.obj
Did I miss some headers?