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.

C6748 uart2 receive problem

Other Parts Discussed in Thread: OMAP-L138

Hi,

I'm working with  the C6748 (Zoom OMAP-L138 EVM Development Kit) and I've set up uart1 to receive (which it does just fine), uart2 to send (which again it does just fine) and I'm also trying to set up uart 2 to receive as well. As I said, uart 2 can send just fine, but when i try to send it data, it either doesn't receive it (usually), corrupts it (sometimes), or works (rarely). I'm using RealTerm on my pc to send and receive the data and the other odd thing is that whenever I send anything, immediately a sequence of bytes of value 0x07 gets echoed back to me. I get 0x07's regardless of what data I send.

My uart2 initialization code looks like this:

    Uart_init();
    uart2Params = Uart_PARAMS;
    uart2Params.loopbackEnabled = FALSE;
    uart2Params.hwiNumber = 9;
    uart2Params.opMode = Uart_OpMode_INTERRUPT;
    uart2Params.txDmaBCnt = Uart_RxTrigLvl_1;
    uart2Params.baudRate = Uart_BaudRate_19_2K;

Thanks,

Nick

 

  • Hi Nick,

    I used the project:

    C:\Program Files\Texas Instruments\pspdrivers_01_30_00_05\packages\ti\pspiom\examples\evmOMAPL138\uart\interrupt\build\uartSample.pjt

    and just changed to:

    uart2Params.baudRate = Uart_BaudRate_19_2K;

    and it worked fine. I could send and recieive data from UART2.

    I also do not see that field (txDmaBCnt) that you used at: uart2Params.txDmaBCnt = Uart_RxTrigLvl_1;

    Make sure you have the latest PSP (you will need a ti.com ID) and that you have the S7 DIP Switch Boot Modes in EMU debug as described on page 14 (table 2.11) of:

    http://support.logicpd.com/downloads/1213/

     

     

     

     

  • Thanks Mariana,

    I upgraded the PSP and can send and receive data via the uart at 19200 with no problem. One other question I have: I had a special version of  PSP 1.20.00.08 that included a high-speed fix to allow baud rates higher than 115.2k (312.5k is the one I'm interested in specifically). Does PSP 1.30.00.05 allow for baud rates higher than 115.2k?

    Thanks again

  • Hi Nick,

    I could not find the 312.5K speed in any version of PSP.

    C:\Program Files\Texas Instruments\pspdrivers_01_30_00_05\packages\ti\pspiom\uart\Uart.h

    I'm not sure what "special version" you have.. Maybe you would need to contact the person that gave you that version and see if it can be made for the newest PSP. Anyway, it should not be hard to port the changes, but I do not have the version that you are talking about.