-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sloeber does not support compiler.optimization_flags.release and debug => more than double size of .elf than Arduino IDE for BluePill F103C8 (64K) #1625
Comments
I have created a Q&A discussion to explain all possible reasons I can think of. The -DDebug in image number 3 may explain it. I'll add a discussion to describe what to do if all seems equal but there are Arduino IDE versus Sloeber differences. |
Here is the other discussion |
Thanks for your reply, Jantje. I just use -DDEBUG in the "append to" options, as explained in the tutorial, which can be avoided in my case. |
The reason for being bigger than Arduino is that arduino introduced new debug target.
If you change it to
the |
Thanks for the info. As a workaround you have the option to change the txt file and add |
Can confirm this issue is still happening as of August 2024. |
I know. |
Thinking about this. |
This workaround is a good one as it just creates a default value that is release
This should be fixed in the nightly (I say should as I don't have a reliable way to test) I tried both V 2.7.1 and V2.8.1 |
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.
I got an error: (.elf section
.text' will not fit in region
FLASH'; region `FLASH' overflowed by 44808 bytes)Part-1
Part-2
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!
Now look at Arduino IDE configuration and code size with BluePill F103C8 (64KB)
Config:
Output Part-1
Output Part-2
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
The text was updated successfully, but these errors were encountered: