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?