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

Is there a sample code for nRF52 SPI master without Soft device ?

I am trying to develop a simple SPI master for a custom nRF52832 uC, but I can't find anny sort of sample codes that don't use Soft devices for this task. I need the code to be simple, so no need for SD based codes. Is it possible or is the nordic SPI driver only usable through SD ?

Parents
  • In SDK 11 there are two examples, SPIS and SPI, located in "SDK_11_folder\examples\peripheral". These examples show how to use SPI slave and master using the SPI(S) drivers without using the SD. It is as RK says though, it doesn't really matter if you use the SD or not other than that things might be a little clearer without thousands of lines of BLE stuff in the way.

  • Hello Martrin,

    I tried to initialize and send packets using the SPIM0 peripheral using the nrf_spi & the nrf_spim0 environment config files and following the specification described in the product specification online, but with all my efforts I am unable to disable the other peripherals shared with the SPIM0 like the TWIM0, SPIS0 ... etc

    How can I disable the other shared peripherals ? I tried setting their enable to 0 but that didn't work

Reply
  • Hello Martrin,

    I tried to initialize and send packets using the SPIM0 peripheral using the nrf_spi & the nrf_spim0 environment config files and following the specification described in the product specification online, but with all my efforts I am unable to disable the other peripherals shared with the SPIM0 like the TWIM0, SPIS0 ... etc

    How can I disable the other shared peripherals ? I tried setting their enable to 0 but that didn't work

Children
Related