Arduino Micro not recognized in a wierd way

Hi,

i just bought a micro a week ago and yesterday it and whatever port its on stopped showing up in the port menu. Windows also gives out a "device not recognized" message everytime its plugged in.

the doc said to put it into bootloader mode by double pressing the reset button. I did that and sure enough the port shows up temporarely until the green bootloader indicator turns OFF again. then Windows says "device not connected again" and the port menu doesnt show the device anymore.

I did do some sketchy downgrading of the avr pack to get my max3010 puls oximeter to work but thats all back to normal now.

i also didnt install any software that uses the usb port in the meantime.

feel free to ask for clarifiction if needed, this is my first forum post. Thanks for reading.

Benno

Part of the sketch that you upload contains functionality that facilitates the board detection by your operating system as well as the reaction on the software reset (opening and closing the serial port with a baud rate of 1200 baud) that the IDE issues when starting the upload.

Bugs in the code that you upload (or in libraries that the sketch uses) can override variables used by the above mentioned functionality and the result is that one of those functionalities breaks. In your case the board detection.

thanks a lot for responding!
Does that override only occur with the actual code and included libraries? I also tested a simple hello world after uninstalling all libraries exept the preinstalled ones. it doesn't seem to have an impact.

With "badly" written code, yes.

Please explain. Are you saying that uploaded examples like blink or hello world still exhibits the undesired behaviour? Or are you saying that basic examples don't show the undesired behaviour? The latter would be expected.

1 Like

the behavior described in the OP doesn't seem to differ in all the tests I've done. I even reinstalled the IDE at one point and removed all libraries and code besides the hello world.

Can you still flash when the bootloader is active?

If yes please try a Sketch which uses Serial. E.g. https://docs.arduino.cc/built-in-examples/communication/ASCIITable/

If you can upload after manually invoking the boot loader, I do not know what is wrong and unfortunately can't help further.

the bootloader turns off before it can start flashing

no problem i'll figure it out eventually

Upload an innocent sketch; when the IDE reports the memory usage, double tap the reset button.

After that you should be able to upload innocent sketches in the normal way.

Thanks that actually solved it. A function in the library was the problem aparently but the board works again.

Great

If you post your sketch and tell us the library that you suspect, we can have a look at it.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.