From 05477c17f1f7878dad5b7269f5cb05191fead27b Mon Sep 17 00:00:00 2001 From: valeros Date: Mon, 28 Jun 2021 18:58:59 +0300 Subject: [PATCH 1/6] Fix memory configuration for SparkFun ATmega128RFA1 Dev Board Resolve #257 --- boards/sparkfun_satmega128rfa1.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/sparkfun_satmega128rfa1.json b/boards/sparkfun_satmega128rfa1.json index de812e5..704d575 100644 --- a/boards/sparkfun_satmega128rfa1.json +++ b/boards/sparkfun_satmega128rfa1.json @@ -14,8 +14,8 @@ ], "name": "SparkFun ATmega128RFA1 Dev Board", "upload": { - "maximum_ram_size": 126976, - "maximum_size": 16384, + "maximum_ram_size": 16384, + "maximum_size": 126976, "protocol": "arduino", "require_upload_port": true, "speed": 57600 From 0505cbdd30ff3f4391d5438cfa39de4eb9db5110 Mon Sep 17 00:00:00 2001 From: valeros Date: Wed, 18 Aug 2021 13:35:22 +0300 Subject: [PATCH 2/6] Update support for the latest MCUdude cores --- builder/frameworks/arduino.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/builder/frameworks/arduino.py b/builder/frameworks/arduino.py index 62193ce..e358ac7 100644 --- a/builder/frameworks/arduino.py +++ b/builder/frameworks/arduino.py @@ -88,8 +88,7 @@ def get_bootloader_size(): CXXFLAGS=[ "-fno-exceptions", "-fno-threadsafe-statics", - "-fpermissive", - "-std=gnu++11" + "-fpermissive" ], LINKFLAGS=[ @@ -113,6 +112,19 @@ def get_bootloader_size(): ] ) +if build_core in ("MiniCore", "MegaCore", "MightyCore", "MajorCore"): + env.Append( + CXXFLAGS=[ + "-std=gnu++17" + ], + ) +else: + env.Append( + CXXFLAGS=[ + "-std=gnu++11" + ], + ) + # # Take into account bootloader size # From ffc07384b66ade7603585c316065e33ba5acde88 Mon Sep 17 00:00:00 2001 From: valeros Date: Wed, 18 Aug 2021 13:35:51 +0300 Subject: [PATCH 3/6] Update MicroCore to the latest v2.1.0 --- platform.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.json b/platform.json index b221fed..32ec854 100644 --- a/platform.json +++ b/platform.json @@ -99,7 +99,7 @@ "type": "framework", "optional": true, "owner": "platformio", - "version": "~2.0.3" + "version": "~2.1.0" }, "framework-arduino-avr-nicai": { "type": "framework", From 012de336af56472e65e2db2e6c2d95d9a137803d Mon Sep 17 00:00:00 2001 From: valeros Date: Wed, 25 Aug 2021 14:13:09 +0300 Subject: [PATCH 4/6] Fix default clock source for several boards from ATTinyCore Resolve #255 --- boards/attiny167.json | 2 +- boards/attiny85.json | 2 +- boards/attiny88.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/boards/attiny167.json b/boards/attiny167.json index 33a13be..160d925 100644 --- a/boards/attiny167.json +++ b/boards/attiny167.json @@ -1,7 +1,7 @@ { "build": { "core": "tiny", - "extra_flags": "-DARDUINO_AVR_ATTINYX7", + "extra_flags": "-DARDUINO_AVR_ATTINYX7 -DCLOCK_SOURCE=17", "f_cpu": "8000000L", "mcu": "attiny167", "variant": "tinyX7_New" diff --git a/boards/attiny85.json b/boards/attiny85.json index 897dd58..b3313ee 100644 --- a/boards/attiny85.json +++ b/boards/attiny85.json @@ -1,7 +1,7 @@ { "build": { "core": "tiny", - "extra_flags": "-DARDUINO_AVR_ATTINYX5 -DNEOPIXELPORT=PORTB", + "extra_flags": "-DARDUINO_AVR_ATTINYX5 -DNEOPIXELPORT=PORTB -DCLOCK_SOURCE=6", "f_cpu": "8000000L", "mcu": "attiny85", "variant": "tinyX5" diff --git a/boards/attiny88.json b/boards/attiny88.json index 41bc0c3..85c5f86 100644 --- a/boards/attiny88.json +++ b/boards/attiny88.json @@ -1,7 +1,7 @@ { "build": { "core": "tiny", - "extra_flags": "-DARDUINO_AVR_ATTINYX8", + "extra_flags": "-DARDUINO_AVR_ATTINYX8 -DCLOCK_SOURCE=18", "f_cpu": "8000000L", "mcu": "attiny88", "variant": "tinyX8" From 52062ec06ede65db631b85f44e21369201862765 Mon Sep 17 00:00:00 2001 From: valeros Date: Tue, 31 Aug 2021 13:22:42 +0300 Subject: [PATCH 5/6] Update simavr packages // Resolve #258 --- platform.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.json b/platform.json index 32ec854..de3eb88 100644 --- a/platform.json +++ b/platform.json @@ -141,7 +141,7 @@ "type": "debugger", "optional": true, "owner": "platformio", - "version": "~1.10600.200511" + "version": "~1.10700.0" } } } From 28cd4eb74310b465022b1d47717bc816e4481783 Mon Sep 17 00:00:00 2001 From: valeros Date: Tue, 31 Aug 2021 16:01:52 +0300 Subject: [PATCH 6/6] Bump version to 3.4.0 --- platform.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.json b/platform.json index de3eb88..f4083d4 100644 --- a/platform.json +++ b/platform.json @@ -18,7 +18,7 @@ "type": "git", "url": "https://github.com/platformio/platform-atmelavr.git" }, - "version": "3.3.0", + "version": "3.4.0", "frameworks": { "arduino": { "package": "framework-arduino-avr",