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.

CCS/TMS320F28379D: Programming

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

// This program I have written to give supply to GPIO14 which is connected to PIN J8 74. There are errors while building it please help me how to overcome these errors.

// Errors..

//1.#10010 null: errors encountered during linking; "Blinkadiode.out" not built

//2.<a href="processors.wiki.ti.com/.../10234"> null: unresolved symbols remain.

//3.gmake: *** [all] Error 2.

//4.gmake[1]: *** [Blinkadiode.out] Error 1

//5.unresolved symbol _delay, first referenced in ./main.obj

#include "F28x_Project.h"
#include "F2837xD_Ipc_drivers.h"
#include "F2837xD_device.h"
#include <stdio.h>
void delay (void);
void Gpio_setup (void);
//void Toggle_G10(void);
void Toggle_G14 (void);
unsigned int i;
void main(void)
{
InitSysCtrl ();
InitGpio ();
DINT;
InitPieCtrl ();
IER = 0x0000;
IFR = 0x0000;
InitPieVectTable ();
//section in here
Gpio_setup ();
while (1)
{
//Toggle_G10 ();
GpioDataRegs.GPADAT.bit.GPIO14 = 1;
delay ();
//Toggle_G10 ();
GpioDataRegs.GPADAT.bit.GPIO14 = 0;
delay ();
}
}
void Gpio_setup (void)
{
//pull up gpapud
//dir output
//gpio mux1
EALLOW;
GpioCtrlRegs.GPAMUX1.bit.GPIO14 = 0;//GPIO
GpioCtrlRegs.GPADIR.bit.GPIO14 = 1; //output
EDIS;
}
void Toggle_G14 (void)
{
EALLOW;
GpioDataRegs.GPATOGGLE.bit.GPIO14 = 1;
GpioDataRegs.GPATOGGLE.all = 0;
EDIS;
}

  • Bighnaraj Panda,

    Surely the definition not accessible for the compiler. Eather the path is incorrect or function definition not present.

    Ashutosh
  • Ashutosh,
    Can you please suggest me how to correct the path and which function definitions to include. Because in the errors description it is not explained.

    Bighnaraj Panda
  • The error message says the function called delay() is missing. I see the prototype for it at the top of your file, but where is the actual implementation? Is it a function you wrote? Is it in the same file as main() or a different one? If it is in a different file, have you added that file to your CCS project?

    Whitney

  • Thank you Whitney,
    Yes I have written the program by my own and I have written it in the same main(). That is why i think no extra linking is required. Now When I am building the project there is no error. But after it is debugged and the target is set in which I connected the TMS320F28379D launchpad board, GPIO14 is not getting powered. I am connecting the PIN 74 of J8 to CRO , no signal is there.

    Bighnaraj Panda
  • I don't see any issue with your code. If you step through the it line by line with the debugger, can you see the signal toggle? Is the program hanging somewhere?

    Whitney
  • Yes there is no issue with the code but when I am debugging it,there is no signal in PIN 74 what could have been the problem.



    Bighnaraj Panda

  • I'm able to toggle it on my own LaunchPad without any issues. If you try toggling a different GPIO, does it work? I'm just wondering if it's an issue with only pin 74 or if you see issues with other pins on J8 or elsewhere. Verify that your oscilloscope probe is working properly as well.

    Whitney

  • #include "F28x_Project.h"
    #include "F2837xD_Ipc_drivers.h"
    #include "F2837xD_device.h"
    #include <stdio.h>
    //void delay (void);
    void Gpio_setup (void);
    //void Toggle_G10(void);
    void Toggle_G14 (void);
    unsigned int i;
    void main(void)
    {
    InitSysCtrl ();
    InitGpio ();
    DINT;
    InitPieCtrl ();
    IER = 0x0000;
    IFR = 0x0000;
    InitPieVectTable ();
    //section in here
    Gpio_setup ();
    while (1)
    {
    //Toggle_G10 ();
    GpioDataRegs.GPADAT.bit.GPIO14 = 1;
    //delay ();
    //Toggle_G10 ();
    GpioDataRegs.GPADAT.bit.GPIO14 = 0;
    //delay ();
    }
    }
    void Gpio_setup (void)
    {
    //pull up gpapud
    //dir output
    //gpio mux1
    EALLOW;
    GpioCtrlRegs.GPAMUX1.bit.GPIO14 = 0;//GPIO
    GpioCtrlRegs.GPADIR.bit.GPIO14 = 1; //output
    EDIS;
    }
    void Toggle_G14 (void)
    {
    EALLOW;
    GpioDataRegs.GPATOGGLE.bit.GPIO14 = 1;
    GpioDataRegs.GPATOGGLE.all = 0;
    EDIS;
    }


    Hello Whitney,

    This is my modified program after you have suggested. Program is running correctly but there is no output signal at the PIN. Following steps I have followed

    1. Build the project.

    These files I have included

    F2837xD_CodeStartBranch.asm
    F2837xD_CpuTimers.c
    F2837xD_DefaultISR.c
    F2837xD_device.h
    F2837xD_Examples.h
    F2837xD_GlobalVariableDefs.c
    F2837xD_Gpio.c
    F2837xD_Ipc.c
    F2837xD_PieCtrl.c
    F2837xD_PieVect.c
    F2837xD_SysCtrl.c
    F2837xD_usDelay.asm
    main.c

    2. Debugged the program

    3. Connected the Target to the core

    4. Then Resumed the program.

    Next I shall get the output? Or I have missed some steps in between or missed including some files. Still I am not getting the output.

    Please suggest me.

    Bighnaraj Panda
  • For step 3, do you mean you selected the core you wanted to connect to and hit Run->Connect Target? After that did you go to Run->Load->Load Program and specified the .out file for your application before you hit Resume?

    If you're having trouble figuring out the debugger, you might want to check out this CCS workshop for tips:
    processors.wiki.ti.com/.../CCS_Fundamentals_Workshop

    Whitney

  • Thank you Whitney,
    I made a new program and copied all these syntax in that file and tried to Build the program. Both the programs are same though I have included "F2837xD_CodeStartBranch.asm," but still showing error "error #10008-D: cannot find file "./F2837xD_CodeStartBranch.obj". Please suggest me how to overcome this error.

    Bighnaraj Panda
  • Make sure F2837xD_CodeStartBranch.asm isn't excluded from the build. Also, if you haven't already, make sure to do a Project->Clean before you do a build. You may even want to delete the build folder to start completely fresh.

    Whitney
  • The project is building up correctly but while debugging it it showing error
    C28xx_CPU1_0: GEL: Unable to open file: C:\Users\Biku\workspace_v8\Blinkadiode\Debug

    can you please suggest me what might be the problem

    Bighnaraj Panda
  • It sounds like you aren't specifying the full path to the project's .out file. After you've connected to the device, go to Run->Load->Load Program and make sure the Program File box contains the full path to the .out file that is inside of the Debug folder. I'm guessing it'd be something like C:\Users\Biku\workspace_v8\Blinkadiode\Debug\Blinkadiode.out

    Whitney