cancel
Showing results for 
Search instead for 
Did you mean: 

Help to use SPI on NUCLEO-G491

KatsuMat
Visitor

Hello,
I am not receiving SPI interrupt on the NUCLEO-G491, and I would like some support.
Here is the source code project.

https://github.com/katsumat/STM32CubeIDE/tree/main/workspace_1.16.1/SPI

 

Specifically, I would like to perform the following actions:

 

single line name

KatsuMat_0-1734471326715.png

 

SPI connection.

KatsuMat_1-1734470330941.png

 

Here is the waveform for SPI1

 
 
 

KatsuMat_6-1734470438617.png

I have set a breakpoint here at /* USER CODE BEGIN 3 */, but it is not being hit.
KatsuMat_7-1734470670023.png

I have set a breakpoint at SPI2_IRQHandler, but it is not being hit. Could you advise me on why the interrupt is not occurring?

2 REPLIES 2
Karl Yamashita
Lead III

You have your pins swapped. MISO (Serial Out) and MOSI (Serial In)

PA6 connects to PB15 and PA7 connects to PB14

 

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.
TDK
Guru

PF1 is not connected to the CN7 header by default.

TDK_0-1734486680566.png

Must close SB24 and open SB25.

TDK_1-1734486776055.png

 

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