diff --git a/java/src/processing/mode/java/JavaBuild.java b/java/src/processing/mode/java/JavaBuild.java index 7ac5d8d7f..3f73a8422 100644 --- a/java/src/processing/mode/java/JavaBuild.java +++ b/java/src/processing/mode/java/JavaBuild.java @@ -1123,7 +1123,11 @@ public class JavaBuild { /// figure out run options for the VM List runOptions = new ArrayList(); - if (Preferences.getBoolean("run.options.memory")) { + + // set memory options, except for ARM where we're more memory-constrained compared + // to the machine the user might be building the sketch on + if (Preferences.getBoolean("run.options.memory") && + !exportVariant.equals("armv6hf")) { runOptions.add("-Xms" + Preferences.get("run.options.memory.initial") + "m"); runOptions.add("-Xmx" + Preferences.get("run.options.memory.maximum") + "m"); }