2022-02-12 05:40 PM
I can monitor the SAI2 signals directly from the audio codec pins. The MCLK, SCLK, and Fs signals appear correctly based on my configuration but when I connect my oscilloscope to the GPIO header pins (CN2), the lines all appear low even though they are changing for the codec. This doesn't happen with the I2C1 pins connected to the audio codec. I can monitor those just fine from their respective GPIO header pins, which leads me to believe it isn't an issue with the pins being configured as alternate function.
Is there a reason or solution for this?
Solved! Go to Solution.
2022-02-25 12:25 PM
Hello @ASnow.1 ,
I don't know if you still have the problem.
For having the signals related to SAI2 on the GPIO expansion (CN2), you have to:
From what I understood, you are doing a baremetal project, so you have to configure the GPIOs PF11, PI6, PI7 and PI8 directly in the code.
But I can see in your previous post: https://community.st.com/s/question/0D53W00001MYONQSA5/stm32mp157fdk2-sai-receive-fifo-not-filling-block-a-configured-as-mastertx-block-b-configured-as-slaverx
That you already did that.
Second point and I think this is your problem.
These lines are not connected by default on the DK2.
If you take a look at the Schematics of the 157F-DK2 (MB1272 v1.0):
you can see in page 3 in the Audio part, that there are 4 jumper SB3, SB1, 2, 4 to have the actual connection.
And if you look further in the page 3, GPIO & ARDUINO part you can see:
These lines with "DNF" means that they are not connected by default on the board.
On the DK2 board, the SB1/2/3 are used by default by the internal Codec as explained in the Discovery board user manual (UM2534 rev1.0) page 13:
For being able to get your SAI2 signals on the GPIO expansion (CN2), you have to put 0 ohm resistors on SB1, SB2, SB3 and SB4. They are visible at the back of the board near the Arduino connector CN16 and you can see that they are not connected.
Hope it helps,
Regards,
Kevin
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'
2022-02-25 12:25 PM
Hello @ASnow.1 ,
I don't know if you still have the problem.
For having the signals related to SAI2 on the GPIO expansion (CN2), you have to:
From what I understood, you are doing a baremetal project, so you have to configure the GPIOs PF11, PI6, PI7 and PI8 directly in the code.
But I can see in your previous post: https://community.st.com/s/question/0D53W00001MYONQSA5/stm32mp157fdk2-sai-receive-fifo-not-filling-block-a-configured-as-mastertx-block-b-configured-as-slaverx
That you already did that.
Second point and I think this is your problem.
These lines are not connected by default on the DK2.
If you take a look at the Schematics of the 157F-DK2 (MB1272 v1.0):
you can see in page 3 in the Audio part, that there are 4 jumper SB3, SB1, 2, 4 to have the actual connection.
And if you look further in the page 3, GPIO & ARDUINO part you can see:
These lines with "DNF" means that they are not connected by default on the board.
On the DK2 board, the SB1/2/3 are used by default by the internal Codec as explained in the Discovery board user manual (UM2534 rev1.0) page 13:
For being able to get your SAI2 signals on the GPIO expansion (CN2), you have to put 0 ohm resistors on SB1, SB2, SB3 and SB4. They are visible at the back of the board near the Arduino connector CN16 and you can see that they are not connected.
Hope it helps,
Regards,
Kevin
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'