iNavFlight / inav

INAV: Navigation-enabled flight control software
https://inavflight.github.io
GNU General Public License v3.0
3.19k stars 1.49k forks source link

Matek H743-WLITE flight controller crashes and stalls when EEPROM is saved without reboot on V7.0.0(stable) #9585

Open chucky-whiskers opened 11 months ago

chucky-whiskers commented 11 months ago

PLEASE DELETE THE TEXT ABOVE AFTER READING AND UNDERSTANDING IT


Current Behavior

INAV runs properly on flight controller when configurator is connected until EEPROM is saved without a reboot. Radio connection is still present, but the servos and motors lock up and receive no commands (even in manual mode). Configurator also can no longer communicate with FC until rebooted.

Steps to Reproduce

  1. Flash INAV v7.0.0 (latest stable) to Matek H743-WLITE
  2. Configure any setting saved to EEPROM
  3. Save without reboot
  4. Try to move control surfaces

Expected behavior

The EEPROM settings should save and the program should continue to run without glitches.

Suggested solution(s)

Force a reboot when saving all settings or find the glitch in the program. I'm worried that something like auto-tune will save in-flight and cause the system (and plane) to crash.

Additional context

I HAVE TRIED REFLASHING FIRMWARE.

https://pastebin.com/g2aArQcd

MrD-RC commented 11 months ago

Not a solution. But hopefully it will put your mind at ease. No settings are save in flight. You have to disarm to trigger that save event. Then it is only continuous servo trim and stats that will do this.

Auto tune and auto level trim do not call for the settings to be saved.

rmaia3d commented 10 months ago

Could this be related to the compiler toolchain change for Inav 7 and optimization levels conflict that has already been discussed here?

https://github.com/iNavFlight/inav/issues/8905#issuecomment-1495278006

Jetrell commented 10 months ago

@chucky-whiskers I agree with your observation. Do you also experience problems with this flight controller refusing to connect to the configurator, when black box logging is enabled ? I've found this to be the case with every SD card and workaround I have tried. And nothing short of disabling the logging helps.

chucky-whiskers commented 10 months ago

I have not used an SD card or logging with this flight controller yet.

b14ckyy commented 8 months ago

Can you please check if this is still an issue with 7.1 RC1? Then we can have a look again.

Jetrell commented 8 months ago

Yep. Its still a problem. Especially when logging is enable. IF you're lucky to get it to log in the first place.

b14ckyy commented 8 months ago

OK testing time tomorrow. Have not yet updated my clouds above 6.1.1

skumor-foreflight commented 4 months ago

I am having this issue while saving custom programming logic. Once I save receiver input freezes

RickMod commented 3 months ago

Same issue on Matek H743 Wing V2 Inav 7.1.1 FC firmware 7.1.2

Found about the issue during OSD setup. Lucky me, as I had continuus servo trim on, and planned Maiden with fpv, not classic. 2.4m glider wing, ~1.5kgs, flying by itself .... quite scary i would say.

Regarding black box SD card: it was quite frustrating before i found solution which is: do not to use it :)