cancel
Showing results for 
Search instead for 
Did you mean: 

linking error using HIware compiler

raunaque
Associate II
Posted on January 03, 2005 at 13:20

linking error using HIware compiler

2 REPLIES 2
raunaque
Associate II
Posted on December 30, 2004 at 11:57

Hi all

i am pasting the output i am getting while i am compiling the code . i am getting the error as follows

anybody to help me out

bye

WARNING L2300: Segment STACK_SEG not found in any objectfile

Reading initialization information ...

Allocating objects ...

ERROR L2009: Out of allocation space in segment BUFFER1_EP2_512 at address 1A50

ciccio2
Associate II
Posted on January 03, 2005 at 13:20

Have you insert STACKTOP?

Example for ST7LITE 9, file project.prm:

/*

* FILE project.prm

* ST7FLITE09

*/

LINK project.abs

NAMES

main.o

isr.o

funcs.o

END

SECTIONS

MY_ZRAM = NO_INIT 0x0080 TO 0x00FE;

/*

Le prime due locazioni di EEPROM contengono RCCR0 e RCCR1

*/

MY_EEPROM = NO_INIT 0x1000 TO 0x107F;

/*

L'area di ROM si limita a FFDC (seguono RCCR0, RCCR1 e i vettori)

*/

MY_ROM = READ_ONLY 0xFA00 TO 0xFFDC;

PLACEMENT

DEFAULT_RAM, _ZEROPAGE, _OVERLAP INTO MY_ZRAM;

DEFAULT_ROM, ROM_VAR, STRINGS INTO MY_ROM;

NV_VAR INTO MY_EEPROM;

END

STACKTOP 0x1FF

INIT main

VECTOR ADDRESS 0xFFE0 DummyISR /* not used */

VECTOR ADDRESS 0xFFE2 DummyISR /* SPI */

VECTOR ADDRESS 0xFFE4 RTCISR /* LITE TIMER RTC1 */

VECTOR ADDRESS 0xFFE6 DummyISR /* LITE TIMER IC */

VECTOR ADDRESS 0xFFE8 DummyISR /* AT TIMER OVERFLOW */

VECTOR ADDRESS 0xFFEA DummyISR /* AT TIMER OC/IC */

VECTOR ADDRESS 0xFFEC DummyISR /* AVD */

VECTOR ADDRESS 0xFFEE DummyISR /* not used */

VECTOR ADDRESS 0xFFF0 RTC2ISR /* LITE TIMER RTC2 */

VECTOR ADDRESS 0xFFF2 DummyISR /* EI3 */

VECTOR ADDRESS 0xFFF4 DummyISR /* EI2 */

VECTOR ADDRESS 0xFFF6 DummyISR /* EI1 */

VECTOR ADDRESS 0xFFF8 DummyISR /* EI0 */

VECTOR ADDRESS 0xFFFA DummyISR /* AWU */

VECTOR ADDRESS 0xFFFC DummyISR /* TRAP, not maskable */

VECTOR ADDRESS 0xFFFE main /* RESET, not maskable */