Forums

IAR compiler problem

Started by kinghogar September 28, 2004
Hello,

I am using IAR 3.20A evaluation version and when I run linker I get an
error:

     IAR Universal Linker V4.59A/386
     Copyright 1987-2004 IAR Systems. All rights reserved.
Error[e16]: Segment DATA16_Z (size: 0x14b0 align: 0x1) is too long 
for segment definition. At least 0xcaf more bytes needed. The problem 
occurred while processing 
the segment placement command "-Z(DATA)
DATA16_I,DATA16_Z,DATA16_N,HEAP+_HEAP_SIZE00-0A00", where at the 
moment of placement the available 
memory ranges were "CODE:200-a00"
   Reserved ranges relevant to this placement:
   CODE:200-a00         DATA16_I

Does any experiences similar problem ?

regards...




Beginning Microcontrollers with the MSP430

> Hello,
> 
> I am using IAR 3.20A evaluation version and when I run linker I get an
> error:
> 
>      IAR Universal Linker V4.59A/386
>      Copyright 1987-2004 IAR Systems. All rights reserved.
> Error[e16]: Segment DATA16_Z (size: 0x14b0 align: 0x1) is too 
> long for segment definition. At least 0xcaf more bytes 
> needed. The problem occurred while processing the segment 
> placement command "-Z(DATA) 
> DATA16_I,DATA16_Z,DATA16_N,HEAP+_HEAP_SIZE00-0A00", where 
> at the moment of placement the available memory ranges were 
> "CODE:200-a00"
>    Reserved ranges relevant to this placement:
>    CODE:200-a00         DATA16_I

Sure, you need to trim some of your data.  You have over 5K of it
(0x14b0) and there's only 2K on the device(0xa00-0x200 = 0x800).

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks for MSP430, ARM, and (soon) Atmel AVR processors