Skip to content

ESP32 with Wifi messes up i2c bus reads (MPU6050) #1352

Closed
@echoGee

Description

@echoGee

Hardware:

Board: ESP32 DevKit V1 DoIT
Core Installation/update date: https://github.com/platformio/platform-espressif32/releases/tag/v0.12.0
IDE name: Platform.io
Flash Frequency: 80Mhz?
Upload Speed: unknown

Description:

Enabling Wifi using the connectToWiFi(networkName, networkPswd); messes up reading of the MPU6050 using the I2C bus. There are 3 different test cases.

  1. Comment the line connectToWiFi(networkName, networkPswd); in the sketch below: This reads the MPU6050 through i2c flawlessly(at ~100fps). Wifi obviously is disabled.
  2. Uncomment the line connectToWiFi(networkName, networkPswd); in the sketch below: This makes the bus unreliable and "panics" the core after sometime.
  3. Uncomment the line connectToWiFi(networkName, networkPswd); in the sketch below, and move the contents of the interrupt function void dmpDataReady() { to IRAM by modifying it to void IRAM_ATTR dmpDataReady() {. This is in reference to an issue Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed) ESP32 ARDUINO IDE  #855. : This makes the bus unreliable and causes the bus to freeze after sometime. No core panic though.

The debugs for the 3 test cases are given below

Sketch:

The sketch is a modification of the https://github.com/jrowberg/i2cdevlib/blob/master/Arduino/MPU6050/examples/MPU6050_DMP6_ESPWiFi/MPU6050_DMP6_ESPWiFi.ino to work for ESP32 and sending through wifi UDP.

/* This driver reads quaternion data from the MPU6060 and sends
   Open Sound Control messages.

  GY-521  NodeMCU
  MPU6050 devkit 1.0
  board   Lolin         Description
  ======= ==========    ====================================================
  VCC     VU (5V USB)   Not available on all boards so use 3.3V if needed.
  GND     G             Ground
  SCL     D1 (GPIO05)   I2C clock
  SDA     D2 (GPIO04)   I2C data
  XDA     not connected
  XCL     not connected
  AD0     not connected
  INT     D8 (GPIO15)   Interrupt pin

*/


#include <WiFi.h>
#include <WiFiClient.h>
#include <WiFiUdp.h>

//#include <WiFiManager.h>         //https://github.com/tzapu/WiFiManager

// I2Cdev and MPU6050 must be installed as libraries, or else the .cpp/.h files
// for both classes must be in the include path of your project
#include "I2Cdev.h"

#include "MPU6050_6Axis_MotionApps20.h"

// Arduino Wire library is required if I2Cdev I2CDEV_ARDUINO_WIRE implementation
// is used in I2Cdev.h
#if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
    #include "Wire.h"
#endif

MPU6050 mpu;
//MPU6050 mpu(0x69); // <-- use for AD0 high

/* =========================================================================
   NOTE: In addition to connection 5/3.3v, GND, SDA, and SCL, this sketch
   depends on the MPU-6050's INT pin being connected to the ESP8266 GPIO15
   pin.
 * ========================================================================= */

// MPU control/status vars
bool dmpReady = false;  // set true if DMP init was successful
uint8_t mpuIntStatus;   // holds actual interrupt status byte from MPU
uint8_t devStatus;      // return status after each device operation (0 = success, !0 = error)
uint16_t packetSize;    // expected DMP packet size (default is 42 bytes)
uint16_t fifoCount;     // count of all bytes currently in FIFO
uint8_t fifoBuffer[64]; // FIFO storage buffer

// orientation/motion vars
Quaternion q;           // [w, x, y, z]         quaternion container
VectorInt16 aa;         // [x, y, z]            accel sensor measurements
VectorInt16 aaReal;     // [x, y, z]            gravity-free accel sensor measurements
VectorInt16 aaWorld;    // [x, y, z]            world-frame accel sensor measurements
VectorFloat gravity;    // [x, y, z]            gravity vector


// uncomment "OUTPUT_READABLE_YAWPITCHROLL" if you want to see the yaw/
// pitch/roll angles (in degrees) calculated from the quaternions coming
// from the FIFO. Note this also requires gravity vector calculations.
// Also note that yaw/pitch/roll angles suffer from gimbal lock (for
// more info, see: http://en.wikipedia.org/wiki/Gimbal_lock)
#define OUTPUT_READABLE_YAWPITCHROLL


#ifdef OUTPUT_READABLE_EULER
float euler[3];         // [psi, theta, phi]    Euler angle container
#endif
#ifdef OUTPUT_READABLE_YAWPITCHROLL
float ypr[3];           // [yaw, pitch, roll]   yaw/pitch/roll container and gravity vector
#endif


#define INTERRUPT_PIN 36 // use ESP32
#define LED_PIN 27

const char * networkName = "WifiNet";
const char * networkPswd = "123456789";

//IP address to send UDP data to:
// either use the ip address of the server or
// a network broadcast address
IPAddress myIP(192,168,137,12);
IPAddress gateway(192,168,137,1);
IPAddress subnet(255,255,255,0);

//Are we currently connected?
boolean connected = false;

WiFiUDP Udp;                                // A UDP instance to let us send and receive packets over UDP
const unsigned int outPort = 3033;          // remote port to receive OSC
const char * udpAddress = "192.168.137.1";

//wifi event handler
void WiFiEvent(WiFiEvent_t event){
    Serial.print("WifiEvent: ");
    Serial.println(event);
    switch(event) {
      case SYSTEM_EVENT_STA_GOT_IP:
          //When connected set
          Serial.print("WiFi connected! IP address: ");
          Serial.println(WiFi.localIP());
          //initializes the UDP state
          //This initializes the transfer buffer
          Udp.begin(WiFi.localIP(),outPort);
          connected = true;
          break;
      case SYSTEM_EVENT_STA_DISCONNECTED:
          Serial.println("WiFi lost connection");
          connected = false;
          break;
    }
}

void connectToWiFi(const char * ssid, const char * pwd){
  Serial.println("Connecting to WiFi network: " + String(ssid));

  // delete old config
  WiFi.disconnect(true);
  //register event handler
  WiFi.onEvent(WiFiEvent);
  WiFi.config(myIP,gateway,subnet);
  //Initiate connection
  WiFi.begin(ssid, pwd);

  Serial.println("Waiting for WIFI connection...");
}


// ================================================================
// ===               INTERRUPT DETECTION ROUTINE                ===
// ================================================================

volatile bool mpuInterrupt = false;     // indicates whether MPU interrupt pin has gone high
void dmpDataReady() {
    mpuInterrupt = true;
}

void mpu_setup()
{
  // join I2C bus (I2Cdev library doesn't do this automatically)
#if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
  Wire.begin();
  Wire.setClock(400000); // 400kHz I2C clock. Comment this line if having compilation difficulties
#elif I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_FASTWIRE
  Fastwire::setup(400, true);
#endif

  // initialize device
  Serial.println(F("Initializing I2C devices..."));
  mpu.initialize();
  pinMode(INTERRUPT_PIN, INPUT);

  // verify connection
  Serial.println(F("Testing device connections..."));
  Serial.println(mpu.testConnection() ? F("MPU6050 connection successful") : F("MPU6050 connection failed"));

  // load and configure the DMP
  Serial.println(F("Initializing DMP..."));
  devStatus = mpu.dmpInitialize();

  // supply your own gyro offsets here, scaled for min sensitivity
  mpu.setXGyroOffset(220);
  mpu.setYGyroOffset(76);
  mpu.setZGyroOffset(-85);
  mpu.setZAccelOffset(1788); // 1688 factory default for my test chip

  // make sure it worked (returns 0 if so)
  if (devStatus == 0) {
    // turn on the DMP, now that it's ready
    Serial.println(F("Enabling DMP..."));
    mpu.setDMPEnabled(true);

    // enable Arduino interrupt detection
    Serial.println(F("Enabling interrupt detection (Arduino external interrupt 0)..."));
    attachInterrupt(digitalPinToInterrupt(INTERRUPT_PIN), dmpDataReady, RISING);
    mpuIntStatus = mpu.getIntStatus();

    // set our DMP Ready flag so the main loop() function knows it's okay to use it
    Serial.println(F("DMP ready! Waiting for first interrupt..."));
    dmpReady = true;

    // get expected DMP packet size for later comparison
    packetSize = mpu.dmpGetFIFOPacketSize();
  } else {
    // ERROR!
    // 1 = initial memory load failed
    // 2 = DMP configuration updates failed
    // (if it's going to break, usually the code will be 1)
    Serial.print(F("DMP Initialization failed (code "));
    Serial.print(devStatus);
    Serial.println(F(")"));
  }
}

void setup(void)
{
  Serial.begin(115200);
  pinMode(LED_PIN, OUTPUT);

  //connectToWiFi(networkName, networkPswd);
  Serial.print(F("WiFi connected! IP address: "));
  Serial.println(WiFi.localIP());

  mpu_setup();
}

void mpu_loop()
{
  // if programming failed, don't try to do anything
  if (!dmpReady) return;

  // wait for MPU interrupt or extra packet(s) available
  if (!mpuInterrupt && fifoCount < packetSize) return;

  // reset interrupt flag and get INT_STATUS byte
  mpuInterrupt = false;
  mpuIntStatus = mpu.getIntStatus();

  // get current FIFO count
  fifoCount = mpu.getFIFOCount();

  // check for overflow (this should never happen unless our code is too inefficient)
  if ((mpuIntStatus & 0x10) || fifoCount == 1024) {
    // reset so we can continue cleanly
    mpu.resetFIFO();
    Serial.println(F("FIFO overflow!"));

    // otherwise, check for DMP data ready interrupt (this should happen frequently)
  } else if (mpuIntStatus & 0x02) {
    // wait for correct available data length, should be a VERY short wait
    while (fifoCount < packetSize) fifoCount = mpu.getFIFOCount();

    // read a packet from FIFO
    mpu.getFIFOBytes(fifoBuffer, packetSize);

    // track FIFO count here in case there is > 1 packet available
    // (this lets us immediately read more without waiting for an interrupt)
    fifoCount -= packetSize;


#ifdef OUTPUT_READABLE_YAWPITCHROLL
    // display Euler angles in degrees
    mpu.dmpGetQuaternion(&q, fifoBuffer);
    mpu.dmpGetGravity(&gravity, &q);
    mpu.dmpGetYawPitchRoll(ypr, &q, &gravity);
    Serial.print("ypr\t");
    Serial.print(ypr[0] * 180/M_PI);
    Serial.print("\t");
    Serial.print(ypr[1] * 180/M_PI);
    Serial.print("\t");
    Serial.println(ypr[2] * 180/M_PI);
#endif
  }
}

void loop(void)
{
  digitalWrite(LED_PIN, HIGH);
  mpu_loop();
  digitalWrite(LED_PIN, LOW);

}

Debug Messages:

Output from scenario 1

WiFi connected! IP address: 0.0.0.0
Initializing I2C devices...
[W][esp32-hal-i2c.c:334] i2cRead(): Ack Error! Addr: 68
Testing device connections...
MPU6050 connection successful
Initializing DMP...
Selecting user bank 16...
Selecting memory byte 6...
Checking hardware revision...
Revision @ user[16][6] = 4D
Resetting memory bank selection to 0...
Reading OTP bank valid flag...
OTP bank is valid!
Reading gyro offset TC values...
X gyro offset = 63
Y gyro offset = 0
Z gyro offset = 0
Setting slave 0 address to 0x7F...
Disabling I2C Master mode...
Setting slave 0 address to 0x68 (self)...
Resetting I2C Master control...

Writing DMP code to MPU memory banks (1929 bytes)
Success! DMP code written and verified.
Writing DMP configuration to MPU memory banks (192 bytes in config def)
Success! DMP configuration written and verified.
Setting clock source to Z Gyro...
Setting DMP and FIFO_OFLOW interrupts enabled...
Setting sample rate to 200Hz...
Setting external frame sync to TEMP_OUT_L[0]...
Setting DLPF bandwidth to 42Hz...
Setting gyro sensitivity to +/- 2000 deg/sec...
Setting DMP programm start address
Clearing OTP Bank flag...
Setting X/Y/Z gyro offset TCs to previous values...
Writing final memory update 1/7 (function unknown)...
Writing final memory update 2/7 (function unknown)...
Resetting FIFO...
Reading FIFO count...
Current FIFO count=0
Setting motion detection threshold to 2...
Setting zero-motion detection threshold to 156...
Setting motion detection duration to 80...
Setting zero-motion detection duration to 0...
Resetting FIFO...
Reading FIFO count...
Current FIFO count=0
Setting motion detection threshold to 2...
Setting zero-motion detection threshold to 156...
Setting motion detection duration to 80...
Setting zero-motion detection duration to 0...
Resetting FIFO...
Enabling FIFO...
Enabling DMP...
Resetting DMP...
Writing final memory update 3/7 (function unknown)...
Writing final memory update 4/7 (function unknown)...
Writing final memory update 5/7 (function unknown)...
Waiting for FIFO count > 2...

Current FIFO count=42
Reading FIFO data...
Reading interrupt status...
Current interrupt status=7
Reading final memory update 6/7 (function unknown)...
Waiting for FIFO count > 2...
Current FIFO count=84
Reading FIFO data...
Reading interrupt status...
Current interrupt status=3
Writing final memory update 7/7 (function unknown)...
DMP is good to go! Finally.
Disabling DMP (you turn it on later)...
Setting up internal 42-byte (default) DMP packet buffer...
Resetting FIFO and clearing INT status one last time...
Enabling DMP...
Enabling interrupt detection (Arduino external interrupt 0)...
DMP ready! Waiting for first interrupt...
ypr     117.38  -36.61  18.09
ypr     117.42  -36.60  18.04
ypr     117.46  -36.59  18.00

Output from scenario 2


Connecting to WiFi network: WifiNet
[D][WiFiGeneric.cpp:293] _eventCallback(): Event: 2 - STA_START
WifiEvent: 2
Waiting for WIFI connection...
WiFi connected! IP address: 192.168.137.12
Initializing I2C devices...
[W][esp32-hal-i2c.c:334] i2cRead(): Ack Error! Addr: 68
Testing device connections...
MPU6050 connection successful
Initializing DMP...


Resetting MPU6050...
Resetting DMP...

Disabling sleep mode...
Selecting user bank 16...
Selecting memory byte 6...
Checking hardware revision...
Revision @ user[16][6] = 4D
Resetting memory bank selection to 0...
Reading OTP bank valid flag...
OTP bank is valid!
Reading gyro offset TC values...
X gyro offset = 63
Y gyro offset = 0
Z gyro offset = 0
Setting slave 0 address to 0x7F...
Disabling I2C Master mode...
Setting slave 0 address to 0x68 (self)...
Resetting I2C Master control...
Writing DMP code to MPU memory banks (1929 bytes)
Success! DMP code written and verified.
Writing DMP configuration to MPU memory banks (192 bytes in config def)
Success! DMP configuration written and verified.
Setting clock source to Z Gyro...
Setting DMP and FIFO_OFLOW interrupts enabled...
Setting sample rate to 200Hz...
Setting external frame sync to TEMP_OUT_L[0]...
Setting DLPF bandwidth to 42Hz...
Setting gyro sensitivity to +/- 2000 deg/sec...
Setting DMP programm start address
Clearing OTP Bank flag...
Setting X/Y/Z gyro offset TCs to previous values...
Writing final memory update 1/7 (function unknown)...

Writing final memory update 2/7 (function unknown)...
Resetting FIFO...
Reading FIFO count...
Current FIFO count=0
Setting motion detection threshold to 2...
Setting zero-motion detection threshold to 156...
Setting motion detection duration to 80...
Setting zero-motion detection duration to 0...
Resetting FIFO...
Enabling FIFO...
Enabling DMP...
Resetting DMP...
Writing final memory update 3/7 (function unknown)...
Writing final memory update 4/7 (function unknown)...
Writing final memory update 5/7 (function unknown)...
Waiting for FIFO count > 2...
Current FIFO count=42
Reading FIFO data...
Reading interrupt status...
Current interrupt status=7
Reading final memory update 6/7 (function unknown)...
Waiting for FIFO count > 2...
Current FIFO count=42
Reading FIFO data...
Reading interrupt status...
Current interrupt status=3
Writing final memory update 7/7 (function unknown)...
DMP is good to go! Finally.
Disabling DMP (you turn it on later)...
Setting up internal 42-byte (default) DMP packet buffer...
Resetting FIFO and clearing INT status one last time...
Enabling DMP...

Enabling interrupt detection (Arduino external interrupt 0)...
DMP ready! Waiting for first interrupt...
ypr     101.45  -26.54  19.11
FIFO overflow!
ypr     101.54  -26.50  19.03
FIFO overflow!
ypr     101.62  -26.46  18.96
FIFO overflow!
ypr     101.72  -26.42  18.87
FIFO overflow!
ypr     101.80  -26.39  18.79
FIFO overflow!
ypr     101.89  -26.35  18.72
FIFO overflow!
ypr     101.98  -26.31  18.65
FIFO overflow!
ypr     102.06  -26.27  18.57
FIFO overflow!
ypr     102.14  -26.23  18.50
FIFO overflow!
.
.
ypr     102.71  -25.99  18.02
FIFO overflow!
[W][esp32-hal-i2c.c:334] i2cRead(): Ack Error! Addr: 68
[W][esp32-hal-i2c.c:334] i2cRead(): Ack Error! Addr: 68
Guru Meditation Error: Core  1 panic'ed (Cache disabled but cached memory region accessed)
Register dump:
PC      : 0x400d2194  PS      : 0x00060034  A0      : 0x40081624  A1      : 0x3ffc0be0
A2      : 0x00000004  A3      : 0x3ffc3614  A4      : 0x00000010  A5      : 0x400d2194
A6      : 0x00000000  A7      : 0x1200005c  A8      : 0x80080e6c  A9      : 0x80000020
A10     : 0x00000000  A11     : 0x00000000  A12     : 0x3ffc3cfc  A13     : 0x00000000
A14     : 0x3ffc3cf8  A15     : 0xffffffff  SAR     : 0x0000001a  EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000  LBEG    : 0x00000000  LEND    : 0x00000000  LCOUNT  : 0x00000000

Backtrace: 0x400d2194:0x3ffc0be0 0x40081621:0x3ffc0c00 0x400823f5:0x00000000

Rebooting...
ets Jun  8 2016 00:22:57

rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:812
load:0x40078000,len:0
load:0x40078000,len:11404
entry 0x40078a28
Connecting to WiFi network: WifiNet
[D][WiFiGeneric.cpp:293] _eventCallback(): Event: 2 - STA_START

WifiEvent: 2
Waiting for WIFI connection...
WiFi connected! IP address: 192.168.137.12
Initializing I2C devices...
[W][esp32-hal-i2c.c:334] i2cRead(): Ack Error! Addr: 68
Testing device connections...
MPU6050 connection successful
Initializing DMP...


Resetting MPU6050...
Resetting DMP...
Disabling sleep mode...
Selecting user bank 16...
Selecting memory byte 6...
Checking hardware revision...
Revision @ user[16][6] = 4D
Resetting memory bank selection to 0...
Reading OTP bank valid flag...
OTP bank is invalid!
Reading gyro offset TC values...
X gyro offset = 63
Y gyro offset = 0
Z gyro offset = 0
Setting slave 0 address to 0x7F...
Disabling I2C Master mode...
Setting slave 0 address to 0x68 (self)...
Resetting I2C Master control...
Writing DMP code to MPU memory banks (1929 bytes)
ERROR! DMP code verification failed.
DMP Initialization failed (code 1)
[D][WiFiGeneric.cpp:293] _eventCallback(): Event: 7 - STA_GOT_IP
WifiEvent: 7
WiFi connected! IP address: 192.168.137.12
[D][WiFiGeneric.cpp:293] _eventCallback(): Event: 7 - STA_GOT_IP
WifiEvent: 7
WiFi connected! IP address: 192.168.137.12

ESP Exception 
===============================
PC: 0x400d2194: dmpDataReady() at C:/Code/MPU6050_DMP6_ESPWiFi/MPU6050_DMP6_ESPWiFi.ino line 279
EXCVADDR: 0x00000000

Decoding stack results
0x400d2194: dmpDataReady() at C:/Code/MPU6050_DMP6_ESPWiFi/MPU6050_DMP6_ESPWiFi.ino line 279
0x400823f5: spi_flash_op_block_func at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/spi_flash/./cache_utils.c line 82
===============================

Output from scenario 3

With IRAM_ATTR in interrupt
======================================
Connecting to WiFi network: WifiNet
[D][WiFiGeneric.cpp:293] _eventCallback(): Event: 2 - STA_START
WifiEvent: 2
Waiting for WIFI connection...
WiFi connected! IP address: 192.168.137.12
Initializing I2C devices...
[W][esp32-hal-i2c.c:334] i2cRead(): Ack Error! Addr: 68
Testing device connections...
MPU6050 connection successful
Initializing DMP...


Resetting MPU6050...
Resetting DMP...

Disabling sleep mode...
Selecting user bank 16...
Selecting memory byte 6...
Checking hardware revision...
Revision @ user[16][6] = 4D
Resetting memory bank selection to 0...
Reading OTP bank valid flag...
OTP bank is valid!
Reading gyro offset TC values...
X gyro offset = 63
Y gyro offset = 0
Z gyro offset = 0
Setting slave 0 address to 0x7F...
Disabling I2C Master mode...
Setting slave 0 address to 0x68 (self)...
Resetting I2C Master control...
Writing DMP code to MPU memory banks (1929 bytes)
Success! DMP code written and verified.
Writing DMP configuration to MPU memory banks (192 bytes in config def)
Success! DMP configuration written and verified.
Setting clock source to Z Gyro...
Setting DMP and FIFO_OFLOW interrupts enabled...
Setting sample rate to 200Hz...
Setting external frame sync to TEMP_OUT_L[0]...
Setting DLPF bandwidth to 42Hz...
Setting gyro sensitivity to +/- 2000 deg/sec...
Setting DMP programm start address
Clearing OTP Bank flag...

Setting X/Y/Z gyro offset TCs to previous values...
Writing final memory update 1/7 (function unknown)...
Writing final memory update 2/7 (function unknown)...
Resetting FIFO...
Reading FIFO count...
Current FIFO count=0
Setting motion detection threshold to 2...
Setting zero-motion detection threshold to 156...
Setting motion detection duration to 80...
Setting zero-motion detection duration to 0...
Resetting FIFO...
Enabling FIFO...
Enabling DMP...
Resetting DMP...
Writing final memory update 3/7 (function unknown)...
Writing final memory update 4/7 (function unknown)...
Writing final memory update 5/7 (function unknown)...
Waiting for FIFO count > 2...
Current FIFO count=42
Reading FIFO data...
Reading interrupt status...
Current interrupt status=7
Reading final memory update 6/7 (function unknown)...
Waiting for FIFO count > 2...
Current FIFO count=42
Reading FIFO data...
Reading interrupt status...
Current interrupt status=3
Writing final memory update 7/7 (function unknown)...
DMP is good to go! Finally.
Disabling DMP (you turn it on later)...
Setting up internal 42-byte (default) DMP packet buffer...
Resetting FIFO and clearing INT status one last time...
Enabling DMP...
Enabling interrupt detection (Arduino external interrupt 0)...
DMP ready! Waiting for first interrupt...
ypr     105.20  -29.69  19.56
FIFO overflow!
ypr     105.27  -29.71  19.50
FIFO overflow!
ypr     105.34  -29.69  19.43

FIFO overflow!
ypr     105.44  -29.65  19.36
FIFO overflow!
ypr     105.53  -29.59  19.27
FIFO overflow!
ypr     105.62  -29.52  19.18
FIFO overflow!
ypr     105.72  -29.44  19.10
FIFO overflow!
ypr     105.81  -29.37  19.02
FIFO overflow!
ypr     105.89  -29.36  18.95
FIFO overflow!
ypr     105.95  -29.40  18.90
FIFO overflow!
ypr     106.02  -29.42  18.85
FIFO overflow!
ypr     106.10  -29.37  18.78
FIFO overflow!
ypr     106.20  -29.29  18.70
FIFO overflow!
ypr     106.29  -29.21  18.61
FIFO overflow!
ypr     106.37  -29.15  18.54
FIFO overflow!
ypr     106.45  -29.13  18.47
FIFO overflow!
[W][esp32-hal-i2c.c:334] i2cRead(): Ack Error! Addr: 68
[W][esp32-hal-i2c.c:334] i2cRead(): Ack Error! Addr: 68
ypr     106.45  -29.13  18.47
[D][WiFiGeneric.cpp:293] _eventCallback(): Event: 7 - STA_GOT_IP
WifiEvent: 7
WiFi connected! IP address: 192.168.137.12
[D][WiFiGeneric.cpp:293] _eventCallback(): Event: 7 - STA_GOT_IP
WifiEvent: 7
WiFi connected! IP address: 192.168.137.12
[W][esp32-hal-i2c.c:334] i2cRead(): Ack Error! Addr: 68
[E][esp32-hal-i2c.c:161] i2cWrite(): Busy Timeout! Addr: 68
[W][esp32-hal-i2c.c:280] i2cRead(): Busy Timeout! Addr: 68
[E][esp32-hal-i2c.c:161] i2cWrite(): Busy Timeout! Addr: 68
[W][esp32-hal-i2c.c:280] i2cRead(): Busy Timeout! Addr: 68
ypr     106.45  -29.13  18.47
[E][esp32-hal-i2c.c:161] i2cWrite(): Busy Timeout! Addr: 68
[W][esp32-hal-i2c.c:280] i2cRead(): Busy Timeout! Addr: 68
[E][esp32-hal-i2c.c:161] i2cWrite(): Busy Timeout! Addr: 68
[W][esp32-hal-i2c.c:280] i2cRead(): Busy Timeout! Addr: 68
[E][esp32-hal-i2c.c:161] i2cWrite(): Busy Timeout! Addr: 68
[W][esp32-hal-i2c.c:280] i2cRead(): Busy Timeout! Addr: 68
ypr     106.45  -29.13  18.47
[E][esp32-hal-i2c.c:161] i2cWrite(): Busy Timeout! Addr: 68
[W][esp32-hal-i2c.c:280] i2cRead(): Busy Timeout! Addr: 68

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions