Enabling UART2 and NAND flash on custom board (AT 9263-EK)

This forum is for users of Atmel's SAM Series and who are interested in using WinCE OS.

Moderator: nferre

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

Enabling UART2 and NAND flash on custom board (AT 9263-EK)

Wed Jan 27, 2010 3:15 am

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
guangyu.ren
Posts: 23
Joined: Tue Mar 31, 2009 7:22 am

Re: Enabling UART2 and NAND flash on custom board (AT 9263-EK)

Wed Jan 27, 2010 10:18 am

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.
raygloria
Posts: 11
Joined: Sat Aug 01, 2009 1:59 am

Re: Enabling UART2 and NAND flash on custom board (AT 9263-EK)

Fri Jan 29, 2010 8:04 pm

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.
guangyu.ren
Posts: 23
Joined: Tue Mar 31, 2009 7:22 am

Re: Enabling UART2 and NAND flash on custom board (AT 9263-EK)

Tue Feb 02, 2010 8:16 am

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.

Return to “WinCE”

Who is online

Users browsing this forum: No registered users and 1 guest