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.

Problem with PSPIOM McBSP driver (Tx)

Other Parts Discussed in Thread: TLV320AIC20

Hello,

I have board with DPS C6748 and 6 codecs so I'm using McBSP1 as TDM to send and receive the data. The drivers are provided by TI which are PSPIOM ver 01.30.01 and  EDMA3 ver .01.11.00.03. The example in the PSPIOM using McBSP with SIO_issue and SIO_reclaim suits me well but for Rx only. I did as shown in example and the Rx part is fine so I get the input samples correctly, however as soon as I'm trying to do the same for Tx I can issuing but not the reclaiming which blocked as soon as I call it. I have checked the McBsp registers and saw that last word of the data pushed into McBSP1 DSP register and continuously sent on the lines (saw it with the scop). I spent many hours on trying to finding the problem but couldn't think anything of anything. What I'm missing here?

Thanks,

Pavel

 

  • I'll ask the PSP team to review and comment...

  • Hello,

     

    1.     I understand that you are using a custom board. Please confirm.

    2.     In case you are using the C6748  EVM, Have you switched on the S7 jumper switch number “2” ?

    3.     Can you please tell me what is you hardware setup? My understanding is that you have connected a codec to the McBSP with the RX and TX sections connected to the codec RX and TX lines.

    4.     Have you modified the sample application for any custom requirement? If yes, can you please give the settings for the same. What is the format of data you are using (no of slots in TDM and the length etc)?

    5.     When you say that the “TX hangs and the last word of the data pushed is sent continuously” do you mean that the last word of the buffer is resent continuously after the rest of the data has be transmitted.

    6.     Please let me know the McBSP register values when the TX hangs.

    7.     Also if possible can you send a sample project which can reproduce this scenario?

     

    Thanks & Regards,

    Imtiaz SMA

  • Hello,

    Please see the answers in red: 

    1.     I understand that you are using a custom board. Please confirm.

    Yes I have custom board with DSP C6748 and 6 codecs of tlv320aic20.

    2.     In case you are using the C6748  EVM, Have you switched on the S7 jumper switch number “2” ?

    3.     Can you please tell me what is you hardware setup? My understanding is that you have connected a codec to the McBSP with the RX and TX sections connected to the codec RX and TX lines.

    Yes axactly as you described.

    4.     Have you modified the sample application for any custom requirement? If yes, can you please give the settings for the same. What is the format of data you are using (no of slots in TDM and the length etc)?

    The Rx part is exactly the same as in McBSP example except that for the Rx I'm using Mcbsp_BufferFormat_MULTISLOT_NON_INTERLEAVED

    instead of Mcbsp_BufferFormat_1SLOT. I didn't have example for Tx so I configured it as far as I understand.

    5.     When you say that the “TX hangs and the last word of the data pushed is sent continuously” do you mean that the last word of the buffer is resent continuously after the rest of the data has be transmitted.

    I'm not sure that the rest of the data has been sent what I see that word constantly on lines and in DXR register.

    6.     Please let me know the McBSP register values when the TX hangs.

    The BSP values are:

    DXR = 0x00010000

    SPCR = 0x2330030

    RCR  = 0x00010040

    XCR = 0x00010040

    SPRG = 0x80000001

    7.     Also if possible can you send a sample project which can reproduce this scenario?

    I can send you the project just tell me how :)

    I'm not sure that the problem is McBSP but in the EDMA3 configuration. What do you think?

    Regards,

    Pavel

  • Do you have some example for McBSP working in Tx mode. I can try it and see if it helps.

    Thanks,

     Pavel

  • I believe that you can attach a file to a thread post.  When you are composing a message, click on Options and then attach the zip file.  Not sure what the size limit is for doing this...

  •  

    Hi,

    There are two mcbsp projects available in the PSP package at "ti/pspiom/examples/evm6748/mcbsp/build/ccs3/

    1. mcbspSampleMaster.pjt

       This project configures the Mcbsp as master, i.e. the Mcbsp generates the required clocks for the working. Also this project only does transmission of the data.

    2. mcbspSampleSlave.pjt

    This project configures the Mcbsp as slave, i.e. the Mcbsp waits for the required clocks from the master. This project only receives data from the master and compares the same.

    you will need to use the master project to check the transmission of Mcbsp.

    Also,please refer to the user guide provided with the PSP package for the instructions on running this example if you wish to test this example.

    regards,
    imtiaz

  • Hi Imtiaz,

    Thanks a lot for your help the driver is work normaly now! I had some difference between my and mcbspSampleMaster configurations so aligning it halped.

    Regards,

    Pavel