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.

UART2 Hang

Other Parts Discussed in Thread: OMAP-L137

Hi,

I used C6747/OMAP-L137 EVM and used the example given in CSLR folder (ver. PSP 1.20). Originally, it was meant for loopback but i modified it to work on UART2. I can run the program successfully and it displays all the characters. But when i debug line by line OR send single character, it hangs for a while until the next character queued for sometimes, then only it transmits the character to the hyperterminal. It seems that it has some timeouts or something. I attached the code for your convenience. 7711.cslr.zip

Why it hangs? I need to handshake with my PC, that is the reason i send single character. Could you please help?

  • Hi again,

    Somehow I managed to solve it. I changed the parameter as below and it works smoothly.

        //1) Reset UART TX & RX components
        uartRegs->PWREMU_MGMT = 0;        

        //2 Wait for boot up (100)
        for(dummy=0; dummy<0xFFFF; dummy++);

        //3) Set baud rate 921600 bps
        uartRegs->DLL = 10;            //73 - 128000bps
        uartRegs->DLH = 0;

        //4) Clear UART TX & RX FIFOs
        uartRegs->FCR = 0x0007;
        
        //5) Non-FIFO mode
        uartRegs->FCR = 0x0000;     
        
        //6) Enable interrupts  
        uartRegs->IER = 0x0007;

        //7) 8-bit words, NO PARITY, 1 Stop Bit
        uartRegs->LCR = 0x0003;

        //8) RTS & CTS disabled, AFE DISABLE, LOOP DISABLE
        uartRegs->MCR = 0x0000;

        //9) Enable TX & RX componenets
        uartRegs->PWREMU_MGMT = 0xE001;

        //10) Wait for boot up
        for(dummy=0; dummy<0xFFFF; dummy++);

        //11) Clear initial data in THR
        dummy = uartRegs->THR;