Unable to save AUX IMU calibration data when using MPU9250*2 #333

Closed
opened 2026-04-05 17:52:45 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Disappear9 on 8/10/2022

Setup:

MCU:ESP32-WROOM-32E
IMU:MPU9250*2

Version:

main

Tried:

clear flash and reflash firmware. (x)
swap esp32 (x)
use rel 0.2.2 (x)

Screenshots:

calibration data saved
c

after restart, (No calibration data found for sensor 1):
rst

Full log(rel 0.2.2):


--- Terminal on COM5 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H

<clear flash & flash firmware>

ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_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:1044 
load:0x40078000,len:10124
load:0x40080400,len:5828 
entry 0x400806a8



[INFO ] [SlimeVR] SlimeVR v0.2.2 starting up...
.pio/libdeps/esp32/LittleFS_esp32/src/lfs.c:1076:error: Corrupted dir pair at {0x0, 0x1}
E (13) esp_littlefs: mount failed,  (-84)
E (16) esp_littlefs: Failed to initialize LittleFS
[E][LITTLEFS.cpp:90] begin(): Mounting LITTLEFS failed! Error: -1
[WARN ] [Configuration] Could not mount LittleFS, formatting
[E][vfs_api.cpp:64] open(): /littlefs/config.bin does not exist
[INFO ] [Configuration] No configuration file found, creating new one
[DEBUG] [Configuration] Saved configuration
[E][vfs_api.cpp:64] open(): /littlefs/calibrations does not exist
[WARN ] [Configuration] No calibration data found, creating new directory...
[DEBUG] [Configuration] Found calibration data directory
[INFO ] [Configuration] Loaded configuration
[INFO ] [MPU9250Sensor:0] Connected to MPU9250 (0x71) at address 0x68
[WARN ] [MPU9250Sensor:0] No calibration data found for sensor 0, ignoring...
[INFO ] [MPU9250Sensor:0] Calibration is advised
[DEBUG] [MPU9250Sensor:0] Enabling DMP...
[DEBUG] [MPU9250Sensor:0] DMP ready! Waiting for first interrupt...
[INFO ] [MPU9250Sensor:1] Connected to MPU9250 (0x71) at address 0x69
[WARN ] [MPU9250Sensor:1] No calibration data found for sensor 1, ignoring...
[INFO ] [MPU9250Sensor:1] Calibration is advised
[DEBUG] [MPU9250Sensor:1] Enabling DMP...
[DEBUG] [MPU9250Sensor:1] DMP ready! Waiting for first interrupt...
[INFO ] [WiFiHandler] Setting up WiFi
[INFO ] [WiFiHandler] Loaded credentials for SSID  and pass length 0
[E][WiFiSTA.cpp:221] begin(): connect failed!
[DEBUG] [WiFiHandler] Status: 4
[NOTICE] OTA updates allowed
...........[ERROR] [WiFiHandler] Can't connect from saved credentials, status: 6.
[DEBUG] [WiFiHandler] Trying hardcoded credentials...
...[INFO ] [WiFiHandler] Connected successfully to SSID ' ', ip address  
[INFO ] [UDPClient] Looking for the server...
[INFO ] [UDPClient] Looking for the server...


<Cal main IMU>

ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_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:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8



