-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complete configuration being wiped #7128
Comments
Couple of point: |
I forgot to add that this happened on my Matek F405-WSE. |
Testing but quick note: I've been using a F411-WSE on 3.0 since 2.6 came out and have not seen the issue. Are we sure that the problem is not people forgetting to type save? :) |
I am sure that is not the problem. |
Seriously?! Sorry, we are very dumb peoples... |
Haven't seen this issue on F411-Wing... yet. Have reflashed the board several times this week and the only difference from the above mentioned steps is that I do not do 3. Choose "Airplane without a tail" platform, but the rest is all the same. The firmware is the one with double softserials enabled. |
Experienced it a few months back using development FW. Was an F411_wing. The Windows configurator has become very sluggish in 3.0. PID, Advanced and OSD tabs are very slow to open, And the reboots are slow sometimes too. I've got into the habit of closing the configurator and power cycle the FC (USB only) after a flash. And do the same after loading diff all files. |
that's known because of a lot more stuff get's loaded on these pages compared to older versions. The developers know about this and will address it in the future. But that means a lot of rework how the Configurator communicates with the FC. For now we have to live with it. regarding the main issue: So there is something that can indeed happen to the flash memory to lose all the config. The latest added feature to the tracker firmware is a home save option that can restore the last home point after a power loss. So the Tracker is writing to the flash memory while it is running. I wonder if there is something in INAV that can write to the flash even when no settings is changed by the user and the plane was not armed and corrupts the flash storage? |
It would be good to know the status of the LEDs if someone can reproduce the issue. |
I've run into the problem a couple of times when restoring (parts of) diffs, but I cannot reproduce it reliably. |
its random, maybe 1 in 10/20 reboots... |
When you say "reboots" are you talking about rebooting through CMS or power cycles? |
This is a different story, happened to me yesterday just after posting my previous message. Copied maybe 25 diff lines because I have seen some red warning message and wanted to see what was it about. Without saving, and just exiting the CLI (which means reboot) and reconnecting to Configurator the setup message for selecting the type of vehicle appeared (as when starting from scratch). |
Yes. Unplug/ plus usb only, or battery only. |
Cool. Next time it happens check the LEDs. I want to rule out a faulty DFU boot button. |
I think it it very unlikely that this is a hardware issue. While two people have told me they encountered this issue before 3.0, the number of Facebook posts about this exploded after the latest release. |
It happened after a partial diff all load without saving and then close and reopen communications with configurator. Not even rebooting. |
I've noticed something strange. Following the steps requested to try and reproduce the issue, I noticed that after selecting the preset, I can go and click in the CLI or any tab. If I don't click away, the board reboots. Could this cause issues or miss something if I click away before this reboot? |
I ran some more tests today. This time with a F411WSE. I noticed a discrepancy in the reboot cycle after choosing these model defaults. Sometimes it reboots and other times it doesn't. As a side note. I have experienced the same issue with the OSD tab in 3.0. |
I am not sure if it's same issue. Wipe didn't happen since flashed and several power cycles. But at todays maiden after a not that hard crash all my settings are gone, too. I thought it may happened because lipo and gps unit have been ripped off and ejected, but sounds a bit related to this. Since I already set up everything again, I don't have a lot further details but will keep an eye on this. Regards, Ingo |
Suffering from this issue, these are the steps I take on a Matek 765. Flash board with Inav using the latest configurator. Sometimes the settings are saved, sometimes not. I "think" the mixer gets reset to default too as it asks me to configure it after a couple reboots (I'm not sure if that little popup the first time you connect is supposed to do it or not). I've flashed it 2 or 3 times and the issues persist. |
It just happened to me again. I flew the plane this morning, all well setup, all good and great! Arrived at home, plug the USB to check/modify one thing and the board is clean again.... (F411-wse) |
Nope, still cannot reproduce. Neither with continuous trim on nor off. |
I tried on an F765 yesterday a lot. With presets applied, aborted by tab change, diff transferred and many other usual and unusual actions. Could not reproduce. Also tried a few times with an F411-WSE with no "luck". Will do more tests. F411WSE seems to be the most prominent one. |
just happened to me. Matek F411WSE. the entire board was wiped. Did not even show up as a comport when plugged in to computer. I had to hold the boot button to get into DFU mode to reflash. Luckily, from knowing about this issue, i grabbed a diff yesterday. last things i did: continuous servo autotrim is enabled. |
@JulioCesarMatias OK I have the mechanical trims set up and iNav tuned on 5.0.0. I am in a position to test a bug fix version now. I will will hang fire though until the results of @cpwilson have been reviewed. As I expect another test on this exact build will have little value now. |
Thank you for doing this @cpwilson. Can you confirm you were testing short power on/power off cycles (which normally attempt to write to the EEPROM on boot up) ? |
No problems at all. I simulated 'real life' usage as if I was at the field with powering on, arming the FC then disarming it an powering off, all via the flight pack. Did that a few times and had a couple of USB connections to it as well to check config still there. So in answer to the short power on/power off cycles question I would say my shortest power cycle was possibly 2-3 mins. |
@cpwilson, just a couple of other things to put the results in context if that is OK? Did you arm the aircraft Many thanks. |
After upgrading from 3.0.2 to 5.0.0 this same issue started to happen to me also. Really annoying. |
Did you arm the aircraft Did you fly the aircraft Do you have autolevel permanently enabled in the configuration. |
Can you try without servo autotrim? (Recommended for everyone running into this issue.) |
@cpwilson thank you for the info, and sorry, yes I meant autotrim. |
Can anyone clarify when autotrim is written, I thought is was only written to EEPROM on disarm. |
Correct. |
Hello everyone, in general, I can repeat this problem forever, I attach a video, I don't save anything, I just connect and disconnect the usb and the configurator several times and after a few attempts the settings are cleared. Matek F405SE Desktop.2022.07.25.-.01.04.13.01.mp4 |
OK so with AUTOTRIM disabled I managed about 10 power cycles with arming the FC with no issues. |
So even if you did pull the battery immediately after disarming, we know it was not down to the autotrim save. The next question is, does anything else get written to EEPROM when the aircraft is disarmed ? It seems to me that although the chances of autotrim causing a config wipe at the field are very small (perhaps if pilot disarms just before a battery-ejecting crash), the chances of it causing a config wipe on the bench are relatively high. For that reason alone, I think autotrim should only be written when the pilot saves explicitly using the sticks. |
On v5.0.0 yes, that will be fixed in v5.1.0 with PR #8216 |
Agreed. |
I've discovered the cause. You need to unplug and plug quickly and it happens. |
Think I just suffered this for the first time ... and not on a Matek FC, FLYWOOF411in this case. I was connected to Configurator whilst powered from the flight battery. Disconnected battery power then disconnected a few seconds later from Configurator I think by pulling out the USB connector without disconnecting from Configurator properly (done this many times before though without problems). Can't think of any reason the FC would have been talking with Configurator at the time it was disconnected, don't use any of the Auto trim stuff. Only recent change was an update from the master just before this happened (last master update before that was a couple of weeks ago). Very strange. |
I had it 2 times on wingFC on 5.0.0, trying now on 5.1.0 |
I use matek h743 v2 board for Diaton r690 aircraft
Yes you were right, I forgot to save
thank you
have a nice day
…On Wed, 22 Jun 2022, 14:12 dcamptell, ***@***.***> wrote:
My config was complete and had been powered up a few times without being
plugged in via USB started it up and tested everything and it was fine.
Took it to the feild and nothing when I plugged battery in. I'll see if it
happens again and watch for the continue trim on the servo on a crash
thanks for the reply!
On Sun, Jun 19, 2022, 2:24 AM b14ckyy ***@***.***> wrote:
> @dcamptell <https://github.com/dcamptell> you have to make sure you give
> your FC time to save the config before you power it down. Especially on
> F411 Boards the save process and checksum creation can take up to 3s.
Allt
> he recent config wipes I have seen that happened for others where caused
by
> powering down the FC too quickly after clicking safe or in one case
after a
> crash. The Crash case happened because the Pilot disarmed short before
> impact (with Continuous auto trim active, so that disarm triggers a safe)
> and then the crash ejected the battery and this wiped the config.
>
> There is not much you can do about it beside just wait a bit before you
> power down the FC after making any change or after disarming.
>
> —
> Reply to this email directly, view it on GitHub
> <#7128 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AYXITKQYA5NREI6AXNVLG2LVP3RMNANCNFSM46ZMSYEA
>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#7128 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATZCJV7GY2TG6GBTPD6UVJDVQLNWNANCNFSM46ZMSYEA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Calculated, but actually used only in manual.
…On Sun, Jul 17, 2022, 12:43 PM MartinHugh ***@***.***> wrote:
Auto trim is for Acro
Corrections welcome, but I understood that Auto trim is calculated in all
modes except Manual.
—
Reply to this email directly, view it on GitHub
<#7128 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACW5TR7D43IHYDRD4P4CAX3VURO5FANCNFSM46ZMSYEA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@P-I-Engineer Nope it trims the servos after the Mixer level so the trim is actually used Everywhere. |
Still not fixed, just happened on a Speedybee 405 mini and inav 7.1.2 |
@krasen1234 |
This just happened to me! Matek F405 TE mini - unplugged power then powered on again quickly and it reset the FC to factory settings iNav 8.0 |
Please see the comment just above yours. Also you might read any of the other comments, where it's explained that if you yank the battery power while the settings are being written, then yep you'll have corrupted settings. Half old settings, half new, which is invalid so the settings are cleared. |
There seems to be an issue in 3.0 where the flight controller randomly loses its configuration. I had this problem once but assumed it was something I did wrong. However, since the 3.0 release, at least two other users on FB reported this problem so I think it is a bug.
The steps I took to get run into this problem were:
diff
from a previous 3.0 setupdiff
The problem is I have done these exact steps 10's of times with the RC's and older beta builds, and only encountered this problem once. So far I have also not heard anyone running into this issue multiple times. I wouldn't know how to reproduce it again.
I realize that this makes it very difficult to find the cause so I'm opening this issue to collect more experiences. Maybe it rings a bell for someone.
The text was updated successfully, but these errors were encountered: