Keil Logo Arm Logo

*** WARNING L16: UNCALLED FUNCTION, IGNORED FOR OVERLAY PROCESS

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Phillip Tran
Posted
23-Apr-2008 16:49 GMT
Toolset
C51
New! *** 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

Read-Only
Author
Per Westermark
Posted
23-Apr-2008 17:10 GMT
Toolset
C51
New! RE: *** WARNING L16: UNCALLED FUNCTION, IGNORED FOR OVERLAY PROCESS

The same way as the previous 100 people who have asked this question here?

How many answers will you be able to find? How many thread summaries to you have to scan to find the previous thread about this?

Read-Only
Author
Phillip Tran
Posted
23-Apr-2008 18:20 GMT
Toolset
C51
New! RE: *** WARNING L16: UNCALLED FUNCTION, IGNORED FOR OVERLAY PROCESS

I scanend all the threads have been posted before, and got no answer, even from the Keil's WebSite.

If this problem is so common, why Keil does not post any example to help people. 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.

Read-Only
Author
erik malund
Posted
23-Apr-2008 19:33 GMT
Toolset
C51
New! nope

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

Read-Only
Author
Phillip Tran
Posted
23-Apr-2008 19:41 GMT
Toolset
C51
New! RE: nope

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

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings