Skip to content

Commit d5e7d0d

Browse files
committed
Fixed verbose upload. Removed unused platform.txt params.
1 parent a64d58f commit d5e7d0d

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

app/src/processing/app/debug/Uploader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ protected boolean executeUploadCommand(String commandArray[])
102102
int result=0; // pre-initialized to quiet a bogus warning from jikes
103103

104104
try {
105+
if (verbose || Preferences.getBoolean("upload.verbose")) {
105106
for(int i = 0; i < commandArray.length; i++) {
106107
System.out.print(commandArray[i] + " ");
107108
}
108109
System.out.println();
109-
if (verbose || Preferences.getBoolean("upload.verbose")) {
110110
}
111111
Process process = Runtime.getRuntime().exec(commandArray);
112112
new MessageSiphon(process.getInputStream(), this);

hardware/arduino/avr/platform.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,17 @@ tools.avrdude.config.path.linux={runtime.ide.path}/hardware/tools/avrdude.conf
5959

6060
tools.avrdude.upload.params.verbose=-v -v -v -v
6161
tools.avrdude.upload.params.quiet=-q -q
62-
tools.avrdude.upload.pattern="{cmd.path}" "-C{config.path}" {upload.params.verbose} -p{build.mcu} -c{upload.protocol} -P{serial.port} -b{upload.speed} -D "-Uflash:w:{build.path}/{build.project_name}.hex:i"
62+
tools.avrdude.upload.pattern="{cmd.path}" "-C{config.path}" {upload.verbose} -p{build.mcu} -c{upload.protocol} -P{serial.port} -b{upload.speed} -D "-Uflash:w:{build.path}/{build.project_name}.hex:i"
6363

6464
tools.avrdude.program.params.verbose=-v -v -v -v
6565
tools.avrdude.program.params.quiet=-q -q
66-
tools.avrdude.program.pattern="{cmd.path}" "-C{config.path}" {program.params.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{build.path}/{build.project_name}.hex:i"
66+
tools.avrdude.program.pattern="{cmd.path}" "-C{config.path}" {program.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{build.path}/{build.project_name}.hex:i"
6767

6868
tools.avrdude.erase.params.verbose=-v -v -v -v
6969
tools.avrdude.erase.params.quiet=-q -q
70-
tools.avrdude.erase.pattern="{cmd.path}" "-C{config.path}" {erase.params.verbose} -p{build.mcu} -c{protocol} {program.extra_params} -e -Ulock:w:{bootloader.unlock_bits}:m -Uefuse:w:{bootloader.extended_fuses}:m -Uhfuse:w:{bootloader.high_fuses}:m -Ulfuse:w:{bootloader.low_fuses}:m
70+
tools.avrdude.erase.pattern="{cmd.path}" "-C{config.path}" {erase.verbose} -p{build.mcu} -c{protocol} {program.extra_params} -e -Ulock:w:{bootloader.unlock_bits}:m -Uefuse:w:{bootloader.extended_fuses}:m -Uhfuse:w:{bootloader.high_fuses}:m -Ulfuse:w:{bootloader.low_fuses}:m
7171

7272
tools.avrdude.bootloader.params.verbose=-v -v -v -v
7373
tools.avrdude.bootloader.params.quiet=-q -q
74-
tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.params.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{runtime.ide.path}/hardware/arduino/avr/bootloaders/{bootloader.file}:i" -Ulock:w:{bootloader.lock_bits}:m
74+
tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{runtime.ide.path}/hardware/arduino/avr/bootloaders/{bootloader.file}:i" -Ulock:w:{bootloader.lock_bits}:m
7575

hardware/arduino/sam/platform.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
name=Arduino ARM (32-bits) Boards
66
compiler.path={runtime.ide.path}/hardware/tools/g++_arm_none_eabi/bin/
7-
#compiler.path=C:/arm-none-eabi-gcc-4_6/bin/
87
compiler.c.cmd=arm-none-eabi-gcc
98
compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf
109
compiler.c.elf.cmd=arm-none-eabi-g++
@@ -64,13 +63,3 @@ tools.bossac.upload.params.verbose=-i -d
6463
tools.bossac.upload.params.quiet=
6564
tools.bossac.upload.pattern="{path}/{cmd}" {upload.verbose} --port={serial.port.file} -U {upload.native_usb} -e -w -v -b "{build.path}/{build.project_name}.bin" -R
6665

67-
# specialized tool for adk2 to twiddle the erase line before running bossac
68-
tools.adk2install.cmd=adk2install
69-
tools.adk2install.cmd.windows=bossac.exe
70-
tools.adk2install.path={runtime.ide.path}/hardware/tools
71-
72-
tools.adk2install.upload.params.verbose=
73-
tools.adk2install.upload.params.quiet=
74-
tools.adk2install.upload.pattern={path}/{cmd} {path}/adk2tool {serial.port.file} {path}/bossac {build.path}/{build.project_name}.bin
75-
76-

0 commit comments

Comments
 (0)