Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nrfx_spim example does not call spim_event_handler

Hello,

I'm trying to get SPIM working with a nRF52840 DK, PCA10056.

I downloaded the nRF5 SDK 17.1.0 and I am able to build example projects, and I verified that I can flash them to the board correctly using the blinky example.

However, I ran into an issue with the nrfx_spim example. It builds without error (after removing the SEGGER_RTT_Syscalls_SES.c file from the build, which is apparently necessary) and can be flashed to the board. The program initalizes and enters the while(1) loop, and then hangs indefinitely on while (!spi_xfer_done). spim_event_handler is never entered. Using an oscilloscope, it doesn't seem like SCK or MOSI are ever changing. SS goes high after nrfx_spim_init and never changes afterwards.

I have not changed the example code at all, and it is supposed to work with my board. I found someone with a similar issue, but it went unanswered: https://devzone.nordicsemi.com/f/nordic-q-a/58866/sdk-15-0-spim-example-issue-on-nrf52840

Parents Reply Children
No Data
Related