Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: ttyS3 doesn't transmit in kernel 2.6.21
PostPosted: Sun Jul 29, 2007 10:51 pm 
Offline

Joined: Sun Aug 27, 2006 7:59 am
Posts: 10
Hi,

I am transmitting data with a program by the ttyS3 with linux kernel 2.6.16, but when I use the Linux kernel 2.6.21, this program does not transmit data. The program is the same in both kernel, I modified in /arch/arm/mach-at91/board-dk.c this .nr_tty = 5, .tty_map = { 4, 1, 2, 3, 0 } /* ttyS0, ..., ttyS4 */ in both kernels but in the kernel 2.6.21 the pin of the Arm dosen't move.

Thanks in advance
Jeronimo


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 09, 2007 10:52 am 
Offline

Joined: Thu Aug 09, 2007 10:48 am
Posts: 106
Location: Artec Design LLC, Tallinn, Estonia
Are you using the hw handshaking (RTSCTS, configurable with "stty -F /dev/ttyS3 -crtscts")? Check out the pin multiplexing configuration in arch/arm/mach-at91/at91sam9261_devices.c. On some ports, the RTS/CTS pins are not muxed by default and as they are pulled up, it may block traffic.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 13, 2007 4:33 pm 
Offline

Joined: Sun Aug 27, 2006 7:59 am
Posts: 10
Hi,

I am not using hardware handshake.
I modified in arch/arm/mach-at91/at91rm9200_device.c this function, enabling the RTS and CTS pins, but the serial port doesn't transmit

static inline void configure_usart3_pins(void)
{
at91_set_B_periph(AT91_PIN_PA5, 1); /* TXD3 */
at91_set_B_periph(AT91_PIN_PA6, 0); /* RXD3 */
at91_set_B_periph(AT91_PIN_PB0, 0); /* RTS3 */
at91_set_B_periph(AT91_PIN_PB1, 0); /* CTS3 */
}

Thanks
Jerome


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 26 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: