Arduboy cannot load games

Good,

I have loaded the following game: https://github.com/Nav399/Tetris-for-the-arduboy/blob/master/tetris.ino

After loading it, I tried to load another game and now I get an error that does not let me delete the first one I loaded.

error:
processing.app.debug.RunnerException
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:152)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)
at processing.app.SketchController.upload(SketchController.java:732)
at processing.app.SketchController.exportApplet(SketchController.java:703)
at processing.app.Editor$UploadHandler.run(Editor.java:2047)
at java.lang.Thread.run(Thread.java:748)
Caused by: processing.app.SerialException: Error usando el puerto “COM5”
at processing.app.Serial.touchForCDCReset(Serial.java:107)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:136)
… 5 more
Caused by: jssc.SerialPortException: Port name - COM5; Method name - openPort(); Exception type - Port busy.
at jssc.SerialPort.openPort(SerialPort.java:164)
at processing.app.Serial.touchForCDCReset(Serial.java:101)
… 6 more
Ha ocurrido un error mientras se enviaba el sketch
Exception in thread “Thread-46” java.lang.NullPointerException
at cc.arduino.contributions.libraries.LibrariesIndexer.lambda$rescanLibraries$2(LibrariesIndexer.java:163)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
at java.util.LinkedList$LLSpliterator.forEachRemaining(LinkedList.java:1235)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at cc.arduino.contributions.libraries.LibrariesIndexer.rescanLibraries(LibrariesIndexer.java:165)
at cc.arduino.contributions.libraries.LibrariesIndexer.setLibrariesFolders(LibrariesIndexer.java:118)
at processing.app.BaseNoGui.onBoardOrPortChange(BaseNoGui.java:677)
at processing.app.Base.onBoardOrPortChange(Base.java:1336)
at processing.app.Editor$UploadHandler.run(Editor.java:2083)
at java.lang.Thread.run(Thread.java:748)

I am loading an empty sketch but this error continues to appear.

Can somebody help me?

Greetings

It appears to be a problem with your serial port claiming the port is already busy.

You can first try to compile the code by itself to see if that works and isolate that issue from uploading.

If you can double check your COM ports and make sure the one with the Arduboy is the one selected.

You might try restarting your computer and see if the issue persists.

1 Like

Good,

I have tried it with two different computers and they both give the same error.

I have also tried it with different USB ports and it keeps giving error.

I have compiled an empty project to try to remove the game from my Arduboy and it keeps giving error.

Have you tried flashlight mode?

The Tetris game you loaded doesn’t disable it so it should work.

Secondly, have you tried the reset button at the bottom of the unit. Click it just as the game is about to upload. It can take a little practice.

1 Like

Good morning,

About the flashlight I am not very clear how it is done.

What I have done is load an empty project and just then do what you said to give the restart button.

At that time, it has pretended to be a black screen and has restarted the game and deleted it.

Therefore it has solved the problem.

Thank you very much to all.

I understand that I better not reload the game just in case.

another query why did the tetris game do this to me?

It probably removed the USB code for some reason, or perhaps was compiled incorrectly.

Ok, thank you very much, so I don’t worry