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.

Encountered a problem loading file Could not open file: ...............................

Other Parts Discussed in Thread: TMS320F28335

I began programming TMS320F28335, when i debugg, showing me that can not find the file:

C:\users\....\....\...\Debug\FirsTest.out

the file is FistTest.out, and i dont know what is the next step to follow. 

Sergio Valencia.

  • Hi Sergio,

    Which example are you having issue with? Could you please provide some more information about the issue you are having?

    Thanks,
    Ozino
  • i want flash one led in my control card. Control card is TMDSCNCD28335PGF and i have a small program to turn on a LED. This program is as follows:


    #include "DSP2833x_Device.h"

    #define EXAMPLE1 1

    void Gpio_setup1(void);
    void Delay_1ms(long);
    void InitPieCtrl();
    void InitSysCtrl();
    void InitPieVectTable();

    void main(void)
    {

    InitSysCtrl();

    DINT;

    InitPieCtrl();

    IER = 0x0000;
    IFR = 0x0000;

    InitPieVectTable();


    #if EXAMPLE1

    Gpio_setup1();

    #endif // - EXAMPLE1

    while(1)
    {
    GpioDataRegs.GPASET.bit.GPIO31 = 0xFF;
    GpioDataRegs.GPBTOGGLE.bit.GPIO34 = 0xFF;
    Delay_1ms(1000);

    GpioDataRegs.GPBSET.bit.GPIO34 = 0xFF;
    GpioDataRegs.GPATOGGLE.bit.GPIO31 = 1;
    Delay_1ms(1000);
    }
    }

    void Gpio_setup1(void)

    {

    EALLOW;

    // Enable an GPIO output on GPIO6, set it high
    GpioCtrlRegs.GPAPUD.bit.GPIO31 = 0; // Enable pullup on GPIO31
    GpioDataRegs.GPASET.bit.GPIO31 = 1; // Load output latch
    GpioCtrlRegs.GPAMUX2.bit.GPIO31 = 0; // GPIO31 = GPIO31
    GpioCtrlRegs.GPADIR.bit.GPIO31 = 1; // GPIO31 = output

    // Enable an GPIO output on GPIO6, set it high
    GpioCtrlRegs.GPBPUD.bit.GPIO34 = 0; // Enable pullup on GPIO34
    GpioDataRegs.GPBSET.bit.GPIO34 = 1; // Load output latch
    GpioCtrlRegs.GPBMUX1.bit.GPIO34 = 0; // GPIO34 = GPIO34
    GpioCtrlRegs.GPBDIR.bit.GPIO34 = 1; // GPIO34 = output

    EDIS;
    }

    void Delay_1ms(long end)
    {
    long i;
    for (i = 0; i < end; i++);
    }

    But i dont have error in my program, the error is as follows:

    - #10010 errors encountered during linking; "PrimeraPrueba.out" not built
    - unresolved symbol _GpioCtrlRegs, first referenced in ./main.obj
    - #10234-D unresolved symbols remain
  • Hi Sergio,

    It appears that you may be missing the definition of the GpioCtrlRegs struct. Have you included the gpio.h file in your project that contains the declaration of this struct?

    -Ozino

  • Yes, but the fisrt problem aforementioned is the real problem because the others i find the solution.

    The problem is: #10010 errors encountered during linking; "PrimeraPrueba.out" not built

    I think the problem is how to debug the code, but i dont know if the form how i debug the code is incorrect or the problem is for other thing.

    Thanks

    Sergio Valencia
  • I was able to build your project after adding the necessary files to the project. Make sure to check that you are using the FLASH linker command file and not the RAM .cmd file.

    Usually the first error message is generated as a result of the errors that follow it. If you need a more detailed explanation of the errors, exapand the console window to identify the location of the problem.

    Hope this helps,
    Ozino