Random config change (aka invalid setting gyro_hardware_lpf)
Hello.
We would like to rise another configuration/EEPROM issue parallel to the wipe bug (https://github.com/iNavFlight/inav/issues/7128). This one is much older and didnt got much attention until today and seems to exist back to 2.0.
Current Observation: Any arbitrary write operation (like CMS save, auto-tune/autotrim, Save via configurator, use of odometer) can possibly change unwanted a value of the EEPROM. Most common is the gryo_hardware_lpf which value doesnt match the enum after the issue appears. This is very common as it prompts in the OSD after next boot and prevents arming.
However, we found out that other options are also affected but not that prominent as the "new-value" will not be caught by the sanity checker.
Other options that will often be changed unknowingly are:
- acc_lpf: will be changed from 15 to 102
- heading_hold_rate_limit: will be changed from 16 to 101/102
Less common are also: rc_expo, failsafe_mission and nav_wp_radius
We investigated more than 30 occurances as detailed as possible and while the gryo_hardware_lpf is the most common, there had been craft_type changes over night (plane woke up as boat), changes to autolaunch climb angle and other unique occurances.
Marc was so kind to publish a FB-poll regarding this with the results that: 74 pilots never saw this 25 pilots saw it randomly more than once 17 pilots saw it randomly once 6 pilots saw it more than once after flashing 2 pilots saw it once after flashing
Other toughts and findings:
- The trigger is mostly not a flash without full-erase option but most likely any write operation to EEPROM.
- Also there is no correlation of the operating system, iNav configurator or the use of speedybee adapter (3/32 had a speedybee tho).
- From what we know today, this happens equally distributed on F411, F405 and F7 boards - different to the wipe bug
- possible trigger (thanks shellixyz)
- saving the settings from the CMS
- save VTX setting in the CMS VTX submenu
- save settings with the sticks command (THR_LO + YAW_LO + PIT_LO + ROL_HI)
- changing profile with stick commands (battery or rate)
- servo autotrim mode
- saving the WP list
- calibration (mag, acc or opflow)
- save from the CLI
- save from MSP (GUIs, MSP_EEPROM_WRITE message)
- when disarming with stats enabled
- after autodetecting sensors
- continues autotrim
- "Could be a genuine request to change the configuration, but caused by an unexpected trigger or code path. At the API level of the settings change we don't do the validation (mostly) - that's delegated to the UI (CLI, Configurator via MSP, CMS) If that misbehaves - a setting can end up with an invalid value." (digitalentity)
Suggested Solution: Unfortunately none, I also cant tell if this is a duplicate or mitigated version of the wipe bug. It seems this happens on write operations while the wipe bug happens when reading, but thats just a guess.
To fix the issue, not only a cli: set gyro_hardware_lpf=256HZ is recommendet but also a whole check of a #diff and compare to an older backup of the configration!
Who does this impact? Who is this for?: Everybody
Additional context: ...as discussed with @digitalentity, @shellixyz & @b14ckyy
I had the LPF-invalid-message on my quad on last boot! Had to apply the 7" MR preset to get things back again! Another observation is that AHI and Side lines get disabled randomly!
AHI and Side lines get disabled
They are disabled by default starting from 3.0 so if you restore a pre-3.0 diff they will not be enabled.
I had the LPF-invalid-message on my quad on last boot! Had to apply the 7" MR preset to get things back again! Another observation is that AHI and Side lines get disabled randomly!
Or just use the CMS menu to re-apply the required LPF setting. Had this problem several times. Was never really sure of the cause ...
sure ... and thanks for the hint. The stupid thing is not to know the previous value in the field! As mentioned the applied defaults saved the moment but the pidffs vanished of course.
acc_lpf: will be changed from 15 to 102 heading_hold_rate_limit: will be changed from 16 to 101/102
I had the same error on iNav 2.6.1 !
Had tested iNav 3.0.0 on a model with F405-wing, but was not satisfied because of too high PIFF values after autotune. I reflashed 2.6.1 again with full chip erase and installed the old diff from 2.6.1. I'm really sure that full chip erase was selected, but I don't remember if I did the reflashing with Configurator 2.6.1 or 3.0.0. After reboot I could not arm and then discovered the above changed parameters.
Apparently not all important memory areas were deleted during the full chip erase. Maybe a problem with the full chip erase in Configurator 3.0?
Hey, just had this happen at the field. Only change was setting motor idle power, resulting in the following:
# status
System Uptime: 29 seconds
Current Time: 2041-06-28T02:04:00.000+01:00
Voltage: 0.00V (1S battery - NOT PRESENT)
CPU Clock=96MHz, GYRO=MPU6000, ACC=MPU6000, BARO=BMP280
STM32 system clocks:
SYSCLK = 96 MHz
HCLK = 96 MHz
PCLK1 = 48 MHz
PCLK2 = 96 MHz
Sensor status: GYRO=OK, ACC=OK, MAG=NONE, BARO=OK, RANGEFINDER=NONE, OPFLOW=NONE, GPS=UNAVAILABLE
Stack size: 6144, Stack address: 0x20020000, Heap available: 1728
I2C Errors: 0, config size: 7193, max available config: 16384
ADC channel usage:
BATTERY : configured = ADC 1, used = ADC 1
RSSI : configured = ADC 3, used = none
CURRENT : configured = ADC 2, used = ADC 2
AIRSPEED : configured = ADC 4, used = none
System load: 6, cycle time: 1009, PID rate: 991, RX rate: 49, System rate: 9
Arming disabled flags: NAV HWFAIL RX CLI SETTINGFAIL
### ERROR: Invalid setting: gyro_hardware_lpf
VTX: band: A, chan: 2, power: 1 (25 mW), freq: 5845 MHz
In the diff:
# master
set gyro_hardware_lpf = ### ERROR: VALUE 101 OUT OF RANGE FOR gyro_hardware_lpf
Had the exact same problem happening on the filed yesterday. gyro_hardware_lpf was set to 101. Seems to have happened after i flashed the 3.0.1 firmware from inav configurator 3.0.0 with full chip erase enabled. But only on the second or third power up afterwards.
I had this issue today too. New to INAV but it came out of the blue. I was lucky that I learned here how to remedy it, and also that I have a backup copy with the correct value to reference. I hope this doesn't happen again.
The same today. Calibrated magnetometer. INAV/MATEKF722MINI 3.0.1 Result:
gyro_hardware_lpf =101 acc_lpf_hz = 102 heading_hold_rate_limit = 101
Another spontaneous configuration change happened today:
- set align_board_roll = 1800
+ set align_board_roll = 1798
As per above. INAV/MATEKF405 3.0.1 Result:
gyro_hardware_lpf =101 acc_lpf_hz = 102 heading_hold_rate_limit = 101.
Also Config 3.01 Configuration Tab became un-responsive
Same issue here on iNav 3.0 on a fixed wing . Seems to succeed when i load the waypoints
Same issue here on iNav 3.0 on a fixed wing . Seems to succeed when i load the waypoints
What was the issue exactly in your case. And are you saying it fixed itself just by loading waypoints without changing any other settings ?
No the problem occurs when i load the waypoints! I have to change the gyro hz
Are the waypoints being loaded using Mission Control save to eeprom, pasting WP entries into the CLI or loading an already saved mission using stick commands ?
From the computer to fc
Happaned to me the first time since january. the things I did before I saw the error: Changed some OSD items, saved, Switched over to MWP Tools to edit Safe Home points, saved them, back to Configurator, Pulled a diff and a dump (because I was updating my Config templates). I then saw the error in the dump. As expected the Mag hold rate and ACC LPW are also set to 101 again.
F405 Wing, INAV 3.0.2.

I noticed this at the field yesterday (GYRO_LPF). This most likely happened when I changed some settings in the configurator a week or so earlier. These changes were on the modes page and enabling continuous servo trim. That is the only time I performed any saves since the last flight (which has nothing enabled to cause an auto save).
From my experience: all those things, together with https://github.com/iNavFlight/inav/issues/7128 looks like flash write operations errors due to voltage fluctuations.
I see that there is no Brownout reset (BOR) Level configured in iNav, not on F4, not on F7! Why?
For F7 there is no default BOR at all and the STM32 will only resets when supply drops below ~1.7 V (Vpdr Threshold). In range between 2.7 V - 1.7 V (brownout contition) flash memory may be unreliable because the latency (wait states) are too low for low voltage operation.
Need to clarify this for F4, but I believe it will be the same as F7 and F4 are very common in architecture.
One more thing with BOR: at very start of MCU BOR is monitoring too and holds MCU in reset state till threshold passed, this will prevent of flash operation too.
This is just my minds, I am not pretending that this is absolutely true :) In any case, setting BOR to >2.7V level will not break anything, but can solve various power supply issues.
In addition. BOR is really not needed till FW not changing internal flash.
And together with this 'experience' with internal STM flash I was with same behaviour on Extrnal SPI Flash chip, like Winbond 25 series, when short drop <5ms of supply voltave <2.9V, during write operation causes total corruption of flash at all.