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

NRFX_TWIM error

Hello,

I am migrating from nrf_drv_twi.. to nrfx_twim.. I am getting the instance error like

Error[Pe020]: identifier "NRFX_TWIM0_INST_IDX" is undefined .. in main.c

I have set in the sdk_config.h file the following definitions but still I am getting the error

#ifndef TWI_ENABLED
#define TWI_ENABLED 1
#endif

#ifndef TWI0_ENABLED
#define TWI0_ENABLED 1
#endif

#ifndef TWI1_ENABLED
#define TWI1_ENABLED 0
#endif

#ifndef NRFX_TWI_ENABLED
#define NRFX_TWI_ENABLED 1
#endif

#ifndef NRFX_TWI0_ENABLED
#define NRFX_TWI0_ENABLED 1
#endif

#ifndef NRFX_TWI1_ENABLED
#define NRFX_TWI1_ENABLED 0
#endif

#ifndef NRFX_TWIM_ENABLED
#define NRFX_TWIM_ENABLED 1
#endif

#ifndef NRFX_TWIM0_ENABLED
#define NRFX_TWIM0_ENABLED 1
#endif

#ifndef NRFX_TWIM1_ENABLED
#define NRFX_TWIM1_ENABLED 0
#endif

pls help how i resolve this..

Parents Reply Children
No Data
Related