Skip to content

arduino micro Avr109 not working on java 1.8 or on java 11  #2

@vospascal

Description

@vospascal

``
Info:Starting ArduinoSketchUploader...
COM8
Info:Starting upload process for file '..\Java-ArduinoSketchUploader-master\Hex\Blink.pro.hex'.
Info:Port autoselected: null.
Trace:Creating serial port 'COM8'...
Info:Protocol.Avr109
Info:Establishing memory block contents...
Info:Opening serial port COM8 - baudrate 57600
Info:Executing Post Open behavior (ArduinoUploader.BootloaderProgrammers.ResetBehavior.ResetThrough1200BpsBehavior@4fca772d)...
Info:Issuing forced 1200bps reset...
COM8
COM8
Info:T+0 - Port not found
Info:T+100 - Port not found
Info:T+200 - Port not found
Info:T+300 - Port not found
Info:T+400 - Port not found
Info:T+500 - Port not found
Info:T+600 - Port not found
Info:T+700 - Port not found
Info:T+800 - Port not found
Info:T+900 - Port not found
Info:T+1000 - Port not found
Info:T+1100 - Port not found
Info:T+1200 - Port not found
Info:T+1300 - Port not found
Info:T+1400 - Port not found
Info:T+1500 - Port not found
Info:T+1600 - Port not found
Info:T+1700 - Port not found
Info:T+1800 - Port not found
Info:T+1900 - Port not found
Info:T+2000 - Port not found
Info:T+2100 - Port not found
Info:T+2200 - Port not found
Info:T+2300 - Port not found
Info:T+2400 - Port not found
Info:T+2500 - Port not found
Info:T+2600 - Port not found
Info:T+2700 - Port not found
Info:T+2800 - Port not found
Info:T+2900 - Port not found
Info:T+3000 - Port not found
Info:T+3100 - Port not found
Info:T+3200 - Port not found
Info:T+3300 - Port not found
Info:T+3400 - Port not found
Info:T+3500 - Port not found
Info:T+3600 - Port not found
Info:T+3700 - Port not found
Info:T+3800 - Port not found
Info:T+3900 - Port not found
Info:T+4000 - Port not found
Info:T+4100 - Port not found
Info:T+4200 - Port not found
Info:T+4300 - Port not found
Info:T+4400 - Port not found
Info:T+4500 - Port not found
Info:T+4600 - Port not found
Info:T+4700 - Port not found
Info:T+4800 - Port not found
Info:T+4900 - Port not found
Info:T+5000 - Port not found
Info:T+5100 - Port not found
Info:T+5200 - Port not found
Info:T+5300 - Port not found
Info:T+5400 - Port not found
Info:T+5500 - Port not found
Info:T+5600 - Port not found
Info:T+5700 - Port not found
Info:T+5800 - Port not found
Info:T+5900 - Port not found
Info:T+6000 - Port not found
Info:T+6100 - Port not found
Info:T+6200 - Port not found
Info:T+6300 - Port not found
Info:T+6400 - Port not found
Info:T+6500 - Port not found
Info:T+6600 - Port not found
Info:T+6700 - Port not found
Info:T+6800 - Port not found
Info:T+6900 - Port not found
Info:T+7000 - Port not found
Info:T+7100 - Port not found
Info:T+7200 - Port not found
Info:T+7300 - Port not found
Info:T+7400 - Port not found
Info:T+7500 - Port not found
Info:T+7600 - Port not found
Info:T+7700 - Port not found
Info:T+7800 - Port not found
Info:T+7900 - Port not found
Info:T+8000 - Port not found
Info:T+8100 - Port not found
Info:T+8200 - Port not found
Info:T+8300 - Port not found
Info:T+8400 - Port not found
Info:T+8500 - Port not found
Info:T+8600 - Port not found
Info:T+8700 - Port not found
Info:T+8800 - Port not found
Info:T+8900 - Port not found
Info:T+9000 - Port not found
Info:T+9100 - Port not found
java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at ArduinoUploader.BootloaderProgrammers.WaitHelper.WaitFor(WaitHelper.java:42)
at ArduinoUploader.BootloaderProgrammers.ResetBehavior.ResetThrough1200BpsBehavior.Reset(ResetThrough1200BpsBehavior.java:66)
at ArduinoUploader.BootloaderProgrammers.ArduinoBootloaderProgrammer.Open(ArduinoBootloaderProgrammer.java:62)
at ArduinoUploader.ArduinoSketchUploader.UploadSketch(ArduinoSketchUploader.java:215)
at ArduinoUploader.ArduinoSketchUploader.UploadSketch(ArduinoSketchUploader.java:113)
at Test.Test.main(Test.java:71)
ArduinoUploader.ArduinoUploaderException: Exception during close of the programmer: 'Task java.util.concurrent.FutureTask@7e6cbb7a rejected from java.util.concurrent.ThreadPoolExecutor@7c3df479[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1]'.
at ArduinoUploader.BootloaderProgrammers.Protocols.AVR109.Avr109BootloaderProgrammer.Close(Avr109BootloaderProgrammer.java:50)
at ArduinoUploader.ArduinoSketchUploader.UploadSketch(ArduinoSketchUploader.java:260)
at ArduinoUploader.ArduinoSketchUploader.UploadSketch(ArduinoSketchUploader.java:113)
at Test.Test.main(Test.java:71)
Info:Closing COM8...
Info:Waiting for virtual port COM8 to disappear...
COM8
Error:Exception during close of the programmer: 'Task java.util.concurrent.FutureTask@7e6cbb7a rejected from java.util.concurrent.ThreadPoolExecutor@7c3df479[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1]'.

Process finished with exit code 0
``

i converted it to java modules that doesnt change much it still doenst work same as your java lib.
i think it has to do with the pro micro / ATmega32u4 code when it goes in to ResetThrough1200BpsBehavior class
i saw some people using your nice library saw a demo https://www.youtube.com/watch?v=MbZ_SWYXUH4
as you see the logger with progress is also not working sadly.

you have any idea wy how i could get it going or what is wrong

Kind regeards Pascal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions