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.

OMAP L137 UART test code problem

Other Parts Discussed in Thread: OMAP-L137, CCSTUDIO

I'm testing the given OMAP L137 UART test code - umart_test.pjt.  I was able to compile the code without problems.  However, when I run it, I got the error message "FAIL... error code -1... quitting".  It's the original code, without any changes.  Could anybody please provide any advice?  Thank you.

 

  • It looks like theres lots of ways to get error code -1. In CCS, put breakpoints at all the "return -1;" statements and see which one is failing, and we can go from there.

    Jeff

  • I looked at the code.  The error happened at the following "return -1;"

    ......

    #if(1)
            /* uart_rx */
            timeout = test_timeout;
            while( EVMOMAPL137_UART_rcvReady( uart0 ) )  // Wait for uart_rx ready
            {
                if ( timeout-- < 0 )
                    return -1;                 (This is the breakpoint where the code stops)
            }

            EVMOMAPL137_UART_getChar( uart0, &uart_rx[i] );   // Read 1 byte
    #endif
    ......

    Looks like the code was able to write numbers to UART2, but cannot read them back.  Could anybody please give any suggestions?  Thank you.

  • First try to probe the signals to make sure its getting looped back. You should see some toggling on RN8, pin 1 (for transmit) and back on RN8, pin 3 (for receive). If not, probe the signal path back to UART_TX and see where it gets lost.

     

    Jeff

  • The RN8 pins are so tiny...  Will see if I can find another way to debug it in software, otherwise will give a try on the pins.  Thank you very much for the suggestions.

  • Jeff,

    I met problems when testing OMAP-L137 BIOSPSP UART EDMA example.  I posted my question at this forum before, but didn't get any response.  I'm wondering if you could help me take a loop.  The example is included in OMAP-L137 BIOSPSP package, by default installation, it can be found at

    “C:\Program Files\Texas Instruments\pspdrivers_01_20_00\packages\ti\pspiom\examples\evmOMAPL137\uart\edma”

    I already installed EMDA3_lld_01_06_00_01 and bios_5_33_05 at the same folder “C:\Program Files\Texas Instruments\", and set the Environment Variables correctly. 


    My problems happened when I compiled the code (.pjt):

    Problem #1:  When I open the project file, a window pops out with the following error message:

    "Project Update

    CRegistryInfo::GetSABiosConfig() could not find ConfigSuffix"

     

     

    Problem #2:  When I compiled the code, I got the following error message:


    ---------------------------  uartSample.pjt - Debug  ---------------------------

    Error, Don't know how to build file "C:\Program Files\Texas Instruments\pspdrivers_01_20_00\packages\ti\pspiom\examples\evmOMAPL137\uart_copy\edma\build\uartSample.tcf"

    [uartSample.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -pdr -fr"C:/Program Files/Texas Instruments/pspdrivers_01_20_00/packages/ti/pspiom/examples/evmOMAPL137/uart_copy/edma/build/Debug" -i"C:/Program Files/Texas Instruments/pspdrivers_01_20_00/packages/ti/pspiom/examples/evmOMAPL137/uart_copy/edma/build/../../../../../../../" -i"C:/Program Files/Texas Instruments/edma3_lld_01_06_00_01/packages" -i"C:/CCStudio_v3.3/bios_5_33_05/packages/ti/bios/include" -i"C:/CCStudio_v3.3/C6000/cgtools/include" -mv6740 -@"../build/Debug.lkf" "uartSample.c"

     

    [Linking...] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -@"Debug.lkf"

    <Linking>

    "C:\Users\Sean\AppData\Local\Temp\024923", line 14: fatal error: unrecognized

       file:  "C:\\Program Files\\Texas

       Instruments\\pspdrivers_01_20_00\\packages\\ti\\pspiom\\examples\\evmOMAPL13

       7\\uart_copy\\edma\\build\\uartSamplecfg.cmd"

     

    >> Compilation failure

     

    Build Complete,

      3 Errors, 0 Warnings, 0 Remarks.

  • Sean, you should repost this in the Embedded Software forum. They will be able to help you better. Thanks

    Jeff

  • Hi Jeff,
    I'm facing the same error, on the same line of code EVMOMAPL137_UART_rcvReady( uart0 ), unfortunately we do not have the oscilloscope or any other instrument to do the check as you have mentioned. But I connected to my PC's hyperterminal via the RS232 setting, which seems to read something. Can you suggest me if there is any other option to find whether the receiver works or not?