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

why i am getting error in twi instance 0

hi...

i had merged the two programs , twi sensor and uart in segger 15.2 version . i am using nrf52840  i am getting the error in twi instance 0 . i couldn't find what error it is ? please can one tell me 

 see the pic below 

  • If the examples are using the legacy driver API, i.e. nrf_drv_twi_ etc, then you need to set the following definitions

    // <e> TWI_ENABLED - nrf_drv_twi - TWI/TWIM peripheral driver - legacy layer
    //==========================================================
    #ifndef TWI_ENABLED
    #define TWI_ENABLED 0
    #endif 
    
    // <e> TWI0_ENABLED - Enable TWI0 instance
    //==========================================================
    #ifndef TWI0_ENABLED
    #define TWI0_ENABLED 0
    #endif

    and set the NRFX_TWI_ENABLED and NRFX_TWI0_ENABLED to 0.

    Best regards

    Bjørn 

Related