Go Down

Topic: China Mega 2560 (Read 6808 times) previous topic - next topic

Docedison

Nick after I did it right... this was the result...


Atmega chip detector.
Entered programming mode OK.
Signature = 1E 98 01
Processor = ATmega2560
Flash memory size = 262144
LFuse = FF
HFuse = D8
EFuse = FD
Lock byte = FF
Clock calibration = 83
Bootloader in use: Yes
EEPROM preserved through erase: No
Watchdog timer always on: No
Bootloader is 8192 bytes starting at 3E000

Bootloader:

3E000: 0D 94 F6 F2 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3
3E010: 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3
3E020: 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3
3E030: 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3
3E040: 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3
3E050: 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3
3E060: 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3
3E070: 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3
3E080: 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3
3E090: 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3
3E0A0: 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3
3E0B0: 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3
3E0C0: 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3
3E0D0: 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3 0D 94 1F F3
3E0E0: 0D 94 1F F3 41 54 6D 65 67 61 32 35 36 30 00 41
3E0F0: 72 64 75 69 6E 6F 20 65 78 70 6C 6F 72 65 72 20
3E100: 73 74 6B 35 30 30 56 32 20 62 79 20 4D 4C 53 00
3E110: 42 6F 6F 74 6C 6F 61 64 65 72 3E 00 48 75 68 3F
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Nick Gammon

What was the MD5 sum of the bootloader?

I have to say at this stage that things look promising. After all, the board reports a signature.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Docedison

Nick please accept my apologies for my earlier behavior. The bootloader checksum is as follows <MD5 sum of bootloader = B9 49 93 09 49 1A 64 6E CD 58 47 89 C2 D8 A4 6C > there is aa sketch running and If I can get around the input, directly to the chip, that,s no real issue as I have the FTDI232 chip in s semi usable (SMT) format and wiring past the 8U is no issue. How difficult is it to re program the 8U? I bought one of those cheep avr programmers but it will be a week more in getting here. At this point I feel that I have a small issue with the USB comm link. It is about15 mins after 4 AM and I have to go to sleep for a while, Us Geezers don't need that much sleep so I'll be back in probably 4 or 5 hours. and, Nick Thank You a lot, really.

Doc
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Nick Gammon


It is about15 mins after 4 AM and I have to go to sleep for a while, Us Geezers don't need that much sleep so I'll be back in probably 4 or 5 hours.


Yes, well I'll be asleep too, more or less. :-)
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Nick Gammon


The bootloader checksum is as follows <MD5 sum of bootloader = B9 49 93 09 49 1A 64 6E CD 58 47 89 C2 D8 A4 6C >


Which happens to exactly agree with mine:

Code: [Select]
Atmega chip detector.
Entered programming mode OK.
Signature = 1E 98 01
Processor = ATmega2560
Flash memory size = 262144
LFuse = FF
HFuse = D8
EFuse = FD
Lock byte = FF
Bootloader in use: Yes
EEPROM preserved through erase: No
Watchdog timer always on: No
Bootloader is 8192 bytes starting at 3E000

Bootloader:

3E000: 0D 94 89 F1 0D 94 B2 F1 0D 94 B2 F1 0D 94 B2 F1
3E010: 0D 94 B2 F1 0D 94 B2 F1 0D 94 B2 F1 0D 94 B2 F1
...
3FFD0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FFE0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
3FFF0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

MD5 sum of bootloader = B9 49 93 09 49 1A 64 6E CD 58 47 89 C2 D8 A4 6C
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Docedison

So then I am left with the 8U chip being 1. Defective, 2. Unprogrammed or 3. Issues with the connector/input circuitry to the 8U. I didn't check the clock for the 8U. I did overlook that.  That leaves me with one question... Can the Mega be programmed If I 'cut' the end off of a PL2303 type USB to RS232 adapter or can I use an FTDI 232 as I have both the FTDI Chips as well as some PL23XX cable assemblies. This is of course to be done only if the 8U chip cannot be re-programmed. I haven't the tools to remove the 8U, Trying to do so w/o the solder re-work equipment would not be a great idea.  What I really have half a mind to do and that is just to toss the damned thing and buy a real one next month. I hate to be obligated to others for things I can reason out. IMO

Doc
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Nick Gammon

Well let's not throw it out yet. When you try to upload to the board in the usual way, what happens exactly? Can you go into "verbose upload" mode and post what you see?

Bear in mind you can program it, since the main chip works, either through the ICSP interface or through the serial interface (as it has a bootloader) if you got an FTDI cable.

