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

Hello ,

If I add this function to my C program:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
int key_board()
{
int a = 0,b = 0,c = 0,d = 0,e = 0,f = 0,g = 0,h = 0;
int port = 0,r2 = 0,r3 = 0,r4 = 0,r5 = 0,r6 = 0;
LED_R = 0;
port = KEY_PORT;
a = port & 0x03;
if(a == 0) // SJMP no Key
{
return key = 0;
}
// Waite:
while (b != 0) //
{
entprell();
port = KEY_PORT;
b = port & 0x03;
}
//START_ZYKLUS:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I get the error message:

*** ERROR L107: ADDRESS SPACE OVERFLOW

SPACE: DATA
SEGMENT: _DATA_GROUP_
LENGTH: 001AH
Program Size: data=132.0 xdata=0 code=1133

Microcontroller AT89C51RC2 with Flash 32 KB

My compiler: Keil-C with C51.exe

How should I specify the data range in my program ?

Kind Regards

Juergen B.

0