Menu

arduinoIDEUpload option failing on windows 8

2015-06-12
2015-06-18
  • Chinmay Nagarkar

    --Config arduinoIDE works fine.

    --Config arduinoIDEUpload fails with cryptic error.

    Command:
    D:\software\haikuvm132\bin\haiku.bat -v --Config arduinoIDEUpload --classpath \"F:\runtime-EclipseApplication(1)\asdf\lib\bootstrap.jar;F:\runtime-EclipseApplication(1)\asdf\lib\haikuRT.jar;F:\runtime-EclipseApplication(1)\asdf\bin;D:\software\haikuvm132\lib\pc\haikutools.jar;D:\software\haikuvm132\lib\nxt\classes.jar;D:\software\haikuvm132\lib\pc\bcel-5.2.jar;D:\software\haikuvm132\lib\pc\RXTXcomm.jar;D:\software\haikuvm132\lib\examples\mylib.jar\" F:\runtime-EclipseApplication(1)\asdf\src\asdf\trial.java

    Output beginning:
    Looking for 'HaikuVM.properties' in path: 'C:\Users\chinm_000\AppData\Local\Temp\HaikuVMPlugin6606925619872000512\asdf';'D:\software\haikuvm132\config'
    Loaded from 'D:\software\haikuvm132\config\HaikuVM.properties'

    towards the end:

    totalMethods= 9
    totalBClength= 122
    totalConstLength= 54
    totalClassesLength=46

    Done with generating c files

    D:\software\haikuvm132\bin../bin/haikuupload trial..hex
    compile and upload using arduino with last port and board settings
    0 [main] sh 6468 sync_with_child: child 8072(0x164) died before initializa
    tion with status code 0xC0000135
    206 [main] sh 6468 sync_with_child: child state waiting for longjmp
    /usr/bin/sh: fork: Resource temporarily unavailable
    make:
    [upload] Error 128

    error while uploading files

    java.lang.Exception: Script 'D:\software\haikuvm132\bin../bin/haikuupload.bat'
    exited with errorcode=2
    at haikuvm.pc.tools.HaikuVM.executeBlocking(HaikuVM.java:582)
    at haikuvm.pc.tools.HaikuVM.call(HaikuVM.java:228)
    at haikuvm.pc.tools.HaikuVM.haikuupload0(HaikuVM.java:208)
    at haikuvm.pc.tools.HaikuVM.haiku0(HaikuVM.java:153)
    at haikuvm.pc.tools.HaikuVM.main(HaikuVM.java:103)

     
    • genom2

      genom2 - 2015-06-15

      I was able to reproduce it on Windows 8. (I'm still using XP. And XP has no problem with this configurations. I wonder.)

      Here is a workaround:

      When using with configurations arduinoIDEUpload or arduinoIDEVerify on Windows 8. Please identify and change two property values in file HaikuVM.properties like this:

      ...  
      arduinoIDEUpload.Upload = ../../../arduino --upload 'libraries/HaikuVM/ArduinoSketch/HaikuVM/HaikuVM.ino'  
      ...  
      arduinoIDEVerify.Upload = ../../../arduino --verify 'libraries/HaikuVM/ArduinoSketch/HaikuVM/HaikuVM.ino'  
      ...
      

      (The trick is: Don't use a semicolon ";" in those property values.)

       

      Last edit: genom2 2015-06-18
  • Chinmay Nagarkar

    Thanks, Bob. Is there a way to set these properties from the command line? I have multiple Haiku projects, and each one is in a separate directory in $Arduino/libraries/ folder.

     
    • genom2

      genom2 - 2015-06-18

      Yes, there is a way, the following works for me:

      C:\haikuVM\bin\haiku -v --Config arduinoIDEUpload --Config:Upload "../../../arduino --upload 'libraries/HaikuVM/ArduinoSketch/HaikuVM/HaikuVM.ino'" C:\haikuVM\examples\src\main\java\processing\examples\_01_Basics\Blink.java
      
       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.