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.

McBSP example on LCDK C6748 fails.

Other Parts Discussed in Thread: SYSBIOS

Hello,

I tried to run McBSP examples which came with biospsp_03_00_01_00. When the code reaches 

mcbspTxHandle = GIO_create("/mcbsp1", GIO_OUTPUT, &ioParams, &eb); 

line of the code, GIO_crate fails with

"report ti.sysbios.io.GIO: line 248: E_createFailed: mdCreateChan returned error -10".

I am using "bios_6_35_01_29".

What can I do to solve the problem?

Thanks.

Onur

  • Hi Onur,

    Thanks for your post.

    Could you please share the path, in which you take the McBSP example in the bios psp package (biospsp_03_00_01_00)?

    Have you run the McBSP driver code or example code?

    Please provide all the details, so that, i shall experiment at my end and provide you the solution.

    Also, Please make sure the pinmux setup for the McBSP device and validate the McBSP pin, whether the pin is configured for McBSP functionality or general purpose (GPIO) usage and also, check whether it is configure for input pin or outpin pin ?

    It looks like, McBSP pin is configured for GPIO usage and trying to get the handle for McBSP data transmission which is for McBSP functionality, So, GIO_Create is not able to return the handle for McBSP Tx and it seems, there is some issue in the pinmux setup.

    Thanks & regards,

    Sivaraj K

    ---------------------------------------------------------------------------------
    Please click the
    Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------

     

  • Hi Sivaraj,

    Thanks for your reply.

    Actualy I am new to DSP and SYSBIOS. I did try all the three samples which are located in;

    1. "biospsp_03_00_01_00\drivers\examples\evm6748\mcbsp\Master"

    2. "biospsp_03_00_01_00\drivers\examples\evm6748\mcbsp\Slave"

    3. "biospsp_03_00_01_00\drivers\examples\evm6748\mcbsp_dlb\Master".

     

    I did run the example codes. In example codes there is a line that is

     

    /* enable the pinmux for the mcbsp device                                 */    

    configureMcbsp();

    I think the function "configureMcbsp" came from the header "biospsp_03_00_01_00\platforms\evm6748\Mcbsp_evmInit.h" and the library "biospsp_03_00_01_00\platforms\evm6748\lib\c6748-evm\674\debug\bios_psp_platform_evm6748.ae674". Because of the comment of the code i thought this function configures the  PinMUX for McBSP.

    We have a custom board which contains a C6748 DSP using McBSP lines. I did not try configuring the pins manually because of the comment that I mentioned above. Actually firstly I want to configure McBSP driver properly. I am going to try configuring the McBSP pins manually. If it works I will inform you.

  • Hi Onur,

    Thanks for your post.

    In my understanding, you are using c6748 LCDK board, but you are using examples from evm6748, which you have specified in the above thread.

    I think, the examples for evm6748 will not work for c6748 LCDK.

    Please take care.

    Thanks & regards,
    Sivaraj K
    ---------------------------------------------------------------------------------
    Please click the
    Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------
  • Hi Siveraj,

    I think i could not explain my problem clearly. Actually we have a custom board which includes C6748 and we have lines attached for McBSP line 1 (not 0). For now my problem is that i get error in all of the example codes (They build and run, but in the "mcbspTxHandle = GIO_create("/mcbsp1", GIO_OUTPUT, &ioParams, &eb);" line of code it gives an error that is "report ti.sysbios.io.GIO: line 248: E_createFailed: mdCreateChan returned error -10".). So, i give a try on LCDK board. It gives the same error. So firstly i want to run the application without getting any errors than i will contiue working on outputs.

    Thanks.

    Onur

  • Hi Onur,

    Thanks for your post.

    The McBSP examples which are mentioned above will work only with TI's OMAPL13x/c6748 EVM board and obviously, you will get error in all of the example codes.

    You shall use the above code just for reference and modify the code accordingly to suit for your custom board. (Device level pin multiplexing is controlled by registers PINMUX0 - PINMUX19 in the SYSCFG module) Please refer Section 3.2 in the datasheet given below:

    http://www.ti.com/lit/sprs590

    Also, refer section 10.5 SYSCFG Registers in the C6748 TRM as below:

    http://www.ti.com/lit/spruh79

    Thanks & regards,

    Sivaraj K

    ---------------------------------------------------------------------------------
    Please click the
    Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------

     

  • Hello Onur,

    We are running into the same issue when using the sample code and LCDK board.  Were you able to resolve the problem?

    Thanks,

    Subha

  • The problem is caused by the drivers of EDMA3-LLD. There are two driver structures under "<edma 3 lld driver path>\packages\ti\sdo\edma3\" which are "drv" and "rm". Both "rm" and "drv" has nearly the same function set and API (I don't know why there are two drivers). When I debugged my project I realized that my project uses "rm" drivers. When i change the drivers with the ones that are under the "drv" folder, my problem is solved. Hope this helps.

     

    Onur.

  • Onur,  How did you change the drivers? 

    I tried removing references to RM  from the linked libraries and just got linker errors.  From reading the docs included with the driver it appears that the RM is the EDMA3 resource manager, and is a necessary component of the driver.

  • I'm on vacation now. When i get back to work, if you want, i can post you a project that runs on LCDK6848.

  • Please, if you have a function example can you send me it?

    I have tried to run the examples included in the LCDK and it has been impossible

  • Hello Alfonso.

    İt has been a long time since the last time I interested in LCDK. But I remember clearly that the problem was not in the source codes.

    The problem I have was about edma drivers. I solve the problem by selecting correct packages. "edma3_lld_xx_xx_xx_xx\packages\ti\sdo\edma3\drv" is the path where the drivers exits, not "edma3_lld_xx_xx_xx_xx\packages\ti\sdo\edma3\rm". If you manage to adjust correct paths CCS, I think you can make it work McBSP.

    If you have further questions do not hesitate to ask.

  • Thank you very much, I will retry