今天码代码的时候遇到这个warning,查了之后才发现,自己把定时器0也定在interrupt 0上了- -
特此转载。
nformation in this article applies to:
- C51 All Versions
SYMPTOMS
When linking your program, the linker responds the following warning:
WARNING L5: CODE SPACE MEMORY OVERLAP
CAUSE
This warning is caused by one or more code segments that overlap (reside at the same address). The warning message you receive should indicate the address range where the overlap occurred. The segments are typically absolute (interrupt service routines or buffers located at fixed addresses).
One common cause is two interrupt routines declared with the same interrupt vector. For example:
void ISR1 ( void ) interrupt 0