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
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?
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.
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
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