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.

PSP drivers. No code in main() in SPI DMA example code. OMAP L13x

Other Parts Discussed in Thread: OMAPL138, SYSBIOS

Hi,

I'm working on SPI in DMA mode. When I try the Spi example application that comes with the pspdrivers_01_30_00_05 package (in directories pspdrivers_01_30_00_05\packages\ti\pspiom\examples\evmOMAPL13x\spi\edma) i see that the main() function is empty. Are there any reasons for that?

Does this mean that the example is not intended to work?

Regards

Tarjei

  • Hi Tarjei,

    Could you please share the link, Where did you downloaded the package from(pspdrivers_01_30_00_05)?

    Please refer the below link. In which, the user is able to execute the spi example.

    http://e2e.ti.com/support/embedded/bios/f/355/t/266351.aspx

  • Tarjei,

    Release 01.30.00.05: This was an EA release.

    However you can use psp package latest avilable in TI download link.
    http://software-dl.ti.com/dsps/dsps_public_sw/psp/BIOSPSP/01_30_00_06/index_FDS.html
    And also refer the release note, it will give the detail for known issues.

    If you are looking for SPI with EDMA example for OMAPL13x, Please refer the below path:(OMAPL138 Starterware Installer)
    OMAPL138_StarterWare_1_10_03_03\build\c674x\cgt_ccs\omapl138\lcdkOMAPL138\spi_edma

     

  • Hi,

    I have downloaded the package from this link: http://software-dl.ti.com/dsps/dsps_registered_sw/sdo_sb/targetcontent/psp/bios_psp/1.30.xx/1.30.00.05/BIOSPSP_01_30_00_05_Setup.exe.

    I guess that code was manually added in the other thread in order to get the instructions to run.

    The documentation states (OMAPL137_BIOSPSP_Userguide.pdf, p.76):

    "Once initialization has completed, the main() function runs, configuring the PINMUX. Following this, the user  defined task “echoTask()” runs, which creates GIO Spi  read and write handles. These handles are then used when calling the GIO_submit() API to actually write and read data to and from the spi flash memory."

    and further:

    "No special setup is needed to run the Spi example"

    I don't see that this is the case.

    Regards

    Tarjei

  • Pubesh,

    What do you mean by EA release? I selected release 01.30.00.05 because this is the default from this link: http://downloads.ti.com/dsps/dsps_registered_sw/sdo_sb/targetcontent/psp/bios_psp/index.html.

    I'm working with the L137, so the OMAPL138 Starterware examples are probably not directly working, but anyway, thanks for the tip.

    Regards,

    Tarjei

  • Tarjei,

    Thanks for your information about the biospsp package download link.
    For your kind information, you were missed some more working environment details like which processor, DSPBIOS or SYSBIOS on your initial thread.
    So that I have given details for spi_edma example project from OMAPL138 Startware(which is used SYSBIOS).

    You need to understand about task creation and how to use tcf file.
    If you familiar on tcf file, you can see the echo task.
    Once main() called, echo task will be called via tcf(DSPBIOS).
    You can debug the code via CCS with BP at "echo" call in spiSample_main.c
    I think so, the available spi with edma project is working.
    Please try to understand the code flow as well as task.

    FYI,

    pspdrivers_01_30_00_05\packages\ti\pspiom\examples\evmOMAPL137\spi\edma\src
    pspdrivers_01_30_00_05\packages\ti\pspiom\examples\evmOMAPL137\spi\edma\build

  • Thanks Pubesh,

    That answered my question.

    Very helpful indeed!

    Regards,

    Tarjei