#Almost all my configs are gone after updating to V10.0.2

1 messages · Page 1 of 1 (latest)

analog dirge
#

I just updated to version 10.0.2 on MobiFlight and all 3 of my nanos lost there config. What do I do?

#

ok update: still having the issue but now one of the displays on the nano's is fully lit up and i dont know why

#

i closed mobiflight and its still doing it

strong swan
#

@analog dirge hey there! sorry to hear your experiencing trouble.

#

will they show as "compatible"?

#

please enable logging (debug) and share your log.txt file - you can find the file in the installation folder

#

%LocalAppData%\MobiFlight\MobiFlight Connector

strong swan
#

@tame tangle please open a separate topic in #1028767888242376794

strong swan
#

it's different, please open a separate thread

tame tangle
#

I deleted it, because i reloaded a backupfile and this is ok so far.

analog dirge
strong swan
#

when they show as compatible, that means they are not recognized properly

#

your log file is very incomplete

#

probably you have to set the debug level to DEBUG

#

just try the following.

analog dirge
strong swan
#

stop

#

the log tells me that all your four boards are connected and "discovered" correctly

#

no need to change the file

analog dirge
#

oh ok

strong swan
#

so what's the problem now exactly, I am confused.

#

The boards should show correctly with their board names

#

you should see the names in the status bar, and also in the mobiFlight board settings

#

can you confirm that.

analog dirge
#

yes there all in the MobiFlight Modules tab in settings with the correct names

#

the problem is when i updated the configs for all 3 of my nanos somehow vanished

strong swan
#

what do you mean

analog dirge
#

as you can see, the nanos no longer have anything attached to them

strong swan
#

ok. yes.

#

can you click on one please

analog dirge
strong swan
#

did you ever reset the boards? Or did you just upgrade the firmware?

#

can you try running with 9.7.1 and see if that makes a difference.

#

?

analog dirge
#

just upgrade the firmware, never reset them. it also said the nanos were orphaned when i first launched v10

strong swan
#

if that happens, that means, that the serial has changed.

#

@cinder heron I am supporting here

#

just looking at the log.txt file everything is looking normal

cinder heron
#

Hmhm

strong swan
#

@analog dirge it would be extremely helpful if you could download the 9.7.1 zip file. Extract it in a temp-folder

#

and then downgrade the firmware.

#

did you have 7-segment displays on your nano?

analog dirge
#

i have 9.7.0 running right now, im currentley in the process of downgrading them

analog dirge
#

would i need 9.7.1 specifically?

strong swan
#

yes. just to see if it works with the old version still... and there you can upload the old firmware too

analog dirge
#

ok sure, and on the topic of the displays, they started doing this

#

even when mobiflight is closed

#

not sure if thats related

strong swan
#

so you have max7219 on the nanos?

analog dirge
#

yes, each one is on its own nano

strong swan
#

that's the only device that is not compatible with a downgrade

#

😄

#

shoot!

#

ok... don't go back to 9.7.1

analog dirge
#

ok

strong swan
#

can you enable beta and update to the latest beta

#

it is in settings.

analog dirge
#

in v10?

strong swan
#

yes

analog dirge
#

ok

#

ok im on the beta

#

10.0.2.2

#

there still showing no devices on the nanos

strong swan
#

dang

analog dirge
#

what would cause the serials to get changed?

safe dock
#

sorry to barge in, I suppose @analog dirge does not have mfmc files saved with his device configurations? That he can just load again?

analog dirge
#

do those get saved automaticaly or would i have to create those my self?

safe dock
#

If Mobiflight reports the boards as empty is there really a chance the configs are still in the eeprom?

#

No. the mfmc file is just a backup of the EEPROM config with all the devices. You have to tell the Modules dialog you want to save it.

#

it is not necessary until sh*t happens

analog dirge
#

ok

#

so

#

i have one .mfmc saved under the name "MobiFlight Nano"

#

should i try and load it under one of the nanos?

cinder heron
#

I can upload a program which dumps the eeprom content. But I have to prepare the description, mainly how to make a serial connection to get the output.
I can not get it done this evening, will be tomorrow.

