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

SPI Example Symbol cannot be resolved

I'm trying to set up SPI example from SDK12.3, but I get error at line 53 of main.c

static const nrf_drv_spi_t spi = NRF_DRV_SPI_INSTANCE(SPI_INSTANCE);

It's saying

Symbol "NRF_SPI0" could not be resolved

Symbol "SPI0_TWI0_IRQn" could not be resolved

What else should I add to make the example run?

Another question I always want to ask. Every time I run SDK example for the first time, I always get "could not be resolved" error. I have to spend lot of time searching online or asking here to find the answer that should have been documented with the example. It is really frustrating experience. Is there any complete list to show any extra file I need to include or any config I need to enable for each example?

Parents
  • Have you modified anything in the example? I'm not able to reproduce this issue with the unmodified SPI example. All SDK examples should compile without modifications. If you are seeing "could not be resolved" errors, you should try to redownload and unzip a fresh copy of the SDK. When adding new drivers/libraries to existing examples, you might see such errors. You then need to include the correct source file, or enable the module in sdk_config.h.

Reply
  • Have you modified anything in the example? I'm not able to reproduce this issue with the unmodified SPI example. All SDK examples should compile without modifications. If you are seeing "could not be resolved" errors, you should try to redownload and unzip a fresh copy of the SDK. When adding new drivers/libraries to existing examples, you might see such errors. You then need to include the correct source file, or enable the module in sdk_config.h.

Children
No Data
Related