Well, things like this.
I have created a lib C in project A using KeilC. and now the lib C is used in another project B. problem is that some global variables defined in lib C have the same address with some global variables in project B. but they don't have the same varible name. What's the matter, does anybody encountered it before?
The problem is resoved after I changed the global variable's type in project B. like change unsigned char ucVar; to unsgined int ucVar.