Re: Debugging through UART0
- From: "Voidcoder" <voidcoder@xxxxxxxxx>
- Date: Mon, 13 Jun 2005 21:32:32 -0700
There is no way to share serial port between serial driver
and debug output stuff. If You are going to use UART0 for
debug output then You have to NOT load serial driver
for the same UART port (ie. UART0).
"NAS@ASIC Tech" <NAS@=.=> wrote in message
news:ubVMzNIcFHA.464@xxxxxxxxxxxxxxxxxxxxxxx
> Yes, this is a release. Since the EBOOT doesn't work, I have to debug
> through UART0 which is the only output port avaliable to me.
>
> Do you mean i need to modify the registry such that the OS doesn't load
> the serial port on startup ?
>
> Thank you very much.
>
> Paul Drake wrote:
>> Hi,
>> First of all is the image you have a debug image?(seems to me that it
>> is
>> release).
>> Secondly the change you did seems to work since you can observe the
>> retailmessage on the serial port.
>> The function CReg2410Uart::Init() might be serial driver
>> initialisation
>> code.If you use a particular port as a debug port then the serial driver
>> shouldnt load.
>>
>>
>> "NAS@ASIC Tech" <NAS@=.=> wrote in message
>> news:%23dxOJ28bFHA.2180@xxxxxxxxxxxxxxxxxxxxxxx
>>
>>>It seems that the OS re-initializes the UART port at
>>>"Reg2410Uart::Init()" function.
>>>
>>>BOOL CReg2410Uart::Init()
>>>{
>>> // Debug Message for testing
>>> RETAILMSG(TRUE, (TEXT("DEBUG: CReg2410Uart::Init\r\n")) );
>>>
>>> if (m_pReg) { // Set Value to default.
>>> Write_ULCON(0);
>>> Write_UCON(0);
>>> Write_UFCON(0);
>>> Write_UMCON(0);
>>> return TRUE;
>>> }
>>> else
>>> return FALSE;
>>>}
>>>
>>>Could any one know where did the OS call this function ?
>>>
>>>NAS@=.= wrote:
>>>
>>>>I am developing a custom platform using SMDK2410x with Platfom builder
>>>>5.0. Since the original debug serial port is set to UART1 and only UART0
>>>>is supported on the board, I changed it to UART0 in the file
>>>>"wince500/platform/<platform>/src/kernel/oal/debug.c". Following is the
>>>>debug message capture from the terminal, after the last debug message,
>>>>no debug message appears. Could anyone know the problem? Actually, I am
>>>>going to debug the display driver, since the LCD doesn't display
>>>>correct, and I don't where was the kernel running.
>>>>
>>>>Thank you very much.
>>>>Best Regards,
>>>>NAS@=.=
>>>>
>>>>
>>>>
>>>>------------------------------------------------------------------------
>>>>
>>>
>>>
>>>--
>>>Best Regards,
>>>NAS@ASIC Tech
>>
>>
>>
>
>
> --
> Best Regards,
> NAS@ASIC Tech
.
- References:
- Re: Debugging through UART0
- From: Paul Drake
- Re: Debugging through UART0
- Prev by Date: Re: Recursive reboot during load
- Next by Date: Catalog issue
- Previous by thread: Re: Debugging through UART0
- Next by thread: why OS don't load LMemDebug.DLL
- Index(es):
Relevant Pages
|