Upload issues


#1

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


#2

Hi simonpilch,

Do you mean that you can only upload mBlock program with administrator right on the computer?
If yes, may I know which version mBlock and what is the operating system of your computer?


#3

Hi Thanks for the reply,

Yes that is correct, seems I cannot get an upload unless i have administrative rights running the software,

Windows 7 pro
mBlock 3.4.11


#4

Hi simon,

How about try install the mBlock software under the D disk instead of the C disk on the Computer?


#5

There isn’t a D drive on the machine


#6

Hi simon,

Do you mean the computer only has C disk?
If yes, you may try install the mBlock under the root directory of the C disk (like C:\mBlock) and see if it helps.


#7

Hi If you check my initial post i have stated it is installed under c:\mBlocks2,


#8

Hi simonpilch,

Sorry for that! In this case, I am afraid there is no other work around.
Currently,our engineers are developing the mBlock 5 which base on scratch3.0. The mBlock 5 doesn’t need administrator right to upload the program and will support all of the Makeblock robots gradually. You may use the mBlock 5 when it support the robot you use.


#9

Hi simonpilch,

We have some progress on this problem, please try install the mBlock software under the Program data file in C disk (C:\ProgramData) have a try.