Hi,
in order to debug the PXA270 bootloader under CE5.0, I have added some
serial outputs using the macros InitFFUART and PrintStr. Depending on the
size of the string, the debug output now works or not. The string is placed
directly after the startup function and it is displayed in a seperate
function just below that string.
In case of a failure, no output comes out of the com port. So I guess the
function is not called at all due to a linking problem.
What surprises me, is that all serial outputs while running from rom have
been removed in 5.0. Perhaps there was a reason for it?
Question: Did anyone else tried to display debug output through the serial
port on the pxa270? Is there any known linking/locating problem with the
pxa270?

Greetings,

alex

RE: PXA270 eboot linking problems by EsmondChang

EsmondChang
Fri Oct 01 01:33:04 CDT 2004

The macro was in the inc file, if you include it, it's should be no problem
to output via com poart. Can you show me the error msg while linking?

"alex" wrote:

> Hi,
> in order to debug the PXA270 bootloader under CE5.0, I have added some
> serial outputs using the macros InitFFUART and PrintStr. Depending on the
> size of the string, the debug output now works or not. The string is placed
> directly after the startup function and it is displayed in a seperate
> function just below that string.
> In case of a failure, no output comes out of the com port. So I guess the
> function is not called at all due to a linking problem.
> What surprises me, is that all serial outputs while running from rom have
> been removed in 5.0. Perhaps there was a reason for it?
> Question: Did anyone else tried to display debug output through the serial
> port on the pxa270? Is there any known linking/locating problem with the
> pxa270?
>
> Greetings,
>
> alex

RE: PXA270 eboot linking problems by alex

alex
Fri Oct 01 02:09:04 CDT 2004

Hi Esmond,

I have no problem including the macro and linking the code. To give you an
example, if I remove e.g. 4 bytes from the string, there is no output because
the function doesn't get called. If I insert a NOP command which takes 4
bytes in front of the function, it is working again.

So I have the problem that my branches don't hit the intended target
address. It misses them by a few bytes. Adding ALIGN statements did not help.
Perhaps there must be a specific compiler option?

What may help is, if any other people have tried the pxa270 bootloader? Can
anyone confirm what we are seeing here after modifying the code?

We have no reference board so we can't look at the bootloader without doing
changes.

Greetings,

alex

"Esmond Chang" wrote:

> The macro was in the inc file, if you include it, it's should be no problem
> to output via com poart. Can you show me the error msg while linking?
>
> "alex" wrote:
>
> > Hi,
> > in order to debug the PXA270 bootloader under CE5.0, I have added some
> > serial outputs using the macros InitFFUART and PrintStr. Depending on the
> > size of the string, the debug output now works or not. The string is placed
> > directly after the startup function and it is displayed in a seperate
> > function just below that string.
> > In case of a failure, no output comes out of the com port. So I guess the
> > function is not called at all due to a linking problem.
> > What surprises me, is that all serial outputs while running from rom have
> > been removed in 5.0. Perhaps there was a reason for it?
> > Question: Did anyone else tried to display debug output through the serial
> > port on the pxa270? Is there any known linking/locating problem with the
> > pxa270?
> >
> > Greetings,
> >
> > alex