Advanced Search
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
May 20, 2012, 02:00:47 AM
Home
Help
Calendar
Login
Register
News
: Welcome to GLomation peer support forum
Glomation
»
Peer Support Forums
»
GESBC-9260
»
How do you setup USART2
« previous
next »
Pages: [
1
]
Topic Tools
Topic Tools
Send this topic
Print
July 10, 2009, 03:37:29 PM
#0
CodeSteady
CodeSteady
Show CodeSteady's last posts.
Show general stats for CodeSteady.
Super Hero
Posts: 5
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.
July 10, 2009, 11:08:17 PM
#1
LoialOtter
LoialOtter
Show LoialOtter's last posts.
Show general stats for LoialOtter.
Super Hero
Posts: 13
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
»
July 23, 2009, 09:18:59 AM
#2
CodeSteady
CodeSteady
Show CodeSteady's last posts.
Show general stats for CodeSteady.
Super Hero
Posts: 5
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
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> Announcements
=> General Discussion
=> Programming Tips, Recommendded Readings, etc.
-----------------------------
Peer Support Forums
-----------------------------
=> GESBC-9302
=> GESBC-9260
=> GESBC-9G20
=> GESBC-2440
=> GESBC-9315
Loading...