EmbeddedRelated.com
Forums

Fatal error when i use printf()

Started by bharat September 19, 2005
hi,
i am using printf() statement in my code.
for this i have included stdio.h and CLIB library.
i am getting following error.
 *Fatal Error[e89]: Too much object code produced (more than 0x1000 bytes) 
for this package* 
 what should be the problem ?
how can i correct this?
i am using IAR workbench 3.25.
 regards,
bharat





Beginning Microcontrollers with the MSP430

Hi, 

> i am using printf() statement in my code.
> for this i have included stdio.h and CLIB library.
> i am getting following error.
>  *Fatal Error[e89]: Too much object code produced (more than 
> 0x1000 bytes) for this package*  what should be the problem ?
> how can i correct this?

By paying IAR some money and "upgrading" to one that can link more
than
4KB of code.

--
Paul Curtis, Rowley Associates Ltd  http://www.rowley.co.uk
CrossWorks for MSP430, ARM, AVR and now MAXQ processors

> i am using printf() statement in my code.
> for this i have included stdio.h and CLIB library.
> i am getting following error.
> *Fatal Error[e89]: Too much object code produced (more than 0x1000 bytes)
> for this package*
> what should be the problem ?
> how can i correct this?
> i am using IAR workbench 3.25.


Hi Bharat!

This is because you're using a limited version of Embedded Workbench, it 
can only produce applications of a certain size.

However, what you can do in this case is to try to use a smaller version 
of printf, for example one that doesn't support floating-point numbers. 
You can select this in Options->General Options->Library Options. 
Default is "large", but the "small" or "medium"
formatters have fewer 
options but on the other hand is smaller.

(Not that I like to sound like a sales person, but if you really need a 
version that can generate more code then you can contact your local IAR 
sales office.)

    -- Anders Lindgren, IAR Systems
-- 
Disclaimer: Opinions expressed in this posting are strictly my own and
not necessarily those of my employer.

It's always about the money, isn't it Paul ?
Alex :)


----- Original Message ----- 
From: "Paul Curtis" <plc@plc@...>
To: <msp430@msp4...>
Sent: Monday, September 19, 2005 5:46 AM
Subject: RE: [msp430] Fatal error when i use printf()


> Hi, 
> 
> > i am using printf() statement in my code.
> > for this i have included stdio.h and CLIB library.
> > i am getting following error.
> >  *Fatal Error[e89]: Too much object code produced (more than 
> > 0x1000 bytes) for this package*  what should be the problem ?
> > how can i correct this?
> 
> By paying IAR some money and "upgrading" to one that can link
more than
> 4KB of code.
> 
> --
> Paul Curtis, Rowley Associates Ltd  http://www.rowley.co.uk
> CrossWorks for MSP430, ARM, AVR and now MAXQ processors
> 
> 
> 
> .
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
> 
> ---
> avast! Antivirus: Inbound message clean.
> Virus Database (VPS): 0536-5, 09/09/2005
> Tested on: 9/19/2005 9:13:15 AM
> avast! - copyright (c) 1988-2005 ALWIL Software.
> http://www.avast.com
> 
> 
> 

thanks to all.
bharat

 On 9/19/05, alex@alex... <alex@alex...> wrote: 
> 
> It's always about the money, isn't it Paul ?
> Alex :)
> 
> 
> ----- Original Message -----
> From: "Paul Curtis" <plc@plc@...>
> To: <msp430@msp4...>
> Sent: Monday, September 19, 2005 5:46 AM
> Subject: RE: [msp430] Fatal error when i use printf()
> 
> 
> > Hi,
> >
> > > i am using printf() statement in my code.
> > > for this i have included stdio.h and CLIB library.
> > > i am getting following error.
> > > *Fatal Error[e89]: Too much object code produced (more than
> > > 0x1000 bytes) for this package* what should be the problem ?
> > > how can i correct this?
> >
> > By paying IAR some money and "upgrading" to one that can
link more than
> > 4KB of code.
> >
> > --
> > Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
> > CrossWorks for MSP430, ARM, AVR and now MAXQ processors
> >
> >
> >
> > .
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > ---
> > avast! Antivirus: Inbound message clean.
> > Virus Database (VPS): 0536-5, 09/09/2005
> > Tested on: 9/19/2005 9:13:15 AM
> > avast! - copyright (c) 1988-2005 ALWIL Software.
> > http://www.avast.com
> >
> >
> >
> 
> 
> 
> .
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
>