EmbeddedRelated.com
Forums

can't get printf() to print on UART0 with GNU

Started by tiogate February 24, 2005
On 26 Feb 2005 at 23:58, Robert Adsett wrote:

>
> At 07:37 PM 2/25/05 +0200, Anton Erasmus wrote:
> >Murphy strikes again :-( - I tried the same thing on my home machine
> >as I did at work, and of course now I do not get the same thing. I
> >have an older version of cygwin installed at work, but otherwise
> >everything is the same. I have only compiled the examples at home -
> >direct link as well as linking with the library. I haven't tried
> >executing the examples. Example test10 executes correctly when
> >linking directly with the library object files, but when linked
> >agains the library (No errors reported), the example does not execute
> >correctly. (No serial output). I will try the hex files I compiled at
> >home on monday to see if both version work. > I appreciate the effort Anton.

I have tested the two versions of the test10 example on my board. The
version directly linked with the object files runs correctly while the version
linked with the generated library does not. Using the -t option on the linker, it
does not appear to be a problem with not linking in all the code. I currently do
not have a JTAG debugger, so it is a bit difficult to see why the version linked
with the library does not work.
I can e-mail the hex files plus anything else you thing might help if you are interested.

Regards
Anton Erasmus

--
A J Erasmus



Re: can't get printf() to print on UART0 with GNU

An Engineer's Guide to the LPC2100 Series

At 10:50 PM 2/28/05 +0200, Anton Erasmus wrote:
>On 26 Feb 2005 at 23:58, Robert Adsett wrote:
> > At 07:37 PM 2/25/05 +0200, Anton Erasmus wrote:
> > >Murphy strikes again :-( - I tried the same thing on my home machine
> > >as I did at work, and of course now I do not get the same thing. I
> > >have an older version of cygwin installed at work, but otherwise
> > >everything is the same. I have only compiled the examples at home -
> > >direct link as well as linking with the library. I haven't tried
> > >executing the examples. Example test10 executes correctly when
> > >linking directly with the library object files, but when linked
> > >agains the library (No errors reported), the example does not execute
> > >correctly. (No serial output). I will try the hex files I compiled at
> > >home on monday to see if both version work.
> > I appreciate the effort Anton.
>
>I have tested the two versions of the test10 example on my board. The
>version directly linked with the object files runs correctly while the version
>linked with the generated library does not. Using the -t option on the
>linker, it
>does not appear to be a problem with not linking in all the code. I
>currently do
>not have a JTAG debugger, so it is a bit difficult to see why the version
>linked
>with the library does not work.
>I can e-mail the hex files plus anything else you thing might help if you
>are interested.

I'd appreciate it if you could send the hex files and corresponding map
files (-M or --print-map).

Use the information-request link on
http://www.aeolusdevelopment.com/Articles/Contacts.html to get it to me or
fill in the form on the same page and I'll send you back an address (the
first uses some javascript to reduce the likelihood of harvesting)

Thanks Anton,

Robert " 'Freedom' has no meaning of itself. There are always restrictions,
be they legal, genetic, or physical. If you don't believe me, try to
chew a radio signal. "

Kelvin Throop, III