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.

McASP driver timeouts when setting XSRCLR bit in GBLCTL register

Hi,

I am using the McASP PSP drivers version 3.0.1.00 together with SYS/BIOS 6.33.1.25.

The driver gets a timeout in function mcaspBitSetGblXCtl() where the transmit serializer is trying to go out of reset. The function tries to set bit XSRCLR in the GBLCTL register, but the register do not want to change!!!

Any help would be very much appreciated, I have been struggling with this problem for a couple of weeks now.

Thank you very much.

Jan.

  • Hi Jan,

                We understand that you are using the McASP driver code in your custom code but while integrating we have some pointers which you may need to look upon and validate.

                Kindly take a look at the TMS320c674x McASP userguide(SPRUFM1- http://www.ti.com/lit/ug/sprufm1/sprufm1.pdf) which talks about the Register bit Restrictions (Appendix A) of the GBLCTL and ensure whether your code flow is as directed in this guide.

    Regards,

    Iyshwarya

    If this answers your question, please click the Verify Answer button below. If not, please reply back with more information.

  • Hi Lyshwarya,

    Thank you for the reply. I have now compiled the standard biospsp_03_00_01_00\drivers\examples\evm6748\audio\src project and ran it in debug mode in CCS v5 on the LCDK6748 kit, but the problem still remains.

    So I am using the standard TI example code without changing anything. The only difference is that I had to create a CCS project file to compile it, so there could be something wrong there but it compiles and runs fine.

    When it times out the registers are as follows:

    The output on the console is as follows:

    [C674X_0] EDMA driver initialization PASS.
    [C674X_0] Assertion failed, (0 != timeout), file mcasp/src/Mcasp.c, line 3886

    So the Tx serializer do not want to go out of reset. Has anyone tried to run the biospsp audio sample on the LCDK6748 kit before?

    Thank you very much.

    Jan.

  • Hi Jan,

                    As per the C6748_BIOSPSP Release notes(Section 7: EVM Validation Status) the McASP Driver module has been validated for LCDK too. So, it should work. However ,we’ll work on your error and get back to you at the earliest.

    Regards,

    Iyshwarya

    If this answers your question, please click the Verify Answer button below. If not, please reply back with more information.

  • Hi Iyshwarya,

    I got it working now!

    There was a hardware problem where the word clock did not reach the DSP and I also now load the LCDK6748 GEL file on startup. So those two things solved.

    Keep well.

    Jan.