2025-01-15 02:41 PM
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 :
2025-01-15 02:44 PM
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?