Skip to main content
Visitor II
October 4, 2025
Question

No clock signal on SPI1_SCK

  • October 4, 2025
  • 2 replies
  • 181 views

After configuring SPI1 in CubeMX and calling HAL_SPI_Transmit, I get a signal on the SPI1_MOSI line, but no signal on the SPI1_CK. I have confirmed that the pin is working correctly with other code and tried different clock speeds to see if that was the problem. Any ideas on why a clock signal is not being sent over SPI1_CK?

2 replies

AScha.3
Super User
October 4, 2025

>Any ideas on why a clock signal is not being sent over SPI1_CK?

You do something wrong in your program.

 

(Same level of information.

- which cpu ?

- ioc / pin setting ?

- program /source ?

)

"If you feel a post has answered your question, please click ""Accept as Solution""."
TDK
Super User
October 6, 2025

If MOSI has a signal, then SCK has a signal internally. If you're not picking it up on a scope, either you're measuring the wrong thing or the pin you're measuring isn't configured as SCK.

"If you feel a post has answered your question, please click ""Accept as Solution""."