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 L16: UNCALLED FUNCTION, IGNORED FOR OVERLAY PROCESS

How to solve this warning? I tried many ways, and still have this warning.

--------
DR232A.ASM module

NAME DR232A

?PR?dr232a?DR232A SEGMENT CODE

extrn code (Post_Cam_Prob)
extrn code (Request_Cam_Type)
extrn code (Reset_CAM)
extrn code (Init_Cam_Prob)
extrn code (INC_TOKEN)
extrn code (INIT_CAM_BAUD_ERR)

PUBLIC INIT_232A,TXEN_ON,TXEN_OFF
PUBLIC CHA_232,DR232A_TO,TRANS_232A

RSEG ?PR?dr232a?DR232A
. .

END_CAM_PROB:
. .

LCALL Request_Cam_Type

RET

--------------------
CAM.C module

void Request_Cam_Type (void)
{ .
. }

--------------------
BankSwitching LX51 Linker file

COMMON{startup.obj}, &
COMMON{l51_bank.obj}, &
COMMON{dr232a.obj}, &
COMMON{cam.obj}, &
. .

to dbug128.omf bankarea(0x8000, 0xffff)
CLASSES (CODE (C:0x1000-C:0xFFFF), CONST (C:0x1000-C:0xFFFF),
ECODE (C:0x1000-C:0xFFFF), HCONST (C:0x1000-C:0xFFFF))

----------------------
Linker error

*** WARNING L16: UNCALLED FUNCTION, IGNORED FOR OVERLAY PROCESS NAME: REQUEST_CAM_TYPE/CAM

Parents
  • Normally, the function call from the Assembly code module to the C code module that has that function delclared will cause this error. Even if the C function is very simple Void Funct(Void) with out passing any parameters or pointer.
    nope, calling C from asm works well if you have a main() in C

    Erik

Reply
  • Normally, the function call from the Assembly code module to the C code module that has that function delclared will cause this error. Even if the C function is very simple Void Funct(Void) with out passing any parameters or pointer.
    nope, calling C from asm works well if you have a main() in C

    Erik

Children
  • Yes, Erik.

    My main is in C. I have main() in C.

    But my interrupt handler is in Assembky named DR232A.ASM. And from this assembly module, if I call the funtion which is declared in the C module. Then the LX51 will give the warning error. If my main() in C calls this function, then there is no warning error.

    Phillip

  • Yes, Erik.

    My main is in C. I have main() in C.

    But my interrupt handler is in Assembky named DR232A.ASM. And from this assembly module, if I call the funtion which is declared in the C module. Then the LX51 will give the warning error. If my main() in C calls this function, then there is no warning error.

    Phillip