From 5c4d95ff1be9742661c2d5d367516be6af46eb2f Mon Sep 17 00:00:00 2001 From: Hippo Date: Fri, 20 Feb 2026 08:56:48 +0000 Subject: [PATCH 1/2] Fix format flag for avr-size command `avr-size` no longer recognises the `-C` option; you have to pass in the full form of `--format=avr`. --- Arduino.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Arduino.mk b/Arduino.mk index 5a045066..3a03686c 100644 --- a/Arduino.mk +++ b/Arduino.mk @@ -1260,7 +1260,7 @@ else endif LDFLAGS += -$(MCU_FLAG_NAME)=$(MCU) -Wl,--gc-sections -O$(OPTIMIZATION_LEVEL) -SIZEFLAGS ?= --mcu=$(MCU) -C +SIZEFLAGS ?= --mcu=$(MCU) --format=avr # for backwards compatibility, grab ARDUINO_PORT if the user has it set # instead of MONITOR_PORT From d2c013ed5cf8ad62c33a3114bba6ec8da76f1074 Mon Sep 17 00:00:00 2001 From: Hippo Date: Fri, 20 Feb 2026 09:04:57 +0000 Subject: [PATCH 2/2] Add format flag fix to changelog --- HISTORY.md | 1 + 1 file changed, 1 insertion(+) diff --git a/HISTORY.md b/HISTORY.md index 5f538a0c..61203343 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -37,6 +37,7 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it - New: Build the ArduinoCore API - New: Support for Python 3 and multi-os Python installation using new PYTHON_CMD variable. - New: Add "ARDUINO_{build.board}" to be able to detect board type. +- Fix: Update format flag for `avr-size` command (pull #686) ### 1.6.0 (2017-07-11) - Fix: Allowed for SparkFun's weird usb pid/vid submenu shenanigans (issue #499). (https://github.com/sej7278)