cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H523CC: SPI2_IRQHandler is never called

HMüll.4
Associate III

Hi,

I have a CubeMX-generated code, where I want to receive data from the SPI. Unfortunately, the SPI2 ISR SPI2_IRQHandler() is never called. What I have checked/tried:

  • hardware signals all are there and at the expected pins
  • initialisation is done (it is CubeMX-generated code, so I do not expect any issues here)
  • tried changing polarity of NSS
  • interrupts are enabled via __enable_irq();

Anything else what could be missing/what should be checked?

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
HMüll.4
Associate III

OK, found it - the call to HAL_SPI_Receive_IT(), then the IRQ of course is never called :D

 

View solution in original post

2 REPLIES 2
TDK
Super User

You could show your code.

Is the STM32H5 the master or slave?

> hardware signals all are there and at the expected pins

Can you show these?

If you feel a post has answered your question, please click "Accept as Solution".
HMüll.4
Associate III

OK, found it - the call to HAL_SPI_Receive_IT(), then the IRQ of course is never called :D