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  [ 4 posts ] 
Author Message
 Post subject: Enabling UART2 and NAND flash on custom board (AT 9263-EK)
PostPosted: Wed Jan 27, 2010 3:15 am 
Offline

Joined: Sat Aug 01, 2009 1:59 am
Posts: 11
Hi,

I'm using the Windows CE BSP for the AT91SAM9263-EK on a custom board. This board allows the NAND flash and UART2 to be used.

My question is how can I enable UART2 (NAND flash is used) in my OS design?

Thanks for your time.
- raygloria


Top
 Profile  
 
 Post subject: Re: Enabling UART2 and NAND flash on custom board (AT 9263-EK)
PostPosted: Wed Jan 27, 2010 10:18 am 
Offline

Joined: Tue Mar 31, 2009 7:22 am
Posts: 23
You can include PLATFORM\AT91SAM9263EK\SRC\Drivers\Serial\at91sam9263ek_serial_USART2.reg in your platform.reg.

But please take care of the conflicts GPIO assignment.


Top
 Profile  
 
 Post subject: Re: Enabling UART2 and NAND flash on custom board (AT 9263-EK)
PostPosted: Fri Jan 29, 2010 8:04 pm 
Offline

Joined: Sat Aug 01, 2009 1:59 am
Posts: 11
Thanks.
I included PLATFORM\AT91SAM9263EK\SRC\Drivers\Serial\at91sam9263ek_serial_USART2.reg to the platform.reg, and I was able to perform open() and close() to the serial port. However, I still could not send nor receive data. Any tips on how to change the "conflicts GPIO assignment"? I looked at the file PLATFORM\AT91SAM9263EK\SRC\Drivers\Serial\Serial_SAM9263EK.cpp and found the following code:

static const struct pio_desc hw_pio_us2[] = {
{"TXD2", AT91C_PIN_PD(2), 0, PIO_DEFAULT, PIO_PERIPH_A},
{"RXD2", AT91C_PIN_PD(3), 0, PIO_DEFAULT, PIO_PERIPH_A},
{"RTS2", AT91C_PIN_PD(5), 0, PIO_DEFAULT, PIO_OUTPUT},
{"CTS2", AT91C_PIN_PD(6), 0, PIO_DEFAULT, PIO_PERIPH_B},
};

Please advise.


Top
 Profile  
 
 Post subject: Re: Enabling UART2 and NAND flash on custom board (AT 9263-EK)
PostPosted: Tue Feb 02, 2010 8:16 am 
Offline

Joined: Tue Mar 31, 2009 7:22 am
Posts: 23
You can check the file PLATFORM\AT91SAM9263EK\SRC\BOOTLOADER\FirstBoot\sdram.c. You can find PD5 and PD6 are used EBI0, which is used to connect to SDRAM.


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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: