How to reset a Mega 2560 via physical button

Hi,

My MEGA 2560 is failing to appear when I connect it to a PC. We think we had a failed upload of new firmware.

Now when we connect it, the power light comes on, but the RX/TX lights don't flash and its not recognised by the computer when connected.

I see there is a button marked reset next to the power light on the Arduino.

How do we use that - tried just pushing it, when powered, and also while connecting it to a PC, but doesn't seem to have helped.

Thanks in advance for any tips.
Chris

It simply restarts the sketch.

However if used correctly (some timing may be required) it can also often be used to upload a new sketch in some errant boards just prior the UPLOAD phase.

Press & hold Reset, start a code download. Release Reset when the IDE shows "compiled xxx of 128xxx" bytes.
Timing can be easier if you select File:Preferences and turn on verbose outputs.
Might take a couple of tries to get the release timing correct.

If that doesn't work try the Loopback test, it's a topic at the top of this forum.

Reset button just resets the '2560 - whether the computer detects it does not depend on the state of the 2560, but on the serial adapter. Does the port appear under tools -> port menu when it's plugged in? If not, that is a bad sign for the hardware.

Is it based on 16u2 serial adapter (like official boards or faithful clones)? What were you doing before it stopped working? Is the USB cable known good? Bad USB cables seem to be the plague of the year (last year's was ftdigate).

Thanks all - the port does NOT appear under tools -> port menu when connected via USB to a Mac and also when linked to a raspberry PI running raspbian :frowning:
I think the problem started after we did a firmware upgrade/upload (via FarmBot OS - https://software.farmbot.io/v1.0/docs/arduino-firmware )

Not sure what its based on :frowning:

I have now tried the loopback test ( Loop-Back Test Instructions - Installation & Troubleshooting - Arduino Forum ) , still no joy - port does not appear on menu, nor any messages in /var/log/messages and dmesg.

The L/LED does come on and stays on now (don't think it was doing this before).

Have also got another board, which works fine. I noticed that the other/working one has the Arduino -/+ logo on it. Perhaps that means the faulty one is a clone. (see image)

Imgur

Last month my Mega clone was not detected anymore (after an upgrade of the IDE?).
Too lazy to sort it out.
Just deleted the IDE, and re-installed it.
After that it worked again.
Leo..

Thanks - tried that, but no joy. The working one still works and the dead one is still dead :frowning:

Time to see if it can be returned...