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

using SPI with PPI in zephyr

HI,

we are using the nrf52840 in our new poroduct and we are running the zephyr/ncs RTOS on it.

for real time reasons I need to read from a SPI bus upon a GPIO trigger and in the context of the SPI done interrupt save the read data to a buffer.

I was able to do this on another product that we have without zephyr using the nrf SDK on a baremetal application.

the problem with zephyr is that the SPI HW abstraction controls the event handler from SPIM and I don't have access to it and also even if I want to hack this by directly accessing it with the nrfx spim driver I don;t know how this will work with the zephyr power manager!

if someone has an Idea how to best do this in zephyr/ncs I would appreciate the help.

Thanks,

Samer.