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.

F28M35H52C: cannot get McBSP in SPI mode working

Part Number: F28M35H52C

I have an SPI bus with several devices on it. The devices require a mixture of  8,16,24 & 32 bit long data commands. I am using the McBSP and setting the word length as required such that the MsBSP will toggle the chip select (/SPISTE) correctly at the beginning and end of the command.

I am trying the example "mcbsp_spi_loopback" on the ControlCard development system to build my application. I have configured the GPIO in the  F28M35x_Mcbsp.c file and turned off the loopback in the

mcbsp_init_spi_dlb() initialization routine. When scoping the GPIO pins I get nothing while running the program (pins are all high).

Has anybody used the McBSP successfully with SPI? What needs to be done in order to get McBSP to transmit/receive SPI data?

  • The mcbsp_init_spi_dlb() does not configure the GPIOs for the MCBSP. This example actually does not configure the GPIOs at all. when the McBSP is in Digital Loopback mode, the GPIOs are not needed as the signals are routed internally.

    You will need to set up the GPIO muxing in order to see the signals toggle.

    Regards,
    Mark