ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] UARTs in EA LPC3250 Developer's Kit - RESOLVED


From: Fernando Vilmar Palha
Subject: Re: [Ltib] UARTs in EA LPC3250 Developer's Kit - RESOLVED
Date: Wed, 24 Feb 2010 15:16:26 -0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1

Hi Kevin,

Thanks for your tips.
Now all it's working.

Regards.
-- 
Fernando Vilmar Palha
Engenheiro de Computação
Nautec Eletrônica Ltda

Em 24/2/2010 14:46, Kevin Wells escreveu:

 

Hi Fernando,

 

This mailing list covers LTIB. For future LPC32xx arch specific questions, please consider posting

them on the Yahoo lpc3000 newsgroup. You'll get more help specific to the lpc32xx devices

there.

 

From your boot output, it seems you have the drivers registered correctly.

>lpc32xx_hsuart.0: ttyTX0 at MMIO 0x40014000 (irq = 26) is a lpc32xx_hsuart
>lpc32xx_hsuart.0: ttyTX1 at MMIO 0x40018000 (irq = 25) is a lpc32xx_hsuart

 

>But do not work with "minicom" on DB9 connector.
>So, how to use UART on linux 2.6.27.8 (LTIB) in LPC3250?

 

Is it just minicom that doesn't work?

 

Verify /dev/ttyTX? has the correct permissions. See below:

address@hidden /]# ls -l /dev/ttyTX*

crw-rw-rw-    1 root     root     204, 196 Feb 24  2010 /dev/ttyTX0

crw-rw-rw-    1 root     root     204, 197 Feb 24  2010 /dev/ttyTX1

 

As a simple test, try sending a large file in the background out on the port and verifying the

FIFO interrupts are firing. See below the hsuart int count increasing on each check:

address@hidden /]# ls -la /boot/System.map

-rw-r--r--    1 root     root       814004 Feb 24  2010 /boot/System.map

address@hidden /]# cp /boot/System.map /dev/ttyTX0 &

address@hidden /]# cat /proc/interrupts

           CPU0

26:       2116           -  lpc32xx_hsuart

 address@hidden /]# cat /proc/interrupts

           CPU0

26:       2156           -  lpc32xx_hsuart

 address@hidden /]# cat /proc/interrupts

           CPU0

26:       2182           -  lpc32xx_hsuart

 address@hidden /]#

 

If it passes this simple test, somethings not right from the chip pin out to the connector.

The RX/TX may be swapped or the transceiver may not be working. Or its possible the

UART muxing may not be setup correctly. For example, U1_TX is a dedicated pin, but

U1_RX is muxed with several other pins. You need to specifically setup mux states for

your board in the board.c file or as part of the bootlloader setup.

 

thanks,

Kevin

 

 

From: address@hidden [mailto:address@hidden] On Behalf Of Fernando Vilmar Palha
Sent: Wednesday, February 24, 2010 8:42 AM
To: address@hidden
Subject: Re: [Ltib] UARTs in EA LPC3250 Developer's Kit - RESOLVED

 

Hi.

How do I use the high speed serial ports?

Enable the LPC32xx high speed serial ports in the kernel driver configuration and select which high speed serial ports of the 3 you want to use in the Linux kernel configuration System Type-AE menu. Add the device nodes to the /dev are using the following command:
 
address@hidden /root]# mknod /dev/ttyTX0 c 204 196
address@hidden /root]# mknod /dev/ttyTX1 c 204 197
address@hidden /root]# mknod /dev/ttyTX2 c 204 198


Page 3 in http://ics.nxp.com/support/documents/microcontrollers/pdf/lpc32xx.bsp.linux.faq.pdf

ttyTX0 = DB9 connector

Regards.

-- 
Fernando Vilmar Palha
Engenheiro de Computação
Nautec Eletrônica Ltda


Em 24/2/2010 11:24, Fernando Vilmar Palha escreveu:




 
 
_______________________________________________
LTIB home page: http://ltib.org
 
Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib
  


--
Esta mensagem foi verificada pelo sistema de antivírus e
acredita-se estar livre de perigo.


--
Esta mensagem foi verificada pelo sistema de antivírus e
acredita-se estar livre de perigo.

--
Esta mensagem foi verificada pelo sistema de antivĂ­rus e
acredita-se estar livre de perigo.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]