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.

Configuration of EDMA for DM6437 McBSP SPI Slave Mode

Hello TI:

I'd like to configure the DM6437 McBSP to operate in SPI slave mode.   (Another thread, indicated that the latest PSP drivers (pspdrivers_1_10_03) support this)

Is there some sample code / app note that you could direct me to which describes how to the initialize and configure the EDMA for use with the McBSP?

I noticed that when the PSP_mcbspChanParams->edmaHandle is NULL the drivers return with an error, so I assume that it expects that the EDMA is used.

-- B

  • Hi All,

     

    I am also looking for a solution. How to configure EDMA channels?

     

    Thanks

    Lijesh

  • Hi,

    I have the same problem of "Lijesh" & "Bandeg".

     

    Can any one try to give me an example of code in order  to configure EDMA channels for MCBSP?

     

    Regards;

  • Hot snow,

    Just for confirmation, your requirement is to have McBSP working in SPI mode. To achieve this, you need a test sample as a reference. Is my understanding correct?

    BTW, Do you have the BIOS PSP 1.10.03?

    Regards,

    Sandeep K 

  • Sandeep,

    My problem is not to configure McBSP as an SPI slave because I have already make this.


    In fact, I'm using now the "CPU interrupts" to  establish the SPI communication between my device (works as SPI slave) and an external device (SPI master). But I guess that using the technique "EDMA3" instead of "CPU interrupts" is more useful in order to make the speed of SPI communication more heigher.


    The problem is: I didn't find any code example dealing with the configuration of EDMA3 to service the McBSP peripheral.

    About your second question: Yes, I have the BIOS PSP 1.10.03.

     

    Regards,

  • The same issue I am also facing.

    Looking forward for some sample code.

     

    Thanks

    Lijesh

     

     

  • Hi Hot Snow, Lijesh,

    I can share the sample code if you provide me your email IDs 

    Thanks and Regards,

    Sandeep K

  • Sandeep,

     

    Thank you so much.!

    This is my mail id lijeshk[at]gmail.com

     

    Thanks

    Lijesh

  • Sandeep,

     

    Than you in advance for your help.

     

    My email is : imed_elhadef@hotmail.fr

     

    Regards,

  • Hot snow, Lijesh,

    I have shared the reference code over an email.

    Let me know the result and close this thread if you feel the question is answered.

    Thanks and Regards,

    Sandeep K

  • Sandeep,

     

    Sorry for this late reply.

     

    I didn't manage to use the EDMA3 in my proper project, also I have followed the instructions that you have montionned with the "Audio" project but it didn't work.

     

    Regards;

  • Hot snow,

    Can you please explain bit more about the "what is not working"?

    Is your setup is similar to the one explained in the chapter 5 of the "<>\pspdrivers_1_10_03\packages\ti\sdo\pspdrivers\drivers\mcbsp\docs\BIOS_McBSP_Driver_UserGuide.pdf"?

    If it is different, could you please explain?

    Lijjesh,

    Do you have any update on the shared sample code?

    Thnaks and Regards,

    Sandeep K

  • Hi Sandeep,

     

    I couldn't get time to test. Tied up with another project. I will update you after this weekend.

    Thanks

    Lijesh

  • Hi Sandeep,

     

    I was a little busy the previous days.

     

    Well I make like you tell me in the last message, but I found a major Error of compilation which is:

    //-----------------------------------------------------------------------//

    The configuration step is now running:

    configuring dm6437_evm_audio_st_sample.x64P from package/cfg/dm6437_evm_audio_st_sample_x64P.cfg ...
    js: "C:/dvsdk_1_11_00_00/xdc_2_95_02/include/utils.tci", line 807: exception from uncaught JavaScript throw: Error: Can't load platform definition 'ti.platforms.evmDM6437': Error: Can't load ti.bios.tci :Error: Can't find import file: 'ti/bios/bios.tci' (not found along 'C:\dvsdk_1_11_00_00\xdc_2_95_02\packages\ti\platforms\evmDM6437/;C:/dvsdk_1_11_00_00/pspdrivers_1_10_03/packages/ti/sdo/pspdrivers/system/dm6437/bios/evmDM6437/i2c/dm6437_i2c0.tci;c:\dvsdk_1_11_00_00\xdc_2_95_02/include;c:\dvsdk_1_11_00_00\xdc_2_95_02/packages')
        "C:/dvsdk_1_11_00_00/xdc_2_95_02/include/utils.tci", line 488
        "C:/dvsdk_1_11_00_00/xdc_2_95_02/include/utils.tci", line 505
        "C:/dvsdk_1_11_00_00/xdc_2_95_02/include/utils.tci", line 826
        "C:/dvsdk_1_11_00_00/xdc_2_95_02/packages/ti/platforms/evmDM6437/Platform.tci", line 61
        "C:/dvsdk_1_11_00_00/xdc_2_95_02/include/utils.tci", line 566
        "C:/dvsdk_1_11_00_00/xdc_2_95_02/include/utils.tci", line 807
        "C:/dvsdk_1_11_00_00/pspdrivers_1_10_03/packages/ti/sdo/pspdrivers/system/dm6437/bios/evmDM6437/audio/sample/build/dm6437_evm_audio_st_sample.tcf", line 4
        "C:/dvsdk_1_11_00_00/xdc_2_95_02/include/utils.tci", line 566
        "C:/dvsdk_1_11_00_00/xdc_2_95_02/include/utils.tci", line 484
        "./dm6437_evm_audio_st_sample.tcf", line 2
        "C:/dvsdk_1_11_00_00/xdc_2_95_02/include/utils.tci", line 566
        "C:/dvsdk_1_11_00_00/xdc_2_95_02/include/utils.tci", line 484
        "./package/cfg/dm6437_evm_audio_st_sample_x64P.cfg", line 634
        "./package/cfg/dm6437_evm_audio_st_sample_x64P.cfg", line 605
        "C:/dvsdk_1_11_00_00/xdc_2_95_02/packages/xdc/cfg/Main.xs", line 182
        "C:/dvsdk_1_11_00_00/xdc_2_95_02/packages/xdc/cfg/Main.xs", line 151
        "C:/dvsdk_1_11_00_00/xdc_2_95_02/packages/xdc/xs.js", line 137
    xdc_2_95_02\gmake.exe: *** [package/cfg/dm6437_evm_audio_st_sample_x64P.c] Error 1

    *************************
    Configuration step failed.
    *************************

    Explanation:
    -----------
    XDC tools could not find file 'ti/bios/bios.tci' in your package path.
    If this is a valid script name --
    To correct this error, you must locate a directory on your system
    that contains that script and add it to your package path.
    (You can use an absolute path or one relative to your project,
    e.g. '../../myTconfScripts/'.)
    If you are unsure which script attempted to load the missing script,
    please look at the list of scripts located below the original error line above.\n

    Please review the above information carefully to correct this configuration error.

    Build Complete,
      1 Errors, 0 Warnings, 17 Remarks.

     

    //-----------------------------------------------------------------------//

     

    I didn't understand what means the explanation above?

     

    Regards,

  • thank you !

    I need it too.

    M9507205@mail.ntust.edu.tw