cancel
Showing results for 
Search instead for 
Did you mean: 

No clock signal on SPI1_SCK

benrapps
Associate

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 2
AScha.3
Super User

>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

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".