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

NRFX_SPI2_ENABLED or NRFX_SPIM2_ENABLED from SDK Config File

Hello,

I'd like to enable an instance of  SPIM2 master (base address: 40023000) in SDK 17.0.2  for SPI operations. In sdk_config.h, there are two options, NRFX_SPIM2_ENABLED and NRFX_SPI2_ENABLED. Which one do I use? Also, to further complicate things, there's a NRFX_SPIS2_ENABLED flag, which is what I don't what. 

This is for the NRF52840 chip.

Parents Reply
  • I want to use the NRFX driver and not the legacy one. In sdk_config.h, I made sure to set NRFX_SPIM2_ENABLED, and removed the legacy flags entirely. After having looked through the nrfx_spim example, I performed, what I believe, to be the necessary replacements in order to only use SPIM. 

    I get the following linker error when I build: 

    undefined reference to `nrfx_spim_init'. 

    I'm not sure exactly what's happening here except that the symbol nrfx_spim_init()
    is not recognized. Is apply_old_config.h still undefining SPIM items after I've updated
    sdk_config.h accordingly? I'm certainly missing something here.

    Thanks!

Children
Related