#

And I would like to test it before I upload it. Did it to long ago.

safe dock
#

i have a sketch that prints the eeprom to serial, if that is what your are after

cinder heron
#

Yes

safe dock
#

hang on a sec

#

this will read the eeprom and print to serial first as hex code and then as ascii code

cinder heron
#

Once we see what is in the eeprom it can be decided if we can restore it.

#

Best would be to get it in ASCII format, not hex. Too late for me to check the code, sorry.

#

Have to leave now...

safe dock
#

you get both

#

@analog dirge can you please try to load this sketch and run it in you nano... make sure to open the serial monitor set to 9600 baud rate.

#

it will just read the eeprom and dump it to serial. You should then select the output from serial monitor and save it to a txt file please.

#

frankly it is a lot to do, was the config a large number of devices?

analog dirge
#

ok would this be done somewhere in MF?

analog dirge
safe dock
#

maybe it is easier to just re-create the devices.

#

no, the sketch goes to arduino IDE

analog dirge
#

small issue, i cant access the nanos anymore without breaking my panel (bad design on my part)

analog dirge
safe dock
#

no wiring needs to be changed

#

you just need access to the usb port connected to your PC, and running arduino IDE, instead of Mobiflight Connector

#

even if there are remnants of the config there, it would be useful as it will most likely say which pins are used for what

analog dirge
#

yea thats another problem, i dont know whats connected to what pin

safe dock
#

so if recreating the devices is difficult because you can't see the wiring connections anymore, then this is another way.

analog dirge
#

so if it tells me that it would be great

safe dock
#

so, I suggest you open arduino IDE and load the sketch

#

I would disconnect all boards

analog dirge
#

ok so i have it in the IDE and its compiled, should i upload it to one of the nanos?

safe dock
#

just leave the target nano connected

analog dirge
#

ok

safe dock
#

do you have serial monitor open and set to 9600 baud?\

#

if you are sure your target board is correct in IDE, go for it..

analog dirge
#

no it keeps saying COM5 isn't available, how should i change it to the correct COM

#

its been a wile since ive used the IDE

safe dock
#

close Mobiflight

analog dirge
#

its closed

safe dock
#

reboot

analog dirge
#

ok one second

safe dock
#

do you have Cura?

#

that is one known app to capture the serial ports

analog dirge
#

No I don’t

#

I can download it once my computers back up

safe dock
#

no, I didn't mean for you to load Cura if you don't have it

#

I am saying Cura is known to cause interference because it captures and does not release the serial ports, thus preventing other apps from using them

analog dirge
#

ohh

#

my fault

#

ok so its either com9 or com4

safe dock
#

rebooting your pc should give you a clean slate on serial ports use

analog dirge
#

ok yea its 9

safe dock
#

I suggest only having the target nano connected.

#

so there is no confusion

analog dirge
#

yea all the others are disconnected

safe dock
#

make sure to select the proper type of board in the IDE

analog dirge
#

yea board and processor are correct

#

im going to upload it now, i have the serial port open on 9600 baud

#

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x31 avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x37 avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x2c avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x4f avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x4b avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x3b avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x0d avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x0a avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x0a avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x0a

#

fire

#

an error

#

it failed to upload

#

the serial monitor gave me

safe dock
#

dang... try to load the blink sketch

#

loading sketches does not erase the eeprom

#

hopefully blink will go through

analog dirge
#

ok its uploading

#

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x31 avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x37 avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x2c avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x4f avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x4b avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x3b avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x0d avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x0a avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x0a avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x0a Problem uploading to board. See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.

#

failed again

safe dock
#

Is there no error message other than what you show?

#

I remember there is a way to turn avrdude output to verbose in the IDE options

analog dirge
#

yea thats the only one im getting

safe dock
#

ohhhh are you sure you are NOT USING pins 0 and 1 in the Nano

#

those are not allowed

analog dirge
#

uhh

#

i probably am

safe dock
#

because serial communications use those pins

#

so, please disconnect whatever is on those pins

analog dirge
#

uhh, i cant

#

