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

error: 'NRF_DRV_TWI_INSTANCE_0' undeclared here

I'm trying to enable TWI in the eddystone example based on this article but I get the following compilation error:

nrfx/legacy/nrf_drv_twi.h:120:37: error: 'NRF_DRV_TWI_INSTANCE_0' undeclared here (not in a function)
main.c

sdk_config.h

Added nrf_drv_twi.c to the project. 

I can compile the twi_sensor project so the issue must be in the configs.
Should I add anything else into the sdk_config.h to make the TWI work?