Intel NUC11
Ubuntu 22.04.2 LTS - jammy
VS Code - PlatformIO
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
adafruit/Adafruit BNO055@^1.6.1
SPI
monitor_filters =
default
time
log2file
monitor_speed = 115200
Hello All,
I recently purchased the Adafruit BNO055 Absolute Orientation Sensor. I wrote my own little library to work with the BNO055 and it worked great. For a few weeks. The other day, out of the blue, I started getting this i2cWriteReadNonstop error messages. These messages occur after the bno.begin() call. After the error messages, the program continues to run just fine.
After several hours of trouble shooting and hunting around the different forums I decided to try one of the example programs (something I should have done first). I used the “read_all_data” sketch. I loaded and ran it from the Arduino IDE and it works just fine. When I use the VSCode with PlatformIO, I get the i2cWriteReadNonstop errors. I want to emphasize that this was not an issue for the first few weeks and I don’t know what might have changed on the VSCode PlatformIO side.
Below is the serial monitor output. Note the message “Orientation Sensor Test” which occurs before bno.begin(). I also wrapped the calls to getEvent() in some serial prints to identify the start and stop of all of those calls and you can see the error messages occur before that. So the problem occurs in or immediately after bno.begin().
Any trouble shooting ideas are greatly appreciated.
Here is the serial monitor output:
15:38:25.803 > rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
15:38:25.808 > configsip: 0, SPIWP:0xee
15:38:25.810 > clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
15:38:25.816 > mode:DIO, clock div:2
15:38:25.818 > load:0x3fff0030,len:1184
15:38:25.820 > load:0x40078000,len:13192
15:38:25.823 > load:0x40080400,len:3028
15:38:25.825 > entry 0x400805e4
15:38:25.972 > Orientation Sensor Test
15:38:25.975 >
15:38:26.035 > [ 81][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.046 > [ 92][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.056 > [ 102][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.066 > [ 112][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.076 > [ 122][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.086 > [ 132][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.096 > [ 142][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.106 > [ 152][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.116 > [ 162][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.126 > [ 172][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.136 > [ 182][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.146 > [ 192][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.156 > [ 202][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.166 > [ 212][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.176 > [ 222][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.186 > [ 232][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.196 > [ 242][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.206 > [ 252][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.216 > [ 262][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.226 > [ 272][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.236 > [ 282][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.246 > [ 292][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.256 > [ 302][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.266 > [ 312][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.276 > [ 322][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.286 > [ 332][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.296 > [ 342][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.306 > [ 352][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.316 > [ 362][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.326 > [ 372][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.336 > [ 382][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.346 > [ 392][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.356 > [ 402][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.366 > [ 412][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.376 > [ 422][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.386 > [ 432][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.396 > [ 442][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.406 > [ 452][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.416 > [ 462][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.426 > [ 472][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.436 > [ 482][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.446 > [ 492][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.456 > [ 502][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.466 > [ 512][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.476 > [ 522][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.486 > [ 532][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.496 > [ 542][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:26.506 > [ 552][E][Wire.cpp:499] requestFrom(): i2cWriteReadNonStop returned Error -1
15:38:27.639 > Calling getEvent() for all sensor data
15:38:27.647 > Finished getEvent() for all sensor data
15:38:27.652 > Orient: x= 0.00 | y= 0.06 | z= 2.62
15:38:27.656 > Gyro: x= 0.00 | y= 0.00 | z= 0.00
15:38:27.658 > Linear: x= 0.00 | y= 0.00 | z= -0.28
15:38:27.661 > Mag: x= 32.50 | y= -1.50 | z= -5.06
15:38:27.665 > Accl: x= 0.00 | y= -0.46 | z= 9.50
15:38:27.668 > Gravity: x= 0.01 | y= -0.45 | z= 9.79
15:38:27.671 >
15:38:27.671 > temperature: 29
15:38:27.673 >
15:38:27.673 > Calibration: Sys=0 Gyro=3 Accel=0 Mag=0
15:38:27.676 > –
15:38:27.772 > Calling getEvent() for all sensor data
15:38:27.780 > Finished getEvent() for all sensor data
15:38:27.784 > Orient: x= 0.00 | y= 0.06 | z= 2.62
15:38:27.788 > Gyro: x= 0.00 | y= 0.00 | z= 0.00
15:38:27.791 > Linear: x= 0.00 | y= -0.01 | z= -0.24
15:38:27.794 > Mag: x= 32.06 | y= -1.50 | z= -5.06
15:38:27.797 > Accl: x= 0.02 | y= -0.46 | z= 9.54
15:38:27.800 > Gravity: x= 0.01 | y= -0.45 | z= 9.79
15:38:27.804 >
15:38:27.804 > temperature: 29
15:38:27.805 >
15:38:27.806 > Calibration: Sys=0 Gyro=3 Accel=0 Mag=0
15:38:27.809 > –
15:38:27.905 > Calling getEvent() for all sensor data
15:38:27.911 > Finished getEvent() for all sensor data
15:38:27.916 > Orient: x= 0.00 | y= 0.06 | z= 2.62
15:38:27.919 > Gyro: x= 0.00 | y= -0.00 | z= -0.00
15:38:27.922 > Linear: x= 0.00 | y= -0.02 | z= -0.21
15:38:27.925 > Mag: x= 33.56 | y= -2.56 | z= -4.75
15:38:27.929 > Accl: x= 0.02 | y= -0.47 | z= 9.57
15:38:27.932 > Gravity: x= 0.01 | y= -0.45 | z= 9.79
15:38:27.935 >
15:38:27.935 > temperature: 29
15:38:27.937 >
15:38:27.937 > Calibration: Sys=0 Gyro=3 Accel=0 Mag=0