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.

TMS320C5517: McSPI initialization

Part Number: TMS320C5517

Hello E2E.

Short question.

After initializing the McSPI module by un-gating the clock in PCGCR, the debugger in CCS acts as if the module is not on.

I cannot access any of the McSPI module registers through the debugger, and the code I've written for the module seems to not be doing anything.

Any ideas?

Best regards.

  • Hi Christoffer,

    Refer to TRM section 1.5.3.2.2 Peripheral Clock Stop Request/Acknowledge Register (CLKSTOP1 and CLKSTOP2) [1C3Ah and 1C3Bh]

    "To enable the clock to the EMIF, UHPI, McBSP, McSPI, USB, or UART, first enable the clock to the peripheral through PCGCR1 or PCGCR2, then clear the corresponding clock stop request bit in the CLKSTOP register."

    I recommend starting with the CSL McSPI examples, which do this step for all McSPI examples: http://www.ti.com/tool/sprc133 

    Hope this helps,
    Mark

  • Well, that's kind of embarrassing. I can't believe I forgot about that.

    Sorry for bothering you with something this simple. But thank you very much for your quick answer!

    Best regards