mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-11 09:43:08 +03:00
Now have uploading working with the Boards menu. Improved serial port error messages.
This commit is contained in:
@@ -104,8 +104,8 @@ public class Compiler implements MessageConsumer {
|
||||
"-Os", // optimize for size
|
||||
"-I" + target.getPath(),
|
||||
"-w", // surpress all warnings
|
||||
"-mmcu=" + Preferences.get("build.mcu"),
|
||||
"-DF_CPU=" + Preferences.get("build.f_cpu"),
|
||||
"-mmcu=" + Preferences.get("boards." + Preferences.get("board") + ".build.mcu"),
|
||||
"-DF_CPU=" + Preferences.get("boards." + Preferences.get("board") + ".build.f_cpu"),
|
||||
};
|
||||
|
||||
// use lib directories as include paths
|
||||
@@ -130,8 +130,8 @@ public class Compiler implements MessageConsumer {
|
||||
"-I" + target.getPath(),
|
||||
"-w", // surpress all warnings
|
||||
"-fno-exceptions",
|
||||
"-mmcu=" + Preferences.get("build.mcu"),
|
||||
"-DF_CPU=" + Preferences.get("build.f_cpu"),
|
||||
"-mmcu=" + Preferences.get("boards." + Preferences.get("board") + ".build.mcu"),
|
||||
"-DF_CPU=" + Preferences.get("boards." + Preferences.get("board") + ".build.f_cpu"),
|
||||
};
|
||||
|
||||
// use lib directories as include paths
|
||||
@@ -145,7 +145,7 @@ public class Compiler implements MessageConsumer {
|
||||
String preCommandLinker[] = new String[] {
|
||||
avrBasePath + "avr-gcc",
|
||||
" ",
|
||||
"-mmcu=" + Preferences.get("build.mcu"),
|
||||
"-mmcu=" + Preferences.get("boards." + Preferences.get("board") + ".build.mcu"),
|
||||
"-o",
|
||||
" ",
|
||||
};
|
||||
|
Reference in New Issue
Block a user