This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ERROR L107: ADDRESS SPACE OVERFLOW

I get the following linker error on trying to compile a program as simple as this:
-----------------------------
#include <REG51.H>
void main()
{ while(1) { P2 ^= 0xff; }
} -----------------------------
*** ERROR L107: ADDRESS SPACE OVERFLOW SPACE: CODE SEGMENT: ?C_C51STARTUP LENGTH: 000CH
*** ERROR L107: ADDRESS SPACE OVERFLOW SPACE: CODE SEGMENT: ?PR?MAIN?MAIN LENGTH: 0005H
-----------------------------

I am using 89c2051 as the target and option "Use on chip ROM" (2KB in this case) is checked.
Memory Model: Small
Code ROM: Small
BL51 Linker version: 6.02

Can anybody help?

0