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

Error while adding twi drivers in code for sdk11

Hello, I am using nrf51 and sdk11. I am trying to add twi drivers to code. I have added and also added path for the twi drivers. But I am getting error as "............\components\drivers_nrf\twi_master\nrf_drv_twi.c(38): error: #35: #error directive: "Wrong configuration." Can anyone help me to solve this? I have successfully added twi drivers to sdk12 project by adding few lines in sdk.config files but in sdk11 I cant find sdk.cofig files. So how can I add drivers in sdk11? Thanks, Shailav

Parents
  • Hello shailav619

    After compiling your project in keil, click the + sign next to main.c in the project tree on the left side of the screen. Find the file nrf_drv_config.h. In that file find TWI0_ENABLED and set the TWI#_ENABLED to 1 for the instances you need.

    Best regards

    Jørn Frøysa

Reply
  • Hello shailav619

    After compiling your project in keil, click the + sign next to main.c in the project tree on the left side of the screen. Find the file nrf_drv_config.h. In that file find TWI0_ENABLED and set the TWI#_ENABLED to 1 for the instances you need.

    Best regards

    Jørn Frøysa

Children
Related