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.

can't find input file 'Flash2802x_API_V200.lib



When I run the function,the error occurs, but the file is in my 'Libraries'.

 

>> C:\tidcs\c28\Flash28_API\Flash2802x_API_V200\example\Example_Flash28027_API.cmd, line 102:   error:
               can't find input file 'Flash2802x_API_V200.lib'

 

>> C:\tidcs\c28\Flash28_API\Flash2802x_API_V200\example\Example_Flash28027_API.cmd, line 103:   error:
               can't find input file 'Flash2802x_API_V200.lib'

 

Thanks in advance.

  • When you say it is in your "Libraries", what do you mean by that?

    Have you described the path to the 'Flash2802x_API_V200.lib' to the linker?

  • Thank you, Build Complete, 0 Errors, 2 Warnings, 1 Remarks.  I think there is useless to add the .lib file,I should described the path.

  • Hi,

     

    I have the same problem with an 2809, but I didn't solve it describing the path on the linker. Or maybe I'm not doing it correctly. 

     

    I wrote this on .cmd:

       Flash28_API:

       {

            -lFlash2809_API_V100.lib(.econst)  //line 214

            -lFlash2809_API_V100.lib(.text) //line 215

    } LOAD = FLASHD,

    RUN = RAML0,

    LOAD_START(_Flash28_API_LoadStart),

    LOAD_END(_Flash28_API_LoadEnd),

    RUN_START(_Flash28_API_RunStart),

    PAGE = 0

    On the linker:
    -c -m".\Debug\X_Control.map" -o".\Debug\X_Control.out" -stack400h -w -x -l".\lib\Flash2809_API_V100.lib"  
    On linker --> Category --> Libraries --> Incl. Libraries (-l):
    .\lib\Flash2809_API_V100.lib
    When I build it appears:
    >> C:\Torre\CITCEA\Prop\Placa\Versions SOFT\XPCI v2\11-10-24 X_CONTROL v3.15 api\cmd\CITCEA_2809.cmd, line 214:   error: 
                   can't find input file 'Flash2809_API_V100.lib'
    >> C:\Torre\CITCEA\Prop\Placa\Versions SOFT\XPCI v2\11-10-24 X_CONTROL v3.15 api\cmd\CITCEA_2809.cmd, line 215:   error: 
                   can't find input file 'Flash2809_API_V100.lib'
    What I am doing wrong? Could you help me? 
    Thanks in advance

  • Is the Flash2809_API_V100.lib file actually in a directory called .\lib which is underneath the current working directory?

    You should describe the full path to the .lib file or at least ensure (via Windows Explorer) that .\lib\Flash2809_API_V100.lib actually exists relative to your project working directory.

  • Thanks Brandon.

    Yesterday I solve it. I tried to descibre the full path with any results. I cut the file which was on:

            C:\Torre\CITCEA\Prop\Placa\Versions SOFT\XPCI v2\11-10-24 X_CONTROL v3.15 api\lib\Flash2809_API_V100.lib

    and pasted on: 

    C:\Torre\CITCEA\Prop\Placa\Versions SOFT\XPCI v2\11-10-24 X_CONTROL v3.15 api\Flash2809_API_V100.lib

    In this place, I didn't get any error on building, even without including the text -l".\lib\Flash2809_API_V100.lib" on the linker. Does it have sense?

     

    I have another question, relative to API. How can I translate my project file .out to a binary form in order to be able to put on the buffer used on the API program function "Flash_Program(Uint16 *FlashAddr, Uint16 *BufAddr, Uint32 Length, FLASH_ST *FProgStatus)" ?

    Thanks again for your help!