#How do I install the default Arduino bootloader, onto a Uno with MF firmware?

1 messages · Page 1 of 1 (latest)

analog cove
#

I have a Nano I want to program with a UNO, but the UNO has MobiFlight firmware.

So I want to removed the MF firmware and replace it with the Arduino bootloader.

Then I think the UNO will successfully program the Nano - which currently fails. See topic below.

manic venture
#

mobiflight firmware does not replace the bootloader

#

it is just a regular arduino sketch

analog cove
#

Hmmm the Arduino IDE says the programmer does not respond (the Uno)

manic venture
#

ok, so

#

if you mean the "user arduino as upload tool" for another arduino

#

there is a specific arduino sketch for that

analog cove
#

yep

manic venture
#

you install that first

#

it will replace the mobiflight firmware

manic venture
#

but can't you just flash the nano directly from the IDE?

#

I guess you have reasons for that

analog cove
#

Dodgy comms chip I think

manic venture
#

if it has the CH340G with no markings

#

it is a fake CH340 and you need the driver fix

iron carbonBOT
analog cove
#

I've installed the driver fix. Will try the ISP sketch

manic venture
#

ok

analog cove
#

My bad for not uploading the ISP sketch (just done it)

#

The programmer ISP fails. Will check bad casserole

#

Win 10 here

manic venture
#

yeah, I mean I havent really done this to a nano

#

I used the arduino flasher on an AtTiny85 chip (because it doesnt have any usb circuitry) when I made the first MobiFlight meetup badges

analog cove
#

MF still thinks it is a Mega

#

And the Ard IDE fails to upload a sketch

manic venture
#

what kind of nano is it?

#

I wonder if the usb VID and PID match uniquely a mega

#

there is the board json files under Boards\ that determine the supported boards, mobiflight uses the usb PID and VID to determine what board it is

#

and if there are multiple choices it should give you a menu to choose from

#

but if it doesnt it likely is a distinctive match but seemingly wrong then

analog cove
#

Nano 3 whats the best way to check VID and PID?

#

The Arduino IDE says
BN: Unknown board
VID: 0x0403
PID: 0x6001
SN: A5069RR4A

#

For all developers I highly recommend Microsoft's USBView debugger. If you don't have it already, you need it!

#

It's an FTDI serial USB chip.

analog cove
# manic venture what kind of nano is it?

The Mega, Uno, Nano all have these two lines:
"^VID_0403&PID_6001"
"^VID_0403\+PID_6001\+.+",

So its impossible for MF to decide the board type , if an FDTI serial chip is used?

"HardwareIds": [
"^VID_2341&PID_0043",
"^VID_2A03&PID_0043",
"^VID_2341&PID_0243",
"^VID_2341&PID_0001",
"^VID_1A86&PID_7523",
"^VID_0403&PID_6001",
"^VID_067B&PID_2303",
"^VID_0403\+PID_6001\+.+"
],

#

The Ebay vendor said his Nano 3's had the old style boot loader. Perhaps that is why MF cannot upload the firmware?

analog cove
#

Looking in MobiFlight\MobiFlight Connector\firmware there is no HEX file to reset the Nano.

Only Mega, Pro, Uno, RP_pico have reset hex files.

Perhaps if there has a Nano reset hex, uploading that might help.

analog cove
#

I've given up on this Nano 3 and will return it to Ebay.

I've ordered another which clearly shows "CH340G " on the comms chip.
On a positive note, I have learned a lot and thank @manic venture for his help.

analog notch
#

The old bootloader IIRC works at half the serial speed of the normal bootloader. I had a batch of Nanos with the old bootloader. I ended up updating the bootloader to the new version.

#

all worked after that

analog cove
analog notch
#

I used another Uno board as programmer connected on the ICSP port to the Nano.
The issue with the old bootloader is that it loads sketches at half the speed of the normal (115kbps), which Mobiflight uses.

#

There are many resources explaining how to do this.