cancel
Showing results for 
Search instead for 
Did you mean: 

UART problem. Newbie

amoreno
Associate II
Posted on November 05, 2007 at 13:45

UART problem. Newbie

2 REPLIES 2
amoreno
Associate II
Posted on November 05, 2007 at 09:18

Hello all,

I’m newbie in ARM’s world and I need you help please :)

I trying to run the UART on STR711 dev tool but it doesn’t work. None character is received on PC.

Please, have a look at this simple code:

include ''71x_lib.h''

int main()

{

debug();

GPIO_Config(GPIO0,0x0400,GPIO_IN_TRI_CMOS);

GPIO_Config(GPIO0,0x0800,GPIO_AF_PP);

UART_Config(UART1,9600,UART_NO_PARITY,UART_1_StopBits,UARTM_8D);

UART_FifoConfig (UART1, DISABLE);

UART_LoopBackConfig(UART1 , DISABLE);

UART_RxConfig(UART1 ,ENABLE);

UART_OnOffConfig(UART1, ENABLE);

while (1)

{

UART_ByteSend(UART1,''H'');

}

}

The compiler doesn’t report to me any error but I dont receive any character on PC.

What is wrong? Do I need to add something?

I appreciate your help very much.

Alfa.

amoreno
Associate II
Posted on November 05, 2007 at 13:45

Solved, thanks !