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

nRF52832 and mpu6050

I am trying to program mpu_simple https://github.com/Martinsbl/nrf5-mpu-examples with Segger, and I get to connect sensor MPU6050 to my board but I do not receive datas of sensor.

I have configured Segger with the device and twi. The code is this:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
* This example is not extensively tested and only
* meant as a simple explanation and for inspiration.
* NO WARRANTY of ANY KIND is provided.
*/
#include <stdio.h>
#include "boards.h"
#include "app_uart.h"
#include "app_error.h"
#include "nrf_delay.h"
#include "app_mpu.h"
#include "nrf_log.h"
#include "nrf_log_ctrl.h"
#include "nrf_log_default_backends.h"
/**@brief Function for initializing the nrf log module.
*/
static void log_init(void)
{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Can you tell me why I do not receive any datas of sensor MPU?