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

Linking MPU6050 sensor with BLE UART

Hi, I am trying to interface MPU^)%) sensor with NRF52832. with help of BLE UART. i will get the resultant data on BLE APP. but here i got some error is this the linking error or ?

Parents
  • Hi Sunil.

    Have you enabled NRFX_TWI_ENABLED in sdk_config.h?

    Like this:

    - Andreas

  • Hi Andreas

    I have enabled that one

    / <e> NRFX_TWI_ENABLED - nrfx_twi - TWI peripheral driver
    //==========================================================
    #ifndef NRFX_TWI_ENABLED
    #define NRFX_TWI_ENABLED 1
    #endif
    // <q> NRFX_TWI0_ENABLED  - Enable TWI0 instance
     

    #ifndef NRFX_TWI0_ENABLED
    #define NRFX_TWI0_ENABLED 0
    #endif

    // <q> NRFX_TWI1_ENABLED  - Enable TWI1 instance
     

    #ifndef NRFX_TWI1_ENABLED
    #define NRFX_TWI1_ENABLED 0
    #endif

    // <e> TWI_ENABLED - nrf_drv_twi - TWI/TWIM peripheral driver - legacy layer
    //==========================================================
    #ifndef TWI_ENABLED
    #define TWI_ENABLED 1
    #endif
    // <o> TWI_DEFAULT_CONFIG_FREQUENCY  - Frequency
     
    // <26738688=> 100k
    // <67108864=> 250k
    // <104857600=> 400k

  • Hi.

    Try to also enable NRFX_TWI0_ENABLED

    Like this:

    - Andreas

  • how to properly post source code:

    How to properly insert source code

    then it will look as in 's posts

  • Hi,

    even though that I enabled the NRFX_TWI0_ENABLED as 1, errors are coming.

  • Hi.

    There appears to be an overwrite of the config in sdk_config.h by the file apply_old_config.h.

    If you have the following config, it should work:

    apply_old_config.h overwrites the NRFX_TWI_... defines, but it will still use the new nrfx drivers.

    Hope this helps.

    - Andreas

Reply
  • Hi.

    There appears to be an overwrite of the config in sdk_config.h by the file apply_old_config.h.

    If you have the following config, it should work:

    apply_old_config.h overwrites the NRFX_TWI_... defines, but it will still use the new nrfx drivers.

    Hope this helps.

    - Andreas

Children
  • As you said

    in apply_old_config.h

  • Hi.

    I don't understand your reply, did you add this to apply_old_config.h?

    You should have added the configurations I wrote in my previous reply to sdk_config.h.

    - Andreas

  • Hi,

    no, i just open and saw the value

    I don't understand your reply, did you add this to apply_old_config.h?

    as like you said sdk_config.h i did the same