Skip to content

Switching form Arduino 2.x to Arduino 3.x increase flash size #12014

@vovagorodok

Description

@vovagorodok

Board

ESP32 Dev Module

Device Description

Chess board project with libs dependencies

vovagorodok/ArduinoBleChess
vovagorodok/ArduinoBleOTA
vovagorodok/ArduinoBleBattery
vovagorodok/ArduinoStreamLogger
vovagorodok/ArrayUtils
vovagorodok/ArduinoPin
vovagorodok/Servo
vovagorodok/PicChess
h2zero/NimBLE-Arduino
laurb9/StepperDriver
gmarty2000/Buzzer
fastled/FastLED

Hardware Configuration

N/A

Version

v3.3.3

Type

Bug

IDE Name

VSCode

Operating System

Fedora Linux 43

Flash frequency

N/A

PSRAM enabled

no

Upload speed

N/A

Description

Switching form Arduino 2.x to Arduino 3.x increase flash size from

RAM:   [==        ]  16.8% (used 55180 bytes from 327680 bytes)
Flash: [======    ]  58.7% (used 769481 bytes from 1310720 bytes)

to

RAM:   [==        ]  16.6% (used 54332 bytes from 327680 bytes)
Flash: [=======   ]  65.9% (used 863499 bytes from 1310720 bytes)

it is around 10% of memory, without changing of code. Looks that arduino-esp32 overhead increased. Maybe here is some place for size optimization? Maybe some refactor needed to allow compiler/linker remove unused part of code?

Sketch

N/A

Debug Message

N/A

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions