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

Problem of communication via SPI between nRF5340dk and ADS1298

Hello everyone,


I'm working on a project right now and I want to use the ADS1298 analog to digital converter and configure it with NRF5340dk. Being a beginner I looked for libraries already developed for that, I didn't find any! and I found a similar example but for the NRF52(GitHub - imcort/NRF52832_ADS1298: ADS1298 EMG Acquisition Device). I said to myself that maybe I can take this library ADS1298 already ready for the NRF52, modify it and adapt it for the NRF5340dk to make my application work, except that I realize that the drivers SPI, PPI, gpiote, queue ... are not the same. I use nrfx_spim, nrfx_spis, nrfx_gpiote and I can't find it for ppi and queue and it blocks me.

Do you think I'm on the right track?
Do you have any examples, solutions or tips to give me?

I thank you in advance ;)

Parents Reply
  • Indeed, I see that the functions k_queue_append and k_queue_remove do exactly the same thing as nrf_queue_push and nrf_queue_pop respectively. that's what I need! It's great!

    To conclude:
    1- The nRF5340 has a DPPI device and not PPI like the older nRF51/nRF52 series circuits. There is a separate driver for DPPI in nrfx, you can refer to this Zephyr example: github.com/.../main.c.
    2- in karnel.h you can find all the functions equivalent to those defined in nrf_queue.h.

    thank you very much, for your support.

Children
No Data
Related