cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H573 SPI clock not working

A_Bit_More
Associate

I am following a basic example from stm32: Getting started with SPI - stm32mcu
I follow the steps for setting up SPI master with polling (Blocking mode). I did make sure to select the board STM32H573 DK instead of the one listed in the example.
I initially used SPI5, however it wouldn’t transmit anything and its clock was always high.
Then I switched to using SPI2, however it was always stuck low.

Any insight would be appreciated.

I connected a logic analyzer and here is an image of this :
 

A_Bit_More_0-1736980651955.png

 



1 REPLY 1

Are you sure those pins aren't occupied by something else on the board?

Check with the User Manual and/or Schematics

Can you toggle the pins when they're just in GPIO output mode?