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.

Flash API



Hi all:

I am trying to add Flash API to my code as it was explained in the Flash API document v 2.10.

I have created a section in the *.cmd file

Added the Flash2812_API_V210.lib to the project

added path in the link section of Project option.

I am getting the following error:

Flash2812.cmd, line 105: warning:

./lib/Flash2812_API_V210.lib(.econst) not found

Flash2812.cmd, line 106: warning:

./lib/Flash2812_API_V210.lib(.text) not found

 

What am I missing?

Thanks.

  • This happened to me ages ago and I was as confused as you at the time.  I am 90% sure (not 100% it was a while ago), that this warning is the linker saying "You have linked these files, but I can't find any uses of them in the obj code" ( I am assuming you have just built the project before you have written the code to test whether the library was OK). If so,  the way to simply fix these warnings is to use the Flash API in your code and the warnings should just disappear.

    Hopefully this helps,

     

    Tim

  • Hi Tim:

    Thanks for your answer. I added some code to test the library and I am still getting the same error. Then I commented out the FlashAPI section in the cmd file and added a call to a FlashAPI lib function Flash_Erased. I am getting an error Undefined Symbol.

    Does this mean I cannot hook up the library properly? I did exactly like the examples.

    Thanks.

  • Thanks, Tim

    You were correct:

    Flash API .text and .econst Not Found

    Q: When adding the Flash API library to my project warnings are generated stating that the .text and .econst sections of the Flash API library are not found. Why is this occurring?

    e.g.:

    warning: C:/myproject/Flash2808_API_V302.lib(.text) not found

    warning: C:/myproject/Flash2808_API_V302.lib(.econst) not found

    A: When adding the Flash API library to a project, if there is no call to the library the above warnings will be generated. The linker generates these warnings due to the fact that the library is not being used so these sections are not found. Once a call to the library is added (e.g. Flash_Program, Flash_Erase) these warnings will go away.

    http://processors.wiki.ti.com/index.php?title=C2000_Flash_Common_Issues/FAQs#Flash_API_.text_and_.econst_Not_Found