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.

TMS320C6748 McBSP Libraries

Other Parts Discussed in Thread: TMS320C6748, CCSTUDIO

I am trying to use the McBSP on the TMS320C6748 as shown in App Note SPRA595 (TMS320C6000 McBSP: I2S Interface).

However, I have been unable to get CCStudio (v5.5.0.00077) to find the header files (mcbsp.h, dma.h, intr.h, etc).  I found a document that covered how to use the MS320C6x Peripheral Library which talked about building the library before being able to reference it in the linker.

My question is which library are these found in - is this the SYS/BIOS SDK here:

http://www.ti.com/tool/biossw-c6748

Or is there another library I should be downloading to access these features?

Best Regards,


Jason

  • Jason,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages. Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics.

    SPRA595 is an example of great app notes that our factory apps team has generated over the years. And sometimes there is a little hand-waving over files that might be missing. For some app notes, we supplied a zip file with examples, but I could not find one for this.

    Since you are using the C6748, the McASP is also available for I2S communications. The User Guide for the McASP talks about the I2S mode a lot.

    In the C6748's McBSP User Guide, you have to search for IIS. The McBSP is older than the McASP, so the McASP uses more up-to-date "slang" for the same bus. Go figure.

    A quick look through both UGs leads me to think the McASP UG is more helpful with telling you what needs to be done even though both have the same capability for Bit Clock, Frame Sync, and Tx & Rx data lines. The same configuration can be done to set the Frame Sync width to half of the Frame period so you get the Left/Right signal to match up for I2S.

    SPRA595 was written for the original C6000 devices like the C6201. The C6748 McBSP may have a few new features in it, but the same basic functionality is still there. But the C6748 EDMA3 is significantly different from the DMA in the C6201 and the interrupt architecture has also changed. So those two files for the example code would not lead you to good success. The mcbsp.h file might be helpful, so I have attached one I found in an old PSP drivers release. It might not be what was called for in the app note, but it has a bunch of struct typedefs in case that is what you need.

    To get to the point I wanted to make: I do not believe you want to use the example code in SPRA595 other than to explain some of the concepts discussed in the app note. You will be better off finding a C6748 McBSP example program based on drivers for the C6748 in the BIOS SDK. If you can find one that uses the McBSP through the EDMA3 and generates interrupts, then you will only have to change the TDM setting to 2 slots and the FWID Frame Sync Width to half the Frame Period.

    Let me know what you are able to find in the SDK and we can start from there. I do not know my way around there very well, being more of a hardware and bare-metal programmer. I can help you with questions on the McBSP and the EDMA3 and the INTC interrupt controller, even if I do not have example code to hand you.

    Regards,
    RandyP

    Mcbsp.h