This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

Linking error with spi master

Hello,

I use the arm-none-eabi-toolchain and have a problem when I am linking.
When I make my project, I get the next errors

path/to/spi_handler.c:180: undefined reference to `nrf_drv_spi_transfer`
path/to/spi_handler.c:192: undefined reference to `nrf_drv_spi_uninit`
path/to/spi/handler.c:176: undefined reference to `nrf_drv_spi_init`
collect2: error: ld returned 1 exit status

Before I get those errors, I see Compiling file: nrf_drv_spi.c passing by and the the include path is added to the INC_FOLDERS. I have the #include's (and #define's) within spi_handler.c

#include "nrf_peripherals.h"
#include "nrf_drv_spi.h"
#include "nrf_spi.h"
#include "nrf_spim.h"
#define   SPI0_ENABLED        1
#define   SPI0_USE_EASY_DMA   1
#define   SPI_INSTANCE        0

There must be something else that I am forgetting, but I don't know what. There is a similar question, but I already checked the proposed things. Can anyone help me?

Parents Reply Children
No Data
Related