Hi..
I am trying to run LED-blinking project with TMS320F28335 in code composer studio v5.
But it shows this error :
undefined first referenced
symbol in file
--------- ----------------
_delay_loop ./main.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "28335-blink-LED.out" not built
>> Compilation failure
gmake: *** [28335-blink-LED.out] Error 1
gmake: Target `all' not remade because of errors.
I try to run the project with the Code :
#include "DSP28x_Project.h"
void main(void) {
void delay_loop(void);
{
volatile long i;
for (i = 0; i < 5000000; i++) {}
}
{
EALLOW;
GpioCtrlRegs.GPAPUD.bit.GPIO31 = 0;
GpioCtrlRegs.GPAMUX2.bit.GPIO31 = 0;
GpioCtrlRegs.GPADIR.bit.GPIO31 = 1;
GpioCtrlRegs.GPBPUD.bit.GPIO34 = 0;
GpioCtrlRegs.GPBMUX1.bit.GPIO34 = 0;
GpioCtrlRegs.GPBDIR.bit.GPIO34 = 1;
EDIS;
}
for(;;)
{
GpioDataRegs.GPASET.bit.GPIO31 = 1;
GpioDataRegs.GPBCLEAR.bit.GPIO34 = 0;
delay_loop();
GpioDataRegs.GPACLEAR.bit.GPIO31 = 0;
GpioDataRegs.GPBSET.bit.GPIO34 = 1;
delay_loop();
}
}
Please tell me is there any mistake in code and how can I solve this unresolved symbols remain error.
Thanks