2024-05-26 05:20 PM
I have a weird one. Using an STM32H723 Nucleo board. The MOSI line for SPI2 is giving me trouble. The edges are slow (see picture). All I am doing for this test is transmitting on SPI2 with nothing attached but the scope. I am using STM32CubeIDE and the MX config tool. What could be causing this?
Solved! Go to Solution.
2024-05-28 01:41 PM
So on lqfp144 its not PC3, but PC3_C .
->
So you are on an analog mux connected pin, about 400 ohms internal resistance.
You cannot change this ... for hi speed, use another pin. NOT an crazy analog connected.
(I didnt make this design - so dont blame me. I got similar experience , so i know . )
2024-05-26 11:03 PM
Hi Theo,
Can you provide more details on your project settings? Which mood is the SPI2 in, polling, IT or DMA? What is the SPI SCK?
Nick
2024-05-27 01:37 AM
Have you tried changing the maximum output speed setting of the pins you use for SPI?
2024-05-27 01:54 AM - edited 2024-05-27 01:55 AM
Signal looks like : too much capacitive load or speed to low (setting!).
So set probe at 10:1 and port speed medium (or hi, depends on your SPI clk speed).
Always set speed to lowest possible (to avoid excessive ringing), but high enough for the desired speed.
see ds for possible/useful speed settings.
medium:
2024-05-27 07:48 AM
SPI2 is in polling mode, clock is 1.07MBits/sec
2024-05-27 07:51 AM
I set the speeds to very high, no change to the sigs. There is no loading except for the scope probe which is 10:1. When I run the same test on an F743 Nucleo the sigs look great.
2024-05-27 08:14 AM
Which pin we talk about ?
Did you check, its not used on the nucleo board ?
2024-05-28 12:58 PM
The pin in question is PC3 and it is not used on the nucleo board.
2024-05-28 01:41 PM
So on lqfp144 its not PC3, but PC3_C .
->
So you are on an analog mux connected pin, about 400 ohms internal resistance.
You cannot change this ... for hi speed, use another pin. NOT an crazy analog connected.
(I didnt make this design - so dont blame me. I got similar experience , so i know . )
2024-05-30 06:29 AM
Thanks! This was the issue. I moved the line to an alternate pin and it works fine. Thankfully the new pin is unused on my board/