i would need to break my pannel

#

well

safe dock
#

you have to correct this anyway

analog dirge
#

not break but take it apart in a way its not meant to

safe dock
#

you could not have been using the arduino Nano with devices connected to pins 0 and 1.

#

and still be able to upload firmware to those boards

#

it doesn't work that way

analog dirge
#

ok but then why was it working in MF before?

safe dock
#

maybe you uploaded the firmware before connecting devices to those pins, I don't know

#

the MF user interface also does not allow you to assign devices to those pins

#

so, I don't know what you did

#

or maybe you are mistaken and did not use those pins

analog dirge
#

ok, ill try and see what i can do about that. but i was able to upload to one of the other nanos having issues

safe dock
#

can't you just peek inside the panel and see if there is anything connected to those pins?

analog dirge
#

i designed it pretty bad, it was my first panel tbf

safe dock
#

you can't configure devices to those pins, so I am confident you are most likely mistaken about using pins 0 and 1.

analog dirge
#

i can do it, just not rn

#

i got this out of one of my nanos

safe dock
#

ok

#

is that one of the faulty nanos?

analog dirge
#

yes

safe dock
#

I am not an eeprom format expert, but I think it is corrupted

#

copy that to a text file and post it here

analog dirge
#

thats nice,

#

ill do that

#

i also got it out of the other nano

#

2/3

safe dock
#

ok

#

good

#

what was causing the upload to fail?

analog dirge
#

no not the one failing to upload

#

i have 3 nanos

#

2 of them uploaded

#

the 1 didnt

safe dock
#

ok, there is always the possibility that the Nano bootloader got corrupted and that is why it is not responding.

analog dirge
#

hmm ok, also for whatever reason its not leting me copy the things off the resource monitor so unless i can export it somewhere the best i can do is a screen shot

safe dock
#

you may need to reload the bootloader which implies connecting through the ICMP pins.

#

I think Ralf just needs to see the state of the EEPROM

#

screenshots might be ok

analog dirge
#

ok

#

in that case heres the other nano

safe dock
#

that one doesn't look corrupted but if I am counting correctly, I only see seven devices which is hardly worth the trouble of trying to save instead of recreating.

analog dirge
#

yea thats the one with a small amount, 2 of the devices was me actually testing mobiflight for the first time, there just left over. i can recreate that one no problem. just not sure what number is the corresponding pin for the input

safe dock
#

you can create an all button config for all pins

#

in Mobiflight

#

then as you press the buttons or encoders in the panel, you can see which pins are triggered in the Mobiflight log.

analog dirge
#

ok ill try it

safe dock
#

or if you prefer to wait for Ralf and see if he has another solution.

#

Please save your devices to a mfmc file from now on.

#

If you had that file, you can just factory reset the board, reload the firmware and reload the devices.

analog dirge
#

ok i will def save them lol

#

i just finished setting up one of the nanos

#

all the buttons are working as they should now

#

so

#

now its just the other 2

analog dirge
strong swan
#

that would be very helpful

#

we don't understand why this happened and the information from the eeprom might give us a hint

#

both dumps are ok

#

they show a problem

analog dirge
#

oh whats the problem?

strong swan
#

i will have to take a look at the firmware code together with Ralf - the serial number and the device configuration information overlap in the first dump

#

so how many are still not recognized correctly?

#

can you please keep one of them bricked? so that we might be able to test something and recover most of the info?

#

i understand you want to use your cockpit again. Maybe you have a spare nano and can swap it out

analog dirge
#

i did just buy 2 new nanos, i can try sawpping them. i would need to take my panel appart first

analog dirge
#

one of them i just finished remaking the config for, one is still empty and the other i cant run the sketch

#

i can leave the empty one empty if you would like

strong swan
#

can you dump the eeprom from the one that still shows empty?

#

or is that the first dump

strong swan
analog dirge
analog dirge
strong swan
#

if that's the eeprom dump from the one where you have not recreated the config yet - perfect

#

i just wanted the confirmation

analog dirge
#

yea no problem, i was finnaly able to get the back off the panel so if you would like i can try swapping the nano that wont upload with a brand new one

