Re: Serial driver
- From: "Chitra" <chitrar25@xxxxxxxxxxx>
- Date: 26 Dec 2006 21:57:59 -0800
Hi Steve,
Thanks for your reply. I got BSP for I.MX21 from Freescale
website and I am using this code as reference for UART. I am setting my
baud rate to 38400, 8 bits as my word size & UART1 for debugging. Here
is my code for printing the string.
void OEMWriteDebugString(unsigned short* str)
{
while((c = *str & 0XFF) != '\0')
{
while (!(port->USR2 & UART_USR2_TXFE_MASK));
port->UTXD = (*str & 0XFF);
if ((c = (*str >> 8) & 0xFF) != '\0') {
port->UTXD =((*str>>8) & 0xFF);
}
str++;
}
My first debug string is as follows:
OEMWriteDebugString((unsigned short *)"Bootloader main INIT\r\n");
OEMWriteDebugString((unsigned short *)"Bootloader main INIT_2\r\n");
After writing bootloader to flash and once I restart the board on
hyperterminal it
just displays the first string
Bootloader main INIT
During
& the rest of the messages are not being displayed. But when I do step
by step debugging using MultiIce it displays the 2nd string also only
if I give some time between the above two statements. I am not able
locate the problem.
Only OEMWriteDebugString() works where as EdbgOutputDebugString()
doesnot display any message. Please reply
Steve Maillet (eMVP) wrote:
I am developing BSP for MC9328MXL Litekit.Hard to say based on what you've posted so far. There are a lot of little
I have a problem in my serial driver. The debug messages are not being
displayed properly. I have followed i.mx21 code but still It is not
working properly. Whenever I reset, I just get only first debug
message, the rest are not displayed, but when I do single stepping
using MultiIce, It works but not perfectly. As anybody faced such a
problem.
subtleties about the i.MXL serial UARTs and some differences from the
i.MX21. If you posted more details it might help, you also might want to
consider using EmbeddedFusion to help with your design. We have a small CPU
module that includes the i.MXL, FLASH, RAM and an OS image ready to run.
Contact me directly for more information.
--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com
.
- Follow-Ups:
- Re: Serial driver
- From: voidcoder
- Re: Serial driver
- References:
- Serial driver
- From: Chitra
- Re: Serial driver
- From: Steve Maillet \(eMVP\)
- Serial driver
- Prev by Date: Can anybody able to do the CETK tests after installing the IMX31 BSP
- Next by Date: Re: about samsung smdk2440 sd driver questions
- Previous by thread: Re: Serial driver
- Next by thread: Re: Serial driver
- Index(es):
Relevant Pages
|
|