[INFO ] [SlimeVR] SlimeVR v0.2.2 starting up...
[INFO ] [Configuration] Found up-to-date configuration v1
[DEBUG] [Configuration] Found calibration data directory
[INFO ] [Configuration] Loaded configuration
[INFO ] [MPU9250Sensor:0] Connected to MPU9250 (0x71) at address 0x68
[INFO ] [MPU9250Sensor:0] Flip front to confirm start calibration
[DEBUG] [MPU9250Sensor:0] Starting calibration...
[INFO ] [MPU9250Sensor:0] Gently rotate the device while it's gathering magnetometer data
[DEBUG] [MPU9250Sensor:0] Calculating calibration data...
[DEBUG] [MPU9250Sensor:0] [INFO] Magnetometer calibration matrix:
[DEBUG] [MPU9250Sensor:0] {
[DEBUG] [MPU9250Sensor:0]   93.763382, 1.211771, 0.015985, 0.024742
[DEBUG] [MPU9250Sensor:0]   -165.140350, 0.015985, 1.209103, 0.004458
[DEBUG] [MPU9250Sensor:0]   260.576416, 0.024742, 0.004458, 1.101298
[DEBUG] [MPU9250Sensor:0] }
[DEBUG] [MPU9250Sensor:0] Saving the calibration data
[DEBUG] [Configuration] Saved configuration
[DEBUG] [MPU9250Sensor:0] Saved the calibration data
[INFO ] [MPU9250Sensor:0] Calibration data gathered
[DEBUG] [MPU9250Sensor:0] Enabling DMP...
[DEBUG] [MPU9250Sensor:0] DMP ready! Waiting for first interrupt...
[INFO ] [MPU9250Sensor:1] Connected to MPU9250 (0x71) at address 0x69
[INFO ] [MPU9250Sensor:1] Flip front to confirm start calibration
[WARN ] [MPU9250Sensor:1] No calibration data found for sensor 1, ignoring...
[INFO ] [MPU9250Sensor:1] Calibration is advised
[DEBUG] [MPU9250Sensor:1] Enabling DMP...
[DEBUG] [MPU9250Sensor:1] DMP ready! Waiting for first interrupt...
[INFO ] [WiFiHandler] Setting up WiFi
[INFO ] [WiFiHandler] Loaded credentials for SSID  and pass length 63
[DEBUG] [WiFiHandler] Status: 6
[NOTICE] OTA updates allowed
[NOTICE] OTA updates disabled by timeout, this is not an error
...[INFO ] [WiFiHandler] Connected successfully to SSID ' ', ip address  
[INFO ] [UDPClient] Looking for the server...
[INFO ] [UDPClient] Looking for the server...

<Cal AUX IMU>

ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_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:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8



[INFO ] [SlimeVR] SlimeVR v0.2.2 starting up...
[INFO ] [Configuration] Found up-to-date configuration v1
[DEBUG] [Configuration] Found calibration data directory
[DEBUG] [Configuration] Found sensor calibration for MPU9250 at index 0
[INFO ] [Configuration] Loaded configuration
[INFO ] [MPU9250Sensor:0] Connected to MPU9250 (0x71) at address 0x68
[DEBUG] [MPU9250Sensor:0] Enabling DMP...
[DEBUG] [MPU9250Sensor:0] DMP ready! Waiting for first interrupt...
[INFO ] [MPU9250Sensor:1] Connected to MPU9250 (0x71) at address 0x69
[INFO ] [MPU9250Sensor:1] Flip front to confirm start calibration
[DEBUG] [MPU9250Sensor:1] Starting calibration...
[INFO ] [MPU9250Sensor:1] Gently rotate the device while it's gathering magnetometer data
[DEBUG] [MPU9250Sensor:1] Calculating calibration data...
[DEBUG] [MPU9250Sensor:1] [INFO] Magnetometer calibration matrix:
[DEBUG] [MPU9250Sensor:1] {
[DEBUG] [MPU9250Sensor:1]   134.978104, 1.554181, -0.000397, -0.016114
[DEBUG] [MPU9250Sensor:1]   107.958794, -0.000397, 1.532582, 0.016181
[DEBUG] [MPU9250Sensor:1]   161.959076, -0.016114, 0.016181, 1.508269
[DEBUG] [MPU9250Sensor:1] }
[DEBUG] [MPU9250Sensor:1] Saving the calibration data
[DEBUG] [Configuration] Saved configuration
[DEBUG] [MPU9250Sensor:1] Saved the calibration data
[INFO ] [MPU9250Sensor:1] Calibration data gathered
[DEBUG] [MPU9250Sensor:1] Enabling DMP...
[DEBUG] [MPU9250Sensor:1] DMP ready! Waiting for first interrupt...
[INFO ] [WiFiHandler] Setting up WiFi
[INFO ] [WiFiHandler] Loaded credentials for SSID  and pass length 63
[DEBUG] [WiFiHandler] Status: 6
[NOTICE] OTA updates allowed
[NOTICE] OTA updates disabled by timeout, this is not an error
...[INFO ] [WiFiHandler] Connected successfully to SSID ' ', ip address  
[INFO ] [UDPClient] Looking for the server...
[INFO ] [UDPClient] Looking for the server...

<Restart MCU>

ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_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:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8



[INFO ] [SlimeVR] SlimeVR v0.2.2 starting up...
[INFO ] [Configuration] Found up-to-date configuration v1
[DEBUG] [Configuration] Found calibration data directory
[DEBUG] [Configuration] Found sensor calibration for MPU9250 at index 0
[DEBUG] [Configuration] Found sensor calibration for MPU9250 at index 0
[INFO ] [Configuration] Loaded configuration
[INFO ] [MPU9250Sensor:0] Connected to MPU9250 (0x71) at address 0x68
[DEBUG] [MPU9250Sensor:0] Enabling DMP...
[DEBUG] [MPU9250Sensor:0] DMP ready! Waiting for first interrupt...
[INFO ] [MPU9250Sensor:1] Connected to MPU9250 (0x71) at address 0x69
[WARN ] [MPU9250Sensor:1] No calibration data found for sensor 1, ignoring...
[INFO ] [MPU9250Sensor:1] Calibration is advised
[DEBUG] [MPU9250Sensor:1] Enabling DMP...
[DEBUG] [MPU9250Sensor:1] DMP ready! Waiting for first interrupt...
[INFO ] [WiFiHandler] Setting up WiFi
[INFO ] [WiFiHandler] Loaded credentials for SSID  and pass length 63
[DEBUG] [WiFiHandler] Status: 6
[NOTICE] OTA updates allowed
...[INFO ] [WiFiHandler] Connected successfully to SSID ' ', ip address  
[INFO ] [UDPClient] Looking for the server...
[INFO ] [UDPClient] Looking for the server...

