Topic : error 107 : address space overflow

Forum : ST7/STM8

Original Post
Post Information Post
September 22, 2012 - 2:42pm
Guest

Hi,

I'm getting the error shown below and I can't understand the cause.
It occurs when I add the following line.

u32_t hwAdcResults[6];

The data map is shown below and says it has a gap of 0x580

When I comment this line out it compiles ok and then put it back in and it fails.

I'm looking for what the solution is.

Thanks in advance.

Copyright (c) Raisonance S.A.S. 1987-2012. All rights reserved.
***ERROR 107 : ADDRESS SPACE OVERFLOW
-SEGMENT: ?ZD0?HW_DAC(HW_DAC)
IGNORED SEGMENT
?ZD0?HW_DAC
LINK/LOCATE RUN COMPLETE, 1 ERROR FOUND.
Error Code: 1

***ERROR 107: ADDRESS SPACE OVERFLOW
-SEGMENT: ?ZD0?HW_DAC(HW_DAC)

LINK MAP OF MODULE: Z:\06-SOFTWARE\BBQ-BASE-SRCDEV\OUT\BBQ.AOF (HARDWARE)

TYPE BASE LENGTH RELOCATION SEGMENT NAME
---- ---- ------ ---------- ------------

* * * * * * * * D A T A M E M O R Y * * * * * * * *
DATA 000000H 000046H PAGE0 ?D0?HEARTBEAT
DATA 000046H 000034H PAGE0 ?D0?HW_LCD
DATA 00007AH 000007H PAGE0 ?D0?HWSERIAL
DATA 000081H 000004H PAGE0 CSTDLIB_REGISTERS
DATA 000085H 000001H PAGE0 ?D0?HARDWARE
DATA 000086H 00002FH PAGE0 ?ZD0?HWSERIAL
DATA 0000B5H 00001EH PAGE0 ?ZD0?HW_ADC
DATA 0000D3H 000014H PAGE0 ?ZD0?HW_SWITCHES
DATA 0000E7H 00000DH PAGE0 ?ZD0?HW_LCD
DATA 0000F4H 000008H PAGE0 ?ZD0?HEARTBEAT
DATA 0000FCH 000004H PAGE0 ?ZD0?SYSTEMTICKS
000100H 000580H *** GAP ***
DATA 000680H 000180H UNIT ?C_STACK?SEG

Replies
Post Information Post
+1
0
-1
September 24, 2012 - 10:16am
Raisonance Support Team

Hello,

The ?ZD0?HW_DAC segment contains data initialized to 0 stored in page0, but
your page0 (data with address below 0x100) is already full.

Change the default data memory class to data in Compiler Options\Program model\Default global memory class
or set some variable in data using the data memory space qualifier as explained in the RCSTM8 compiler manual at 4.6.1

Stéphane