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

mpu 6050 with nrf52840

hi, i have downloaded nrf5-mpu-example sdk 13 from github. made necessary changes to work with sdk 14.2 for nrf52840. the kit is advertising when i check it in nrf connect app i am not getting any value. need help please?

Parents
  • It seems like you are forgetting to call ble_mpu_on_ble_evt(&m_mpu, p_ble_evt); on BLE events. Call the function from the bottom of ble_evt_handler() in main.c and change the signature of the function from

    void ble_mpu_on_ble_evt(ble_mpu_t * p_mpu, ble_evt_t * p_ble_evt);
    

    to

    void ble_mpu_on_ble_evt(ble_mpu_t * p_mpu, ble_evt_t const * p_ble_evt);
    

    in ble_mpu.h and ble_mpu.c.

Reply
  • It seems like you are forgetting to call ble_mpu_on_ble_evt(&m_mpu, p_ble_evt); on BLE events. Call the function from the bottom of ble_evt_handler() in main.c and change the signature of the function from

    void ble_mpu_on_ble_evt(ble_mpu_t * p_mpu, ble_evt_t * p_ble_evt);
    

    to

    void ble_mpu_on_ble_evt(ble_mpu_t * p_mpu, ble_evt_t const * p_ble_evt);
    

    in ble_mpu.h and ble_mpu.c.

Children
Related