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.

Error in LED-blinking projects

Other Parts Discussed in Thread: TMS320F28335, CONTROLSUITE

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

  • Mehul,

    Could you tell me where you found this project in controlSUITE and which version of controlSUITE you have?

    The only blinking LED project I know of for the F28335 is in:

    C:\ti\controlSUITE\development_kits\TemplateProjects\FlashingLeds-F28335_v1.0

    I just imported and compiled the project successfully in CCSv5.

    Trey

  • Hello Trey,

    Thank you for answer.

    I did not found this project from controlSUITE. I made it myself to check that by setting & clearing of GPIO pins instead of toggling, LEDs are blinking or not. 

    would it be possible to blink LEDs with the code that I mentioned above?

    The C:\ti\controlSUITE\development_kits\TemplateProjects\FlashingLeds-F28335 project is not working. it shows some error in device selection.

    could you send me web-link to download correct version of controlSUIT. 

    Mehul

  • The project in controlSUITE should work.  Could you further describe the error you have with it?  Maybe post up a screen shot?

    The latest version of controlSUITE should be the version you're using.  ControlSUITE can be downloaded from ti.com/controlSUITE.

    I think the problem with your original code is that the delay function is inside of the main function.  If you separate them out the code should start compiling.

    Trey

  • Hi Trey,

    I hope this sounds silly. But i got stopped over here.

    I hve installed Control suite & trying to run few examples for delfino F28335 control stick with c2000 explorer kit.

    Problem :

    In control Suite, i could see few examples , where control suite GUI show step 1 , step 2 ... to run the examples.

    but when i expand the "view all 45 examples", i couldn't see those step1,step2...to run it.

    please let know , how to call those examples..

    Note: i am trying to run led blinking for F28335. please let me know how to run led blinking from control suite for delfino f28335.

    thanks.
  • Hello Nethaji,

    This thread has been closed since 2013. Please create a new thread for better chances of support.

    Best Regards,
    Adam Dunhoft