I bought this 32u4 board on Amazon (https://www.amazon.it/gp/product/B019SXN84E/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1) that should be recognised as an Arduino Leonardo by the Arduino IDE. At first it totally worked as I was only trying to emulate keyboard and mouse USB input. I was searching for a code line that could stop the void loop(), so I tried using "exit(0);", as it was suggested in an other topic here. Now since that moment the board is stuck in a loop.
It continuously repeat the loop, while the red led is always on. I tried to upload a different code, but the IDE gives me alternatively two error messages:
"processing.app.debug.RunnerException at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:159) at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78) at processing.app.SketchController.upload(SketchController.java:707) at processing.app.SketchController.exportApplet(SketchController.java:680) at processing.app.Editor$DefaultExportHandler.run(Editor.java:2176) at java.lang.Thread.run(Thread.java:745) Caused by: processing.app.SerialException: Error touching serial port 'COM3'. at processing.app.Serial.touchForCDCReset(Serial.java:87) at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:143) ... 5 more Caused by: jssc.SerialPortException: Port name - COM3; Method name - openPort(); Exception type - Port busy. at jssc.SerialPort.openPort(SerialPort.java:164) at processing.app.Serial.touchForCDCReset(Serial.java:81) ... 6 more";
"Forcing reset using 1200bps open/close on port COM3". (Even waiting for hours didn't solve the "forcing")
I already tried uninstalling drivers, uninstalling the IDE and changing COM port. Nothing worked. Unfortunately the reset button is missing on this board.
Is possible to restore the board or is totally lost?
Thanks in advance!
My question is different from the one there (What happens when I call exit() from my program?) because I used that code and I need to solve a loop problem, it's not just a theorical question. I'm also using a different type of board.