Arduino Micro - connection issue

Hi All, just trying to use a genuine Arduino Micro I've had tucked away in a drawer for a 3 or 4 years. It used to work ok.

(My IDE works fine on my Arduino UNO, but for info I'm on Linux Mint, and IDE 1.8.19)

In the IDE, I have set the bard to Arduino Micro. The Programmer is set to "Atmel-ICE(AVR)".

This Micro only appears in the Port list immediately after pressing its reset button as: "dev/tty/ACM0 (Arduino Micro)". However, when the board green LED stops flashing, this option disappears, just leaving "dev/tty4" which does not work.

Also during this period while the green LED flashes immediately after a reset, I can fetch the board info ok, but after a few seconds, it stops working.

Seems like communications are established ok during a reset period while the LED flashes, but then dies afterward.

Any ideas why this should be, and how to fix it?

Cheers, Scott

Try pressing reset twice, then uploading a small sketch, that should clear out the sketch on the device.

Bingo!

That was a bit tricky to get the program uploaded during the reset period, but after a few attempts, it worked!

Time will tell if it stays working...

Many thanks, Scott.

No, it will stop working if you upload code with certain sorts of mistakes in them.

Obviously they are not syntax errors or it would not load, but it is very easy to make mistakes that are syntactically correct.

It can appear to stop working if the sketch sets up the USB interface as a keyboard, mouse, or other HID device.

To be fair, it was last used about 4 years ago, I've no idea what project I last downloaded to it. I can;t recall doing any HID experiments, but you never know, I may have done one trial!

I'm just glad its now rescued and working, thanks for the guidance!

Cheers, Scott.