SPI support for bare metal (version 2.0.99?)

Hello,

I would like to use spi to connect to a ADC on a nrf54l15dk at high speed using DMA.

I want to use nrfconnect bare metal, but cannot find a starting example.

In  https://github.com/nrfconnect/sdk-nrf-bm there are a few spi-examples.

How can I use them? It seems that this is part of a version v2.0.99.

So, how can I use these examples starting from bm version v2.0.1? That is the only option I have in vscode.

    Thanks in advance, Sietse

Parents
  • Hie Sieste,

    Can you please confirm if I am understanding you correctly - You want to use SPI to connect to "external" ADC at high speed using DMA.
    If you need high speed, we recommend using SPIM00 and GPIOs on P2. 
    It is possible to use the nrfX peripeheral drivers to run in NCS-BM. You can refer to the one in main(2.0.99) and use it as a guide on how to add the driver. 

    Use relevant nrfx interface header in your application source file.

    #include <nrfx_spim.h>

    Or for direct register (HAL) access, e.g. GPIO:

    #include <hal/nrf_gpio.h>
    NCS-BM also provides the SPI Transaction Manager library (bm_spi_mngr) to manage a FIFO queue of transactions. Please let us know if you you need more assistance with your issue.

    BR

    Pallavi

Reply
  • Hie Sieste,

    Can you please confirm if I am understanding you correctly - You want to use SPI to connect to "external" ADC at high speed using DMA.
    If you need high speed, we recommend using SPIM00 and GPIOs on P2. 
    It is possible to use the nrfX peripeheral drivers to run in NCS-BM. You can refer to the one in main(2.0.99) and use it as a guide on how to add the driver. 

    Use relevant nrfx interface header in your application source file.

    #include <nrfx_spim.h>

    Or for direct register (HAL) access, e.g. GPIO:

    #include <hal/nrf_gpio.h>
    NCS-BM also provides the SPI Transaction Manager library (bm_spi_mngr) to manage a FIFO queue of transactions. Please let us know if you you need more assistance with your issue.

    BR

    Pallavi

Children
Related