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.

Question on "Example Application using DSP Link on OMAPL1x"

Other Parts Discussed in Thread: OMAP-L137, CCSTUDIO

I was running the supplied binary on my omap-l137 eval board per the instruction:

insmod dsplinkk.ko
rm -f /dev/dsplink
mknod /dev/dsplink c 230 0

 My eval board (OMAP-L137) responded very slow. Note that mine run for 10 seconds versus the instruction shown as 1/4 seconds. What did I do differently?

root@192.168.0.100:/opt/DSP_sample# ./helloDSPgpp helloDSP.out 2
========== Sample Application : helloDSP ==========
Entered helloDSP_Create ()
Leaving helloDSP_Create ()
Entered helloDSP_Execute ()
Message received: DSP is awake!
Message received: Iteration 0 is complete.
Message received: Iteration 1 is complete.
Transferring 2 iterations took 10 seconds 104426 microseconds.
RoundTrip Time for 1 message is 5052213 microseconds.
Leaving helloDSP_Execute ()
Entered helloDSP_Delete ()
Leaving helloDSP_Delete ()

 

  • Hi David,

    Here is my output:

    ========== Sample Application : helloDSP ==========
    Entered helloDSP_Create ()
    Leaving helloDSP_Create ()
    Entered helloDSP_Execute ()
    Message received: DSP is awake!
    Message received: Iteration 0 is complete.
    Message received: Iteration 1 is complete.
    Transferring 2 iterations took 0 seconds 254245 microseconds.
    RoundTrip Time for 1 message is 127122 microseconds.
    Leaving helloDSP_Execute ()
    Entered helloDSP_Delete ()
    Leaving helloDSP_Delete ()

    I got this output from rebuilding the helloDSPdsp and using the re-compiled .out.

    If you are just running the pre-compiled helloDSP.out one that comes originally (not pre-compiled), it has a bigger delay between LED blinks so you can see the LEDs blinking easier. With the pre-compiled one I got the same results as you got.

    Why this difference? Because when you get the led_test.c from spectrum digital's site, it comes with a smaller delay (LED blinks very fast). So if you want to see a faster result, you need to re-build the helloDSPdsp. If you want to alter the code to a bigger delay, you can just edit the led_test.c that you get from spectrum and rebuild it. The instructions for rebuilding and common compiling errors are at:

    http://tiexpressdsp.com/index.php/Example_application_using_DSP_Link_on_OMAPL1x

     

  • Mariana,

    I imported the led_test.c and compiled in Windows and got better results.

    However, I could not see any LED blinking. I know EVMOMAPL137_LED_on() turns on the LED. Where can I find the source of this function and the corresponding LEDs?

    Thanks,

    Davidz

     

  • David,

    The LEDs close to the SW3 of the board should blink really fast without the delay.

    The source code to EVMOMAPL137_LED_on is at the file evmomapl137_led.c. 

    All the source files for BSL is inside the folder:

    C:\CCStudio_v3.3\boards\evmomapl137_v1\dsp\lib\bsl\ (of course depends of where you installed it from spectrum's site).

     

  • Marianna,

    I found the LEDs and the associated source files as you mentioned. I was able to build and run. I increased the delay to 250000usec, and noticed the slower runs. But, I still did not see the LED blinking. I have verified that the make include evmomapl137bsl.lib.

    The only different I can see is when I configure the new module, I did not use the loadmodules.sh (I build in Windows). Instead, I manually load via:

    insmod dsplinkk.ko

    rm -f /dev/dsplink

    mknod /dev/dsplink c 230 0

    ./hellpDSPgpp helloDSP.out 2

    Is there any switch to enable these LED?

  • Hi David,

    So, did the original .out make the LEDs blink? Or they never blinked?

    Make sure that SW5 position 6 is OFF (I reached that conclusion looking at the schematics pages 8 and 14..)

    Find the schematic here:

    http://support.spectrumdigital.com/boards/evmomapl137/revd/

     

  • Mariana,

    I download it again from https://www-a.ti.com/downloads/sds_support/applications_packages/helloDSP/index.htm and change the SW position 6 as you have suggested. I do not see the any LED blink. I am wondering if I have an older board. Mine is rev D

    Davidz

  • David,

    Please make a test for me: run the LED test from Spectrum form Code Composer Studio (change the boot switch to emulation and connect to the board). Please install BSL from spectrum in windows. The LED test project should be at (depending where you installed it):

    C:\CCStudio_v3.3\boards\evmomapl137_v1\dsp\tests\led

    Make sure that when you connect to CCS you are using the GEL file.

    Please let me know if it works.

     

     

  • In http://processors.wiki.ti.com/index.php/Example_application_using_DSP_Link_on_OMAPL1x

    The link to sample projects seems broken

    https://www-a.ti.com/downloads/sds_support/applications_packages/helloDSP/index.htm

    Is there a good link or a copy elsewhere?