Re: Can i use FFUART as Debug and Application serial port?



The serial driver in CE is probably assuming that the serial port is in a
particular state on entry and the bootloader, since it's using it for debug
output, is not leaving the port in that state. The only way to really know
what's going on would be to capture the debug messages, but, oh yea... If
you use a port for debug output, assume that it's unavailable for the rest
of the power cycle from any piece of code in your system. Otherwise, you'll
be chasing bugs that don't affect your users...

Paul T.

"Vijay" <Vijay@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B2669A6D-8585-4035-9363-FF0723518BC8@xxxxxxxxxxxxxxxx
Paul,

I have a very similar issue. I am using FFUART in bootloader to send out
debug messages. I would like to use the same port as COM port from my
application in the OS. If I configure FFUART as COM1 port in the registry
and
use the same in the bootloader, I am not able to access FFUART in my
application.

After going throught the bootloader code, I do not see any reason why it
should not work. Can you give me some inputs on this?

Thanks.

"Paul G. Tobey [eMVP]" wrote:

You can't have a registry entry for the same port as a normal serial port
*and* as a debug port, as I said. You have to pick one or the other.
Capturing the debug messages that are coming out that FFUART port would
probably have told you what the problem is.

Paul T.

"gouri" <gouri@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E614A21B-3021-419E-A334-0B949E1E56D9@xxxxxxxxxxxxxxxx
Hi
Thanks for the reply here is the registry key, what I am finding is
that
if
the debug port is FFUART then the image will not boot up, it gets so
far
and
hangs.

;
-----------------------------------------------------------------------------
; @CESYSGEN IF CE_MODULES_SERIAL
IF BSP_NOSERIAL !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial]
"Irq"=dword:16 ; 22 IRQ_FFUART
"SysIntr"=dword:1d ; 29 SYSINTR_FFUART
"MemBase"=dword:40100000 ; FFUART Register
"MemLen"=dword:40
"DeviceArrayIndex"=dword:80 ; FFUART object
"Prefix"="COM"
"IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}"
"Dll"="ms2_serial.dll"
"Order"=dword:0

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial\Unimodem]
"Tsp"="Unimodem.dll"
"DeviceType"=dword:0
"FriendlyName"="Serial Cable on COM1:"
"DevConfig"=hex: 10,00, 00,00, 05,00,00,00, 10,01,00,00, 00,4B,00,00,
00,00, 08, 00, 00, 00,00,00,00

ENDIF BSP_NOSERIAL !
; @CESYSGEN ENDIF CE_MODULES_SERIAL
;
-----------------------------------------------------------------------------

Thanks,
Gouri

"Paul G. Tobey [eMVP]" wrote:

Not *and*, no. The debug serial port is the debug serial port and
nothing
else. It can't also be opened from application code as COM1 or
something.
You can use that port as *either* an OS serial port or as the debug
serial
port. Most BSPs allow you to enable/disable the debug serial port,
automatically putting it in the COMn space when it's not used for
debug
output. I do this switch on our device every couple of weeks. No
effect
on
the display.

For your test with the BT serial port, display is getting what?
There's
no
relationship that I can think of between the BT serial port and the
built-in
PXA display controller. Check the PXA data*** to be sure.

Paul T.

"gouri" <gouri@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:314CE6FB-90D9-4D67-B942-C9918982AA5F@xxxxxxxxxxxxxxxx
Hi experts,

I am working on PXA270.It will supports for BTUART,SUART and
FFUART.But
i don't want to use BTUART and SUART.Can i use FFUART alone as debug
and
Application serial port.Why i am asking is if i tried this i am not
getting
display.

If i make FFUART as Application Serial port and BTUART as Debug
port
display is getting.

Whats my doubt is what is relation between display and FFUART.

Anybody can help me.

Thanks in advance
Gouri.








.