This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

WARNING 16 (UNCALLED FUNCTION, IGNORED FOR OVERLAY Process

I am calling function in ISR. But at the linking time it giving warning like WARNING 16 (UNCALLED FUNCTION, IGNORED FOR OVERLAY Process. Is there any solution to solve this problem. How can i tell to the compiler that i am calling the function in ISR.

The same warning comes for another case: i am calling the function which is available is another .c file. but i am calling in main only.

Pls help me,
Thanks,
Raj

Parents
  • "it giving warning like..."

    What do you mean, "like"?
    Post the full text of the actual message; use copy-and-paste - do not manually re-type it.

    "How can i tell to the compiler that i am calling the function in ISR."

    IF the function is called in the ISR, the compiler (and, more important, the Linker) will know that.
    Therefore, there must be something wrong with your call; maybe the compiler has optimised-out the call?
    Maybe there's a typo, and you're not actually calling the function that you think you're calling?

    Post the smallest complete example that illustrates this - taking care to read & follow the instructions for posting code:
    http://www.keil.com/forum/tips.asp
    And, again, copy-and-paste; don't re-type.

    "The same warning comes for another case: i am calling the function which is available is another .c file. but i am calling in main only."

    See above.

Reply
  • "it giving warning like..."

    What do you mean, "like"?
    Post the full text of the actual message; use copy-and-paste - do not manually re-type it.

    "How can i tell to the compiler that i am calling the function in ISR."

    IF the function is called in the ISR, the compiler (and, more important, the Linker) will know that.
    Therefore, there must be something wrong with your call; maybe the compiler has optimised-out the call?
    Maybe there's a typo, and you're not actually calling the function that you think you're calling?

    Post the smallest complete example that illustrates this - taking care to read & follow the instructions for posting code:
    http://www.keil.com/forum/tips.asp
    And, again, copy-and-paste; don't re-type.

    "The same warning comes for another case: i am calling the function which is available is another .c file. but i am calling in main only."

    See above.

Children