Skip to content

Sloeber does not support compiler.optimization_flags.release and debug => more than double size of .elf than Arduino IDE for BluePill F103C8 (64K) #1625

Closed
@mkumar2789

Description

@mkumar2789

Environment
Sloeber Eclipse Plugin V4.4.2
OS: macOS Sonoma (14.3), M1 MacBook Air (ARM64)

Bug Description
I was trying to switch from Arduino IDE to Sloeber. So I copy-paste my current myProject.ino code into Sloeber and select Default .cpp file to create Arduino Sketch.
I followed the given tutorial for this:
https://github.com/ArminJo/SloeberTutorial

My configuration is in the screenshot:
1.
image

image
image

I got an error: (.elf section .text' will not fit in region FLASH'; region `FLASH' overflowed by 44808 bytes)
Part-1
image

Part-2
image

But when I change the existing MCU in Sloeber from BluePill F103C8 (64KB) to BluePill F103CB (128KB), the output shows no error but the size of the code!
image

Now look at Arduino IDE configuration and code size with BluePill F103C8 (64KB)
Config:
image

Output Part-1
image

Output Part-2
image

So why is Sloeber taking up more space than the Arduino IDE? Is there any setting left or any missing steps to do?
As of now, I have to work on the Arduino IDE, but I am willing to work with Sloeber.

Thanks

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