When uploading from a student profile (full access to install DIR at c:\mblocks2) i receive the following error,
C:\Program Files (x86)\mBlock\Arduino\arduino_debug.exe --upload --board arduino:avr:uno --port COM6 --verbose --preserve-temp-files C:\Users\student\AppData\Roaming\com.makeblock.Scratch3.4.11\Local Store\scratchTemp\project_Untitled2_1\project_Untitled2_1.ino
Loading configuration…
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at processing.app.windows.Platform.getFolderPathFromRegistry(Platform.java:70)
at processing.app.windows.Platform.recoverSettingsFolderPath(Platform.java:55)
at processing.app.windows.Platform.init(Platform.java:50)
at processing.app.Base.guardedMain(Base.java:153)
at processing.app.Base.main(Base.java:137)
When running the application as administrator and using my domain admin credentials i get success,
#include <Arduino.h>
#include <Wire.h>
#include <SoftwareSerial.h>
double angle_rad = PI/180.0;
double angle_deg = 180.0/PI;
void setup(){
}
void loop(){
_loop();
}
void _delay(float seconds){
long endTime = millis() + seconds * 1000;
while(millis() < endTime)_loop();
}
void _loop(){
}
0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : Arduino
Description : Arduino
Hardware Version: 3
Firmware Version: 4.4
Vtarget : 0.3 V
Varef : 0.3 V
Oscillator : 28.800 kHz
SCK period : 3.3 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f
avrdude: reading input file “C:\Users\pilchs\AppData\Local\Temp\build1530209204563589666.tmp/project_Untitled3_2.cpp.hex”
avrdude: writing flash (1762 bytes):
Writing | ################################################## | 100% 0.30s
avrdude: 1762 bytes of flash written
avrdude: verifying flash memory against C:\Users\pilchs\AppData\Local\Temp\build1530209204563589666.tmp/project_Untitled3_2.cpp.hex:
avrdude: load data flash data from input file C:\Users\pilchs\AppData\Local\Temp\build1530209204563589666.tmp/project_Untitled3_2.cpp.hex:
avrdude: input file C:\Users\pilchs\AppData\Local\Temp\build1530209204563589666.tmp/project_Untitled3_2.cpp.hex contains 1762 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.18s
avrdude: verifying …
avrdude: 1762 bytes of flash verified
avrdude done. Thank you.
send encode mode
binary mode char mode
recv encode mode
binary mode char mode
Anybody had this issue? not sure if its a java issue or the software