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

Difference between nrf_drv_spi_transfer() and nrfx_spim_xfer()?

Hi,

My goal is to use a timer to trigger SPI transactions and the spi_event_handler() to trigger bluetooth transfers. In order to make it as fast as possible, I would like to run the SPI clk at least 4MHz (if not 8MHz - which I think is possible, right?) and also use easyDMA. Based off this thread: Thread_link.

It seems like using the peripheral/spi example should be more than enough to handle all that. If that's the case, what benefit does nrf_spi provide? Is on deprecated? If so... which one? Also is there a difference between SPI0, 1, 2, and 4?

Thanks so much!

Kindest regards,

Ryan

  • Hey Karl,

    I am sorry for any confusion this might have caused you.

    It's no problem at all! I'm really glad you mentioned it otherwise I totally would have missed this!

    Which example exactly are you referring to when you say nrfx_spim3 example?

    Sorry, I should have been more precise. The nrfx_spim example project (which happens to use SPIM3) is what I was referring to. This is different from the spi and spis example projects.


    The workaround described in each errata is tested and verified to negate the issue, so as long as they are present (either in your own implementation or in the driver) you can use the peripheral as you would like without concern! :) 

    Sounds good! If I run into any issues I'll post another ticket, but in the meantime, all my questions have been answered! Thank you so much for your time and help, Karl!

    Kindest regards,

    Ryan

  • Hello again Ryan,

    Sounds good! If I run into any issues I'll post another ticket, but in the meantime, all my questions have been answered! Thank you so much for your time and help, Karl!

    Great! I am happy to hear that! :) 

    Sorry, I should have been more precise. The nrfx_spim example project (which happens to use SPIM3) is what I was referring to. This is different from the spi and spis example projects.

    Oh, right, thank you for clarifying this.

    Please do not hesitate to open another ticket if you should encounter any other issues or questions in the future.

    Good luck with your development!

    Best regards,
    Karl

Related