SPI2 MOSI line has weak output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-26 5: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.
- Labels:
-
STM32H7 series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-28 1: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 . )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-27 1:37 AM
Have you tried changing the maximum output speed setting of the pins you use for SPI?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-27 1:54 AM - edited ‎2024-05-27 1: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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-27 7:48 AM
SPI2 is in polling mode, clock is 1.07MBits/sec
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-27 7: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-27 8:14 AM
Which pin we talk about ?
Did you check, its not used on the nucleo board ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-28 12:58 PM
The pin in question is PC3 and it is not used on the nucleo board.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-28 1: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 . )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-30 6: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/
