We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all, When the linker outputs: *** WARNING 16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?CO?SCHEDULE Does anyone know how to find out exactly what constant's causing it? Thank you, Anh
Just you have a subrountine "SCHEDULE" you don't use it. So remove this sub.
You must remove unused subroutine "SCHEDULE".
Thanks guys, I don't have a subroutine schedule. What I do have is file schedule.c. I could go through schedule.c and remove any unreferenced constant and the warning would go away. Is there away the linker could just tell you what the constant is so that I wouldn't have to search though the source code? By the way, I am using uVision 1.32. Thanks, Anh
The ?CO?SCHEDULE segments refers to all the constant or code segments (not program segments, those begin with ?PR?) in the schedule.c file. This warning is telling you that one of these is not used and is ignored for overlay analysis. This is probably OK unless you store function pointers in a table or something like that. If you do, refer to the function pointer application note at http://www.keil.com/appnotes/docs/apnt_129.asp. You can avoid this warning by either a) using the constant/code variables you declare or by b) using the linker's overlay directive to remove that segment from overlay analysis. Jon
See the following thread, it give some usefull info on this topic that helped me greatly Andy http://www.keil.com/forum/docs/thread3883.asp