cancel
Showing results for 
Search instead for 
Did you mean: 

UART problem

qaak
Associate II
Posted on December 14, 2005 at 11:09

UART problem

2 REPLIES 2
qaak
Associate II
Posted on December 13, 2005 at 19:42

Hello all,

we're playing with Raisonance Reva board, after a lot of time and with great help of this forum we're able to run USB correctly. Using a modified example from this forum. But when we try to send data throw UART we receive only stupid characters. The problem is in the clock configuration :

RCCU_MCLKConfig ( RCCU_DEFAULT );

RCCU_FCLKConfig ( RCCU_DEFAULT);

RCCU_PCLKConfig ( RCCU_DEFAULT );

RCCU_PLL1Config ( RCCU_Mul_12 , RCCU_Div_1 ) ;

for ( i = 0x7f ; i> 0; i--)

RCCU_RCLKSourceConfig ( RCCU_PLL1_Output ) ;

...

without the last line, UART works fine, but the USB not...

UART inicialization: (briefly)

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

in the conf file is #define RCCU_Main_Osc 4000000

Can you help me?

Thanks

qaak
Associate II
Posted on December 14, 2005 at 11:09

Hi,

first of all i must say i don't know the RIDE very well... If i open your example there's error : No source file to be translated. I have to copy all the files (.c .s .h) into the main project directory and using ''add node source'' add the files into the project. Maybe while doing this i can make some mistake...

After then it can be compiled and loaded, USB works, UART not. (i didn't try it with this one, but suppose it's the same example as you posted into the thread ''USB demos for Raisonance/GNUARM'')

PCU->PLL2CTL =0x81D0;

it's in my main.c...

Qaak

(sorry for my english..)