I have compiled many of my frequently used function calls and drivers in to a lib file.
All works well if I include the lib file in the project and the header file in the main c file. I am getting a lot of warining messages for subroutines and function calls I am not using. How can I make a lib file which behaves exactly like keil lib file (that is no need to include it in the project and no uncalled segment warnings)?
Thanks
hock
The keil link the subroutine within the lib by 'module',
not only the called subroutines (all of code will be included which they built in a module).
You can divide functions into several individual C files then build all into a LIB.
(i.e. a C file as a module in LIB)
BTW, the 'Uncalled Segment Warning' is not only a warning message,
the uncalled parts will eat your code and ram space.
To add "NOOVERLAY" in Link Control that will remove the warnings.