This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52 nrf_drv_spi_transfer event callback not being called?

Hi everyone,

I'm integrating the spi_master_with_spi_slave example into our firmware; however, I'm not seeing the event callback I registered being called. I'm verifying via a Saleae Logic Analyzer that data is coming out of the MOSI line.

I'm currently setting up breakpoints (in Keil) at 2 points: 1) the call to nrf_drv_spi_transfer and 2) the event callback itself. I'm able to break at the transfer, but not within the event handler.

Things I've tried:

  1. Turned off optimizations

  2. Modifying a volatile variable within the handler

  3. implementing a while(1) within the handler

None of these tests pointed to the handler being called.

Any thoughts on the matter?

Thank you,

Aadu