#Almost all my configs are gone after updating to V10.0.2
1 messages · Page 1 of 1 (latest)
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
@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
@tame tangle please open a separate topic in #1028767888242376794
it's different, please open a separate thread
I deleted it, because i reloaded a backupfile and this is ok so far.
yes they are still showing as compatible however when i first launched V10 it said all my nanos were orphaned.
also here is the log.txt
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.
Go to %LocalAppData%\MobiFlight\MobiFlight Connector\Boards and drop the following file there:
ok
stop
the log tells me that all your four boards are connected and "discovered" correctly
no need to change the file
oh ok
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.
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
what do you mean
as you can see, the nanos no longer have anything attached to them
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.
?
just upgrade the firmware, never reset them. it also said the nanos were orphaned when i first launched v10
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
Hmhm
@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?
i have 9.7.0 running right now, im currentley in the process of downgrading them
yes
would i need 9.7.1 specifically?
yes. just to see if it works with the old version still... and there you can upload the old firmware too
ok sure, and on the topic of the displays, they started doing this
even when mobiflight is closed
not sure if thats related
so you have max7219 on the nanos?
yes, each one is on its own nano
that's the only device that is not compatible with a downgrade
😄
shoot!
ok... don't go back to 9.7.1
ok
in v10?
yes
dang
what would cause the serials to get changed?
sorry to barge in, I suppose @analog dirge does not have mfmc files saved with his device configurations? That he can just load again?
do those get saved automaticaly or would i have to create those my self?
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
ok
so
i have one .mfmc saved under the name "MobiFlight Nano"
should i try and load it under one of the nanos?
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.
i have a sketch that prints the eeprom to serial, if that is what your are after
Yes
hang on a sec
this will read the eeprom and print to serial first as hex code and then as ascii code
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...
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?
ok would this be done somewhere in MF?
uhh it was most of the pins on 2 of the nanos
small issue, i cant access the nanos anymore without breaking my panel (bad design on my part)
ok
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
yea thats another problem, i dont know whats connected to what pin
so if recreating the devices is difficult because you can't see the wiring connections anymore, then this is another way.
so if it tells me that it would be great
ok so i have it in the IDE and its compiled, should i upload it to one of the nanos?
just leave the target nano connected
ok
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..
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
close Mobiflight
its closed
reboot
ok one second
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
rebooting your pc should give you a clean slate on serial ports use
ok yea its 9
yea all the others are disconnected
make sure to select the proper type of board in the IDE
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 ⸮
dang... try to load the blink sketch
loading sketches does not erase the eeprom
hopefully blink will go through
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
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
yea thats the only one im getting
because serial communications use those pins
so, please disconnect whatever is on those pins
you have to correct this anyway
not break but take it apart in a way its not meant to
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
ok but then why was it working in MF before?
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
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
can't you just peek inside the panel and see if there is anything connected to those pins?
i designed it pretty bad, it was my first panel tbf
you can't configure devices to those pins, so I am confident you are most likely mistaken about using pins 0 and 1.
yes
I am not an eeprom format expert, but I think it is corrupted
copy that to a text file and post it here
ok, there is always the possibility that the Nano bootloader got corrupted and that is why it is not responding.
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
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
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.
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
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.
ok ill try it
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.
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
im going to see if i can get anything out of this one
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
oh whats the problem?
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
i did just buy 2 new nanos, i can try sawpping them. i would need to take my panel appart first
one nano wont let me upload the sketch, however they all show up in mobiflight
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
can you dump the eeprom from the one that still shows empty?
or is that the first dump
i mean this one
this one still shows empty and the other one wont let me upload the sketch
isnt that the eeprom?
if that's the eeprom dump from the one where you have not recreated the config yet - perfect
i just wanted the confirmation
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
I can confirm the same type of corruption, where the device config data invaded the board name and serial number area of the EEPROM, happened to me once about a month ago.
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?
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
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:
- Setting up a sketch which writes a "1" to the first location of the config
- 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?
@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
This is the config from the second Nano, not sure if you have already restored him.
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...
@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?
The last version I used before updating to v10 I believe was 9.7.1 and I updated around 20 minutes before I originally made the post
This one I did restore using the EEPROM
There are 4 buttons however there’s also a 7 segment display connected as well as 2 rotary encoders
I can do this when I get home, on my way to school rn lol. I’ll ping you when I have it or if I’m still having trouble
I mean before this update. But 9.7.1 helps too!
@cinder heron hey i was able to get the EEPROM off the last nano. you were right, i needed to use the old bootloader
Attached id the config file for Nano3.
For the Nano 2 it seems that there are two additional Buttons, but I am not sure:
Button 3but I can't see on which Pin
2)Button 1on 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.
thanks!
ok ill try re-dumping nano 2
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
It's the same as before, so I can't do more as I have provided/sayed (two more buttons as in the config I have uploaded) before.
Sorry for this!
That’s alright, I could just trial and error it until something works lol
hey it works!
thank you guys so much for helping me with this
all 3 nanos are working again
Glad to hear this