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 15: MULTIPLE CALL TO FUNCTION

Hi all,

After compiling, I got following warning:

*** WARNING L15: MULTIPLE CALL TO FUNCTION
NAME: _PUTMULTICHAR_SCI/SCI
CALLER1: ?C_C51STARTUP
CALLER2: INT0_ISR/INTERRUPT

Int0_ISR() is in interrupt.c.

However, I believe that function PutMultiChar_SCI() is not called by Int0_ISR(), although it was. PutMultiChar_SCI() is called at multiply place within main loop.

I read http://www.keil.com/support/docs/805.htm

I was wondering is there any cause will generate this warning ? Thanks in advance.

Daniel

Parents
  • "I can remove L15 warning by make PutMultiChar_SCI() reentrant"
    and end up with a true mess.

    If you have ANYTHING that get called both by main (and subs thereof) and an ISR (and subs thereof) you will likey "install" a time bomb.

    remove ALL function call from the ISR (there should be none anyhow) and then see what the linker tell you.

    Erik

Reply
  • "I can remove L15 warning by make PutMultiChar_SCI() reentrant"
    and end up with a true mess.

    If you have ANYTHING that get called both by main (and subs thereof) and an ISR (and subs thereof) you will likey "install" a time bomb.

    remove ALL function call from the ISR (there should be none anyhow) and then see what the linker tell you.

    Erik

Children
No data