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

SPI problem with ble_app_beacon example nrf52832

Hi everyone!

I want to implement SPI with "ble_app_beacon" example with the following hw/sw.

DK : nrf52832

SDK : nRF5_SDK_14.2.0_17b948a

IDE : Segger Studio 3.34

OS : Windows10

I have tested both examples standalone and both are working fine. But when I add SPI code into "ble_app_beacon" code, I get the following errors. 

undefined reference to `nrf_drv_spi_init'

undefined reference to `nrf_drv_spi_transfer'

 All include files which are in the SPI example are included in ble_app_beacon example. I have notice that all code of  "nrf_spi_drv.c" file are grayed out. looks like code is already included. Can anyone please help me to resolve these problem.

SPI instance 0, priority 7

Thanks in advance

--vijay

Parents
  • Now its working. There was need of few changes in sdk_config.h file.

    Right now I am using SPI0. if I want to switch to SPI1 then what are the parameters are needed to change?

    SPI frequency parameters are given in two files "nrf_spi.h" and "nrf_drv_spi.h". Configured SPI is working with the parameters available in "nrf_spi.h". so what is the use of the SPI frequency parameter which has been given in "nrf_drv_spi.h"? 

    Thanks in advance,

    BR,

    -vijay

Reply
  • Now its working. There was need of few changes in sdk_config.h file.

    Right now I am using SPI0. if I want to switch to SPI1 then what are the parameters are needed to change?

    SPI frequency parameters are given in two files "nrf_spi.h" and "nrf_drv_spi.h". Configured SPI is working with the parameters available in "nrf_spi.h". so what is the use of the SPI frequency parameter which has been given in "nrf_drv_spi.h"? 

    Thanks in advance,

    BR,

    -vijay

Children
No Data
Related