Skip to main content
mdeneen
Associate III
November 12, 2008
Question

SPI2 in I2S mode troubles

  • November 12, 2008
  • 3 replies
  • 758 views
Posted on November 12, 2008 at 18:03

SPI2 in I2S mode troubles

    This topic has been closed for replies.

    3 replies

    mdeneen
    mdeneenAuthor
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:50

    I am trying to use SPI2 in I2S mode on a STM32F103RE (this one has I2S) and I am having some trouble. I believe I have all of the clocks configured correctly, as well as the peripheral configuration. In a nutshell, here's what happens:

    I write a byte to SPI2_DR. The TXE flag gets cleared, but BSY never gets set and TXE never gets set again. It feels like nothing is getting clocked out.

    In my configuration, I am operating as the I2S master, and the master clock is enabled. Any ideas? I just want to hear a chirp. :)

    mdeneen
    mdeneenAuthor
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:50

    In case anyone was curious, I resolved my issue. MCLK was not configured properly. I now have WAV files playing using a TI TLV320AIC23B codec. Yippie! :)

    marcin_kasz
    Associate
    December 22, 2011
    Posted on December 22, 2011 at 14:09

    mdeneen,

    Please tell what you have changed.

    Regards