Newlib 1.8.1 vfprintf problem on embedded PowerPC
Mark Powell
medp@primag.co.uk
Thu Jun 24 06:57:00 GMT 1999
On 24-Jun-99 Roger Williams wrote:
> While waiting for my s/w guru to develop application code, I'm writing
> hardware debug utilities for my embedded MPC860 hardware. With the
> help of the CrossGCC FAQ, it was a simple matter to build GCC 2.8.1
> and Newlib 1.8.1 and get a simple "Hello, world" program running.
>
> Most of the libc functions, including sscanf, etc., work fine.
> However, any call to vfprintf goes off to Never-Never Land, so sprintf
> doesn't work.
>
> Any ideas about where to start looking? The printf innards are rather
> hairy... (Unfortunately, I don't have access to an ICD right now, so
> my job is even tougher.)
Do you have a working sbrk() and a heap set up? The first call to vfprintf
mallocs a buffer to work with.
--
Mark Powell, Senior Software Engineer, Primagraphics Limited
New Cambridge House, Litlington, nr.Royston, Herts, SG8 0SS, UK
Tel. +44 1763 852222, Fax. 853324, medp@primag.co.uk, http://www.primag.co.uk
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.
More information about the crossgcc
mailing list