2
votes

I am experiencing a problem with my code. When I compile the code, I get the error Address Space Overflow. How can I help to solve this. I am using the keil compiler and the AT89C51RD2 MCU, and this are the spaces used up so far -

Program Size: data=149.0 xdata=594 const=1136 code=8467.

Could I have possibly used up the entire memory.

The error Statement goes thus:

Error L107 : Address Space Overflow

Space: memory-space (DATA)

Segment: segment-name (Function_name)

Length : 000004H

Description: The specified segment cannot be located at the specified address space. The segment is ignored.

Thanks

1
Have you checked the map file? - Morpfh
You've got 128 bytes of space in DATA. 149 is a kaboom. esacademy.com/en/library/technical-articles-and-documents/… - Hans Passant
@PaulA. To check memory distribution etc. GCC has it (never used keil) but "have to" have it as well. The doc for AT89C51RD2 has the limits. - Morpfh
-- also look at comments by Mr. Passant below. (and above); looks like they are more on an informative path. - Morpfh
@Rune just checking the map file, but how can I make use of it to solve the problem, because I have never used it before. - Paul A.

1 Answers