What ought to work is to leave those wires connected, upload the ArduinoISP sketch to the other board, and then use the ArduinoISP method of uploading. That totally bypasses the 8U (or is it 16U) chip.

Also, does the 8U chip have its own ICSP header, like the new Unos do?
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Did you try connecting it to a different PC?
http://www.ciproconsulting.it

Docedison

No, I used the cable and port assignment that works for my Uno R3 and my computer doesn't recognize the Mega 2560, Period... When I first plugged it in my computer wanted to install a CP2102 USB Driver and when I tried to "re-install" the heretofore "Working" Driver from the Arduino IDE install package the message from the PC (X86 Win7) was that it was not the right driver... Plug the Uno in and it works just fine. So it is my belief that the USB chip (the 8U2) is either defective or there is a problem with it's programming. I just tried again just now to U/L a sketch to the Mega 2560 and the same message was presented," No Device Found on COM 15" (My USB serial port) and I then reset the board ID in the IDE to Uno and plugged in my R3 and uploaded a sketch successfully. Same Cable, same work area, I only moved the boards about 4 inches, not the cable. The Mega had the Blink sketch loaded out of the Box and failed to be recognized immediately when I plugged it in W/  -  W/O the IDE running. Most difficult as my 'Old Beady Eyes' make even looking at that chip difficult and my shaky hands make measurement a difficult task as well, well just a little difficult... IMO

Doc
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Nick Gammon

Does the 8U chip have its own ICSP header, like the new Unos do?
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Nick Gammon

What do you see in your device manager? This is what I see:



And if I uninstall the device driver I see this:



What do you see? Screen shot please.

Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Docedison

I don't know how to do a Screen Shot" ( never did it before ) however when I plug in my Uno R3 it reports correctly in the device manager as an Arduino Uno R3 under the Com port tab and when I plug in the Mega it reports an Arduino Mega 2560 with the little yellow ! symbol (Driver trouble symbol) But this is under the Other devices tab and not under the Com Port tab as it should and there is no com port associated with it. Yes there are ICSP pins too, for both uProc's... It Looks like a real Mega 2560, even to the useless reset switch (if one has a shield installed the switch is well protected and hidden)... I do hope this helps.

Doc
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Nick Gammon

Quote
it reports an Arduino Mega 2560


It sounds like it is enumerating, which means it can't be *that* faulty.

Are there any special markings on the board which might suggest what it is, exactly (like, a web site)? Some boards come with their own device drivers. I think if you can get the device driver installed your problems will be over. I think I read somewhere it isn't exactly a "driver" but a .INF file that has to match the board's USB "signature".
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Docedison

No, unfortunately it only is marked Arduino.CC no other markings. It is a Clone that was marked to look almost EXACTLY like an Arduino 2560 except it is marked "Design in Italy" instead of "Made in Italy" I didn't pay for the board it was a gift form a guy that I trade work with. He said that he was asked to take the product down from Ebay and just "Gave" me one for my private use. What about "making" a cable for it I have the means to easily put a FTDI232R (ssop package) or I have several PL23XX (03?) USB to 5V RS232 adapters. Is there any sserious down side to doing the programming that way, except the 'reset' issue... Barring that, Where might I look for that .inf file???

Doc
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Nick Gammon

You have a number of ways you can go now. I'm no USB installation expert. I believe there is a way of finding the  USB "signature", that might help find the .inf file. What happens exactly when you install the one it wanted to install? Does the yellow "!" go away? I would let it do its stuff and then see what COM port it reports.

Other options:


  • Get (or make) an FTDI cable, and plug that into TxD, RxD, Gnd and +5V. Also connect up RTS to reset via a 0.1 uF capacitor.

  • Program via the ICSP header - you could configure your other board to have the ArduinoISP sketch on it

  • Reflash the U8 chip - that might make it look like a standard Mega2560 ... and it might not.

  • If you have a SD board handy you can use the "hex file uploader" sketch I wrote (link below) - note that the pins on the Uno side are different as it uses MOSI/MISO/SCK for the SD card

  • Find the .inf file and get the U8 chip on your Mega to work

  • I think there are posts about people who remove the chip from their Uno (or Duemilanove board) and just use that as an "go through" FTDI board



Hex file uploader:

http://www.gammon.com.au/forum/?id=11638

If you are planning to reflash the U8 chip I would first use the same process you did to find the chip signature before, but this time plug into the ICSP header (for the U8 chip) instead. That might help confirm what firmware is on it. Check carefully you get the pins right.

Also before reflashing download the current contents of the chip, just in case.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Go Up