*Originally created by @Disappear9 on 8/10/2022* ### Setup: MCU:ESP32-WROOM-32E IMU:MPU9250*2 ### Version: main ### Tried: clear flash and reflash firmware. (x) swap esp32 (x) use rel 0.2.2 (x) ### Screenshots: calibration data saved ![c](https://git.poker/Disappear9/image-hosting/blob/master/20220810/c.5kl2k1m270k0.webp?raw=true) after restart, (No calibration data found for sensor 1): ![rst](https://git.poker/Disappear9/image-hosting/blob/master/20220810/rst.149lq0z6pra8.webp?raw=true) ### Full log(rel 0.2.2): ``` --- Terminal on COM5 | 115200 8-N-1 --- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time --- More details at https://bit.ly/pio-monitor-filters --- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H <clear flash & flash firmware> ets Jul 29 2019 12:21:46 rst:0x1 (POWERON_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:1044 load:0x40078000,len:10124 load:0x40080400,len:5828 entry 0x400806a8 [INFO ] [SlimeVR] SlimeVR v0.2.2 starting up... .pio/libdeps/esp32/LittleFS_esp32/src/lfs.c:1076:error: Corrupted dir pair at {0x0, 0x1} E (13) esp_littlefs: mount failed, (-84) E (16) esp_littlefs: Failed to initialize LittleFS [E][LITTLEFS.cpp:90] begin(): Mounting LITTLEFS failed! Error: -1 [WARN ] [Configuration] Could not mount LittleFS, formatting [E][vfs_api.cpp:64] open(): /littlefs/config.bin does not exist [INFO ] [Configuration] No configuration file found, creating new one [DEBUG] [Configuration] Saved configuration [E][vfs_api.cpp:64] open(): /littlefs/calibrations does not exist [WARN ] [Configuration] No calibration data found, creating new directory... [DEBUG] [Configuration] Found calibration data directory [INFO ] [Configuration] Loaded configuration [INFO ] [MPU9250Sensor:0] Connected to MPU9250 (0x71) at address 0x68 [WARN ] [MPU9250Sensor:0] No calibration data found for sensor 0, ignoring... [INFO ] [MPU9250Sensor:0] Calibration is advised [DEBUG] [MPU9250Sensor:0] Enabling DMP... [DEBUG] [MPU9250Sensor:0] DMP ready! Waiting for first interrupt... [INFO ] [MPU9250Sensor:1] Connected to MPU9250 (0x71) at address 0x69 [WARN ] [MPU9250Sensor:1] No calibration data found for sensor 1, ignoring... [INFO ] [MPU9250Sensor:1] Calibration is advised [DEBUG] [MPU9250Sensor:1] Enabling DMP... [DEBUG] [MPU9250Sensor:1] DMP ready! Waiting for first interrupt... [INFO ] [WiFiHandler] Setting up WiFi [INFO ] [WiFiHandler] Loaded credentials for SSID and pass length 0 [E][WiFiSTA.cpp:221] begin(): connect failed! [DEBUG] [WiFiHandler] Status: 4 [NOTICE] OTA updates allowed ...........[ERROR] [WiFiHandler] Can't connect from saved credentials, status: 6. [DEBUG] [WiFiHandler] Trying hardcoded credentials... ...[INFO ] [WiFiHandler] Connected successfully to SSID ' ', ip address [INFO ] [UDPClient] Looking for the server... [INFO ] [UDPClient] Looking for the server... <Cal main IMU> ets Jul 29 2019 12:21:46 rst:0x1 (POWERON_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:1044 load:0x40078000,len:10124 load:0x40080400,len:5828 entry 0x400806a8 [INFO ] [SlimeVR] SlimeVR v0.2.2 starting up... [INFO ] [Configuration] Found up-to-date configuration v1 [DEBUG] [Configuration] Found calibration data directory [INFO ] [Configuration] Loaded configuration [INFO ] [MPU9250Sensor:0] Connected to MPU9250 (0x71) at address 0x68 [INFO ] [MPU9250Sensor:0] Flip front to confirm start calibration [DEBUG] [MPU9250Sensor:0] Starting calibration... [INFO ] [MPU9250Sensor:0] Gently rotate the device while it's gathering magnetometer data [DEBUG] [MPU9250Sensor:0] Calculating calibration data... [DEBUG] [MPU9250Sensor:0] [INFO] Magnetometer calibration matrix: [DEBUG] [MPU9250Sensor:0] { [DEBUG] [MPU9250Sensor:0] 93.763382, 1.211771, 0.015985, 0.024742 [DEBUG] [MPU9250Sensor:0] -165.140350, 0.015985, 1.209103, 0.004458 [DEBUG] [MPU9250Sensor:0] 260.576416, 0.024742, 0.004458, 1.101298 [DEBUG] [MPU9250Sensor:0] } [DEBUG] [MPU9250Sensor:0] Saving the calibration data [DEBUG] [Configuration] Saved configuration [DEBUG] [MPU9250Sensor:0] Saved the calibration data [INFO ] [MPU9250Sensor:0] Calibration data gathered [DEBUG] [MPU9250Sensor:0] Enabling DMP... [DEBUG] [MPU9250Sensor:0] DMP ready! Waiting for first interrupt... [INFO ] [MPU9250Sensor:1] Connected to MPU9250 (0x71) at address 0x69 [INFO ] [MPU9250Sensor:1] Flip front to confirm start calibration [WARN ] [MPU9250Sensor:1] No calibration data found for sensor 1, ignoring... [INFO ] [MPU9250Sensor:1] Calibration is advised [DEBUG] [MPU9250Sensor:1] Enabling DMP... [DEBUG] [MPU9250Sensor:1] DMP ready! Waiting for first interrupt... [INFO ] [WiFiHandler] Setting up WiFi [INFO ] [WiFiHandler] Loaded credentials for SSID and pass length 63 [DEBUG] [WiFiHandler] Status: 6 [NOTICE] OTA updates allowed [NOTICE] OTA updates disabled by timeout, this is not an error ...[INFO ] [WiFiHandler] Connected successfully to SSID ' ', ip address [INFO ] [UDPClient] Looking for the server... [INFO ] [UDPClient] Looking for the server... <Cal AUX IMU> ets Jul 29 2019 12:21:46 rst:0x1 (POWERON_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:1044 load:0x40078000,len:10124 load:0x40080400,len:5828 entry 0x400806a8 [INFO ] [SlimeVR] SlimeVR v0.2.2 starting up... [INFO ] [Configuration] Found up-to-date configuration v1 [DEBUG] [Configuration] Found calibration data directory [DEBUG] [Configuration] Found sensor calibration for MPU9250 at index 0 [INFO ] [Configuration] Loaded configuration [INFO ] [MPU9250Sensor:0] Connected to MPU9250 (0x71) at address 0x68 [DEBUG] [MPU9250Sensor:0] Enabling DMP... [DEBUG] [MPU9250Sensor:0] DMP ready! Waiting for first interrupt... [INFO ] [MPU9250Sensor:1] Connected to MPU9250 (0x71) at address 0x69 [INFO ] [MPU9250Sensor:1] Flip front to confirm start calibration [DEBUG] [MPU9250Sensor:1] Starting calibration... [INFO ] [MPU9250Sensor:1] Gently rotate the device while it's gathering magnetometer data [DEBUG] [MPU9250Sensor:1] Calculating calibration data... [DEBUG] [MPU9250Sensor:1] [INFO] Magnetometer calibration matrix: [DEBUG] [MPU9250Sensor:1] { [DEBUG] [MPU9250Sensor:1] 134.978104, 1.554181, -0.000397, -0.016114 [DEBUG] [MPU9250Sensor:1] 107.958794, -0.000397, 1.532582, 0.016181 [DEBUG] [MPU9250Sensor:1] 161.959076, -0.016114, 0.016181, 1.508269 [DEBUG] [MPU9250Sensor:1] } [DEBUG] [MPU9250Sensor:1] Saving the calibration data [DEBUG] [Configuration] Saved configuration [DEBUG] [MPU9250Sensor:1] Saved the calibration data [INFO ] [MPU9250Sensor:1] Calibration data gathered [DEBUG] [MPU9250Sensor:1] Enabling DMP... [DEBUG] [MPU9250Sensor:1] DMP ready! Waiting for first interrupt... [INFO ] [WiFiHandler] Setting up WiFi [INFO ] [WiFiHandler] Loaded credentials for SSID and pass length 63 [DEBUG] [WiFiHandler] Status: 6 [NOTICE] OTA updates allowed [NOTICE] OTA updates disabled by timeout, this is not an error ...[INFO ] [WiFiHandler] Connected successfully to SSID ' ', ip address [INFO ] [UDPClient] Looking for the server... [INFO ] [UDPClient] Looking for the server... <Restart MCU> ets Jul 29 2019 12:21:46 rst:0x1 (POWERON_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:1044 load:0x40078000,len:10124 load:0x40080400,len:5828 entry 0x400806a8 [INFO ] [SlimeVR] SlimeVR v0.2.2 starting up... [INFO ] [Configuration] Found up-to-date configuration v1 [DEBUG] [Configuration] Found calibration data directory [DEBUG] [Configuration] Found sensor calibration for MPU9250 at index 0 [DEBUG] [Configuration] Found sensor calibration for MPU9250 at index 0 [INFO ] [Configuration] Loaded configuration [INFO ] [MPU9250Sensor:0] Connected to MPU9250 (0x71) at address 0x68 [DEBUG] [MPU9250Sensor:0] Enabling DMP... [DEBUG] [MPU9250Sensor:0] DMP ready! Waiting for first interrupt... [INFO ] [MPU9250Sensor:1] Connected to MPU9250 (0x71) at address 0x69 [WARN ] [MPU9250Sensor:1] No calibration data found for sensor 1, ignoring... [INFO ] [MPU9250Sensor:1] Calibration is advised [DEBUG] [MPU9250Sensor:1] Enabling DMP... [DEBUG] [MPU9250Sensor:1] DMP ready! Waiting for first interrupt... [INFO ] [WiFiHandler] Setting up WiFi [INFO ] [WiFiHandler] Loaded credentials for SSID and pass length 63 [DEBUG] [WiFiHandler] Status: 6 [NOTICE] OTA updates allowed ...[INFO ] [WiFiHandler] Connected successfully to SSID ' ', ip address [INFO ] [UDPClient] Looking for the server... [INFO ] [UDPClient] Looking for the server... ```
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/SlimeVR-Tracker-ESP#333