Glomation
 
Advanced Search
Welcome, Guest. Please login or register.

Login with username, password and session length
May 20, 2012, 02:00:47 AM
News: Welcome to GLomation peer support forum
Pages: [1]
Topic Tools  
Read July 10, 2009, 03:37:29 PM #0
CodeSteady

How do you setup USART2

I am using the 9260S board and need help mapping RXD/TXD2 into the device directory so my apps can use this serial port.

I would like to use TXD2/RXD2 on the 50 pin header to communicate to a serial device.  Currently there is no /dev/ttySx that is mapped to this communciations port. 

What do I need to do to make TXD2/RXD2 appear as a ttySx device?  I started by changing the following in board-sam9260ek.c but had no luck.  ttyS3 never appeared in the /dev directory. 

 
   /* USART2 on ttyS3. (Rx, Tx only) */
   at91_register_uart(AT91SAM9260_ID_US2, 3, 0);


Thanks for your help.
 
Read July 10, 2009, 11:08:17 PM #1
LoialOtter

Re: How do you setup USART2

<note that this is coming from a bit of a newb here, but I should be correct>

The change to the kernel source should be correct (maybe there should be a new board-... file for this board if there are changes from the traditional AT91SAM9260ek board)

I've tested making the modification to the kernel and the device does show up under /sys/class/tty/ttyS3. The port works as expected.

you may have to make the device using:
mknod ttyS3 c 4 67
« Last Edit: July 10, 2009, 11:55:56 PM by LoialOtter »
 
Read July 23, 2009, 09:18:59 AM #2
CodeSteady

Re: How do you setup USART2

The modification to the board file worked.  My issues was I was not coping the correct version of uImage to the target. 

Thanks for your verfication.
 
Pages: [1]
Jump to:  

Theme Update by Runic Warrior Originally created by m3talc0re