Reply by Sipke de Leeuw August 25, 20032003-08-25
Hi,

You probably have the free -limited- version of the IAR compiler?

Sipke




>>> "Dennis McGrath"
<dk@dk@....> 08/24 10:23 PM >>>
On 23 Aug 2003 at 6:23, ramesh babu nalagarla wrote:

> Hi I'am working with MSP430f41x series
controller.I'am using the latest version of IAR kick start
'fet_r306' for my development. In my project I'am using total 4
files.Initially I selected "msp430f412C.lst "file and
"msp430f412.ddf" files as my settings.When I compiled ,all files
compiled with no errors.Then I try to link the all files with link command.Then
I got the following error 
> 
> Error[e16]: Segment CODE (size: 0x12ea align: 0x1) is too long for segment
definition. At least 0x30a more bytes needed. The problem occurred while
processing the segment placement command 
> "-Z(CODE)CODE,CONST,CSTR,CDATA0,CCSTR0-FFDF", where at the
moment of placement the available memory ranges were "f000-ffdf". 
> 
> So I changed list file from "MSP430f413C.lst" as this micro is
having 8k program memory.When I try to link my project I got followig error 
> 
> "Error[e89]: Too much object code produced (more than 0x800 bytes) for
this package" 
> 
> I'am confident that my application won't generate more than 5000
bytes.Can anybody give solution for this.Now i got struck with this since two
days. 
> Thanks & Regards, 
> Ramesh 
> 
 Hi Ramesh,
Try the following, click on Project/ Options/ XLINK/ Include then select 
msp430F413A.xcl. Not msp430F413C.xcl
Onestone said that the 413A refers to assembler language 413C refers to C
language 
and not the actual part type. All I know is when I made this change I know
longer got the 
same type of message you were getting, though I did write the program in
assembler.
Good luck

Dennis






. 

 

">http://docs.yahoo.com/info/terms/ 




Beginning Microcontrollers with the MSP430

Reply by Dennis McGrath August 24, 20032003-08-24
On 23 Aug 2003 at 6:23, ramesh babu nalagarla wrote:

> Hi I'am working with MSP430f41x series
controller.I'am using the latest version of IAR kick start
'fet_r306' for my development. In my project I'am using total 4
files.Initially I selected "msp430f412C.lst "file and
"msp430f412.ddf" files as my settings.When I compiled ,all files
compiled with no errors.Then I try to link the all files with link command.Then
I got the following error 
> 
> Error[e16]: Segment CODE (size: 0x12ea align: 0x1) is too long for segment
definition. At least 0x30a more bytes needed. The problem occurred while
processing the segment placement command 
> "-Z(CODE)CODE,CONST,CSTR,CDATA0,CCSTR0-FFDF", where at the
moment of placement the available memory ranges were "f000-ffdf". 
> 
> So I changed list file from "MSP430f413C.lst" as this micro is
having 8k program memory.When I try to link my project I got followig error 
> 
> "Error[e89]: Too much object code produced (more than 0x800 bytes) for
this package" 
> 
> I'am confident that my application won't generate more than 5000
bytes.Can anybody give solution for this.Now i got struck with this since two
days. 
> Thanks & Regards, 
> Ramesh 
> 
 Hi Ramesh,
Try the following, click on Project/ Options/ XLINK/ Include then select 
msp430F413A.xcl. Not msp430F413C.xcl
Onestone said that the 413A refers to assembler language 413C refers to C
language 
and not the actual part type. All I know is when I made this change I know
longer got the 
same type of message you were getting, though I did write the program in
assembler.
Good luck

Dennis





Reply by onestone August 23, 20032003-08-23
Kickstart is only a 'sample' C compiler. Limited to 4K. Your
options are:-

Design a more efficient program in C.
Write in assembler.
Buy a full C compiler from ICC, Rowley or Quadravox, perhaps Hi-tech and 
others do them, but these are the main 3 alternatives I see supported here.
Waste $2000 and buy the full IAR version.
Download MSPGCC, a free compiler, that has a good enough reputation, but 
  no guaranteed support.

Al

ramesh babu nalagarla wrote:
> Hi I'am working with MSP430f41x series controller.I'am using the
latest version of IAR kick start 'fet_r306' for my development. In my
project I'am using total 4 files.Initially I selected "msp430f412C.lst
"file and "msp430f412.ddf" files as my settings.When I compiled
,all files compiled with no errors.Then I try to link the all files with link
command.Then I got the following error 
> 
> Error[e16]: Segment CODE (size: 0x12ea align: 0x1) is too long for segment
definition. At least 0x30a more bytes needed. The problem occurred while
processing the segment placement command 
> "-Z(CODE)CODE,CONST,CSTR,CDATA0,CCSTR0-FFDF", where at the
moment of placement the available memory ranges were "f000-ffdf". 
> 
> So I changed list file from "MSP430f413C.lst" as this micro is
having 8k program memory.When I try to link my project I got followig error 
> 
> "Error[e89]: Too much object code produced (more than 0x800 bytes) for
this package" 
> 
> I'am confident that my application won't generate more than 5000
bytes.Can anybody give solution for this.Now i got struck with this since two
days. 
> Thanks & Regards, 
> Ramesh 
> 
> 
> 
> 
> 
> ---------------------------------
>  
> 
> 
> 


Reply by Paul Curtis August 23, 20032003-08-23
Ramesh,

> Hi I'am working with MSP430f41x series
controller.I'am using 
> the latest version of IAR kick start 'fet_r306' for my 
> development. In my project I'am using total 4 files.Initially 
> I selected "msp430f412C.lst "file and "msp430f412.ddf"
files 
> as my settings.When I compiled ,all files compiled with no 
> errors.Then I try to link the all files with link 
> command.Then I got the following error 
> 
> Error[e16]: Segment CODE (size: 0x12ea align: 0x1) is too 
> long for segment definition. At least 0x30a more bytes 
> needed. The problem occurred while processing the segment 
> placement command 
> "-Z(CODE)CODE,CONST,CSTR,CDATA0,CCSTR0-FFDF", where at 
> the moment of placement the available memory ranges were
"f000-ffdf". 
> 
> So I changed list file from "MSP430f413C.lst" as this micro 
> is having 8k program memory.When I try to link my project I 
> got followig error 
> 
> "Error[e89]: Too much object code produced (more than 0x800 
> bytes) for this package" 
> 
> I'am confident that my application won't generate more than 
> 5000 bytes.Can anybody give solution for this.Now i got 
> struck with this since two days. 
> Thanks & Regards, 
> Ramesh 

The IAR demo package is limited to 4K bytes for C, IIRC (up from 2K).
The size of your executable is 0x12ea which is more than 4K, hence you
need to go buy the real deal and pay big bucks to IAR, or find an
alternative.

-- Paul.

Reply by ramesh babu nalagarla August 23, 20032003-08-23
Hi I'am working with MSP430f41x series controller.I'am using the
latest version of IAR kick start 'fet_r306' for my development. In my
project I'am using total 4 files.Initially I selected "msp430f412C.lst
"file and "msp430f412.ddf" files as my settings.When I compiled
,all files compiled with no errors.Then I try to link the all files with link
command.Then I got the following error 

Error[e16]: Segment CODE (size: 0x12ea align: 0x1) is too long for segment
definition. At least 0x30a more bytes needed. The problem occurred while
processing the segment placement command 
"-Z(CODE)CODE,CONST,CSTR,CDATA0,CCSTR0-FFDF", where at the moment of
placement the available memory ranges were "f000-ffdf". 

So I changed list file from "MSP430f413C.lst" as this micro is having
8k program memory.When I try to link my project I got followig error 

"Error[e89]: Too much object code produced (more than 0x800 bytes) for this
package" 

I'am confident that my application won't generate more than 5000
bytes.Can anybody give solution for this.Now i got struck with this since two
days. 
Thanks & Regards, 
Ramesh 





---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software