This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x UART initialization code in Starterware

Other Parts Discussed in Thread: AM3352

Hi all,

SOC: AM3352

Version:AM335X_ StarterWare_02_00_01_01
 (Currently using)

Now, I run application Present in /examples/DMcounter/dmtimercounter.c,  in this file it's call the consoleutils() function.

- the Consoleutils() function present in utils/consoleutils.c file, again it's call the UARTStdioInit() function

- the UARTStdioInit() function present in utils/Uartstdio.c, again it's calling the Three functions,

1-UART0ModuleclkConfig()

2-UARTPinMuxsetup()

3-UARTStdioInitExpclk()

these 1st and 2nd functions present in the platform/evmam335x/uart.c and 3rd one in platform/evmam335x/uartconsole.c

- the 1st and 2nd functions initialization works perfectly, in 3rd function again calling  Other functions,

- the one of the function is UARTModulereset(unsigned int base Add)

UARTModulereset(unsigned int base Add)

{

/* Performing software reset of the module */

consoleutilsprintf("Performing reset the module\n");

HWREG(baseadd+UART_Sysc) |=(UART_Sysc_SOFTRESET);

/* Wait untill the process of module reset is complete */

consoleutilsprintf("wait the loop until reset the UART module\n");

while(!(HWREG(baseadd+UART_Syss)&UART_Syss_RESETDONE));

}

the above function present in /derivers/uart_irda_cir.c file.

In this function first instruction will reset the serial module, it's not reset here, the Prints Stops here(used to put some prints in the Source code of UART),the control not goes to the  second instruction it is waiting for the module to perfect Reset.

When I run the sample application (i get all prints on my hyper terminal, because i put the prints on UART code) 1st instruction executing it's stop there, it's not printing the While loop print.

 i checked the data sheet of the AM3352, ARM memory the correct for the reset the UART_Sysc register.

So can any one provide me the solution of this issue.

Why application stop at this point.

Please guide me, How resolve UARTModulereset() function  issue.

regards,

Vamsi.