safe dock
#

I just cleared the EEPROM, reloaded the firmware and reloaded the config.

#

I am guessing Mobiflight only writes config data when uploading a config to a board, so somehow the starting address is not correctly set.

#

from my adventures exploring the EEPROM, it seems to me the starting address for the device config is a fixed offset (decimal +60), so the firmware knows where it needs to start writing. How can this be somehow lost?

strong swan
#

there was a short period when we tried to use the microcontroller info for the serial

#

it turned out the IDs were not unique

#

we changed it back to the old style - i wonder if it has to do something with that.

#

the offsets in the eeprom where name, serial and config are starting haven't changed in years

#

i will do some digging tomorrow with Ralf

cinder heron
#

OK, it seems that the EEPROM is not corrupted and I know what happens. But for know I don't know why this happens.
On detection for new boards, which is done in the serial generation function, 0x00 is written to the first Byte of the Config within the EEPROM. This avoids sending multiple 0xFF which is the original content of an EEPROM. It seems that exactly that happens. As it is very seldom I guess it happens when coming from the UniqueID.
We habe two different ways:

  1. Setting up a sketch which writes a "1" to the first location of the config
  2. Rebuild the config from the ASCII dump. It might be easier, but then I need the ASCII dump like in the screenshots from all 3 affected Nanos. And not as a screenshot but as copy and paste into a .txt file.
#

@analog dirge As I understood you have still two Nanos w/o the config, one of them the dump sketch is running and the other one not.
I guess the difference is the old and new bootloader. This has to be choosen in the Arduino IDE.
Which of the screen shots is the missing config?

cinder heron
#

@analog dirge This is the config from the screenshot. Is it correct that "only" 4 Buttons are configured?

#

Now we have to dump the EEPROM content from the missing one.

#

The Nano clones (or an old original one) can be shipped with an old bootloader.
This can be choosen as per screenshot:

#

If you already tried this, switch to ATmega328P (w/o (Old Bootloader))

#

But first you have to choose the Nano Board, but I guess you already did this.

#

Once you uploaded the screenshot I can create the config file.
Better would be to mark the output with the mouse, copy it and paste it here

#

This part is from interest, everything until the special characters appear

cinder heron
#

And what I have written above I am not sure anymore. It seems that something other has happend to the EEPROM, but can't figured it out...

cinder heron
#

@analog dirge Sorry, one more question. Which was the last version from the connector you have used before updating to the new version. Or do you in which month you did the last update?

analog dirge
analog dirge
analog dirge
analog dirge
cinder heron
analog dirge
#

If you mean before 9.7.1 then it was 9.6.0

#

Sorry if I’m misunderstanding you

analog dirge
#

@cinder heron hey i was able to get the EEPROM off the last nano. you were right, i needed to use the old bootloader

cinder heron
#

For the Nano 2 it seems that there are two additional Buttons, but I am not sure:

  1. Button 3 but I can't see on which Pin
    2)Button 1 on Pin 10
    The EEPROM content is very strange, never seen this before and we have no clou how this could happen.
    The only chance is to rerun the eeprom dump if you haven't already uploaded the new config. Maybe something went wrong while printing the content.
analog dirge
analog dirge
#

i havent uploaded anything to it yet

#

0 == #MobiFlight Nano2Button 3:1. 32 == 10.Button 1: SN-4FE-F44.2.3 64 == .4.15.1.HDG and SPEED:8.5.6.1.SP 96 == D:8.7.8.1.HDG:1.9.SPD Select:1.1 128 == 0.HDG Select:1.11.SPD Managed:1. 160 == 12.HDG Managed:⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮

#

this is what i got out of the second dump from nano 2

#

you know what interesting, nano 3 is showing up as compatable now. i wonder if thats because the sketch is on it instead of the mobiflight firmware

#

just tested, the nano 3 config works :D

cinder heron
analog dirge
#

That’s alright, I could just trial and error it until something works lol

analog dirge
#

hey it works!

#

thank you guys so much for helping me with this

#

all 3 nanos are working again

cinder heron