nobody wrote on Monday, January 29, 2007:
I have been using STR91x demo board from IAR with FreeRTOS successfully.
I used the serial port driver, using UART 1, provided in the demo and it works fine.
As I was in need of 2 serial ports, I copied the serial port driver, i.e. serial.c, and modified it to use UART 0. But the program just hangs after I call "UART_Init( UART0, &xUART0_Init );".
Few observations on the issue:
-As UART_Init() works with UART0 and is a function in library provided by ST, I beleive it cannot be wrong.
-I rechecked the parameters I am passing to the function and it all seems correct.
-I debugged the program using JTAG and found that just after executing the line "UARTx->LCR &= UART_Parity_Mask;", in function UART_Init() of 91x_uart.c, the program hangs and Jtag also loses the control over the target.
Does anybody have any idea what can be wrong?
Have anybody successfully used 2 serial ports on STR91x board?
Any help will be highly appreciated.