AnsweredAssumed Answered

Cannot enter EXAMPLE_DSPI_SLAVE_IRQHandler when debugging dspi_interrupt example

Question asked by Kevin Yu on Apr 4, 2018
Latest reply on Apr 10, 2018 by Kevin Yu

Kinetis K64 dspi_interrupt example was compiled and debugged.

 

#define EXAMPLE_DSPI_MASTER_IRQHandler SPI0_IRQHandler

#define EXAMPLE_DSPI_SLAVE_IRQHandler SPI1_IRQHandler

 

One break point was set to EXAMPLE_DSPI_MASTER_IRQHandler.

The other was set to EXAMPLE_DSPI_SLAVE_IRQHandler

The physical pins are wired as example required:

DSPI_master -- DSPI_slave
CLK -- CLK
PCS -- PCS
SOUT -- SIN
SIN -- SOUT

 

EXAMPLE_DSPI_MASTER_IRQHandler break point was entered many times.

But EXAMPLE_DSPI_SLAVE_IRQHandler NEVER entered. Therefore the data tx and rx cannot succeed.

 

Why the slave interrupt won't work. How to debug this?

Outcomes