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

Having issues adding drivers to a new project

I am trying to add the spi and twi drivers to the ble_app_template project, but I keep running into errors. I am using the SDK 12.2.0. How are we supposed to go about adding all of the files we need to get these drivers working on a new project? I have tried adding it through the software components management tool and by just adding the necessary files to a new group. I have also seen both methods used in different example projects. Sorry if there is already a tutorial on how to do this.

Parents
  • Your most likely cause of errors is that you have not enabled SPI and TWI in sdk_config.h

    Unless you enable those modules in that file, the functions won't get compiled and you will get loads of errors.

    I assume you are using an IDE like Keil, or IAR in which case it will handle adding the spi and twi c files to the build list if you added them to the project

    If you are using gcc / makefile, you'd need to manually add those files to the makefile

Reply
  • Your most likely cause of errors is that you have not enabled SPI and TWI in sdk_config.h

    Unless you enable those modules in that file, the functions won't get compiled and you will get loads of errors.

    I assume you are using an IDE like Keil, or IAR in which case it will handle adding the spi and twi c files to the build list if you added them to the project

    If you are using gcc / makefile, you'd need to manually add those files to the makefile

Children
Related