Skip to content
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

Commit f8aa52346 increased footprint by 1.5kB #14932

Closed
trouch opened this issue Aug 12, 2019 · 9 comments
Closed

Commit f8aa52346 increased footprint by 1.5kB #14932

trouch opened this issue Aug 12, 2019 · 9 comments

Comments

@trouch
Copy link
Contributor

trouch commented Aug 12, 2019

Description

I've noticed that I can't build a BLTouch enabled firmware for Ender-3 stock board anymore using latest code base. Trying to build a translated firmware is also funny, even without bltouch enabled !

I reduced the features as much as possible without any luck, config attached.

So I slowly reverted back until I found the commit that brought more than 1.5k of extra binary code:

Mixer patch, etc. 842466f4d Scott Lahteine <[email protected]> 30 Jul 2019 at 05:20
=> Uses 128906 bytes, fits Ender-3 stock board

Configurable Z move distance (#14593) f8aa52346 MarcelMo <[email protected]> 30 Jul 2019 at 09:16
=> Uses 130628 bytes, goes over bootloader space

Steps to Reproduce

  1. Checkout f8aa523 or following commit.
  2. Uses attached configuration : Ender-3-BLTouch-Minimal.zip
  3. Build using either melzi_optiboot or sanguino_1284p PIO env

Expected behavior: Build should fit

Actual behavior: Fails

Additional Information

Fix proposal: #14933

@reloxx13
Copy link
Contributor

reloxx13 commented Aug 12, 2019

heya,

  • disable bootscreen
  • use JAPANESE charset
  • disable sdsupport
  • disable autotemp
  • disable lcd info screen
  • disable babysteps
    ....

even before this commit it was hard to enable bltouch and sdsupport, u had to disable alot. but u did not even disable those "basics"...
u disabled ARC_SUPPORT, thats it. it will never fit like this.

pls disable everything and report back or buy a better board. there is no other solution.

@reloxx13
Copy link
Contributor

PS:

Do you want to ask a question? Are you looking for support? Please don't post here. Instead please use the Marlin Firmware forum at http://forums.reprap.org/list.php?415 or the Marlin Facebook Group https://www.facebook.com/groups/1049718498464482/ or the Marlin Discord Server https://discord.gg/n5NJ59y.

Before filing an issue be sure to test the 1.1 and/or 2.0 "bugfix" branches to see whether the issue is already addressed.

@InsanityAutomation
Copy link
Contributor

InsanityAutomation commented Aug 12, 2019

@reloxx13 maybe he gave too much information. Let me revise this : Commit ## grows binary size by x.xkb, here is a pull request to make new functionality optional so that a finely tuned build still fits where it did before if I dont want the new feature added.

Edit : basically info about bltouch and ender 3 is side notes not relevant to the actual issue at hand of an unnecessary binary size increase.

@reloxx13
Copy link
Contributor

reloxx13 commented Aug 12, 2019

@InsanityAutomation but the config is not fine tuned, cause bltouch and sdsupport did never fit without disableing alot of stuff for small chips. and without sdsupport there is(was) alot of space left.

there are special guides out there to enable sd support and bltouch (for ender3), which shows to disable those listed above (maybe not all, but he did not disable one of those).

if the size grew now, u may be forced to eg. disable babysteps now, which u could enable before this commit.

@trouch
start with disabling all of those listed and start enabling features u like and check the size everytime u enable something.

@InsanityAutomation
Copy link
Contributor

@reloxx13 Im well aware of that, ive been maintaining a branch with BLTouch, SD Support, and Mesh leveling / bilinear for quite some time. Eric has seen those and may have even cherry picked some of it out for his own setup testing here. Goal is to turn off as little as possible. Last I checked my config compiled at 95% progmem (96.5% hits bootloader!).

In any case, all that is just a distraction from new functionality added not in the normal convention of a config option to turn it off increasing global size.

@trouch
Copy link
Contributor Author

trouch commented Aug 12, 2019

@reloxx13 Come on... don't take it that bad. Please let met add few more details.

In order to debug the issue with my own fine tuned config, I started from the sample Ender-3 config, enabled BLTouch, and started to strip down things. At some point I realized something in the tree expanded the firmware too much.

I've spent lot of time to find the exact commit and feature which increased the footprint.

I obviously know we can't fit everything on a small 128kB memory. Thought I pointed out an issue that lot of Ender-3 user may encounter at some point, and even provided a PR for it.

@trouch trouch changed the title [BUG] Commit f8aa52346 doesn't fit 1284p with BLTouch enabled Commit f8aa52346 increased footprint by 1.5kB Aug 12, 2019
@sl1pkn07
Copy link
Contributor

sl1pkn07 commented Aug 12, 2019

i have the same problem in my 1.1.3 creality board (mine without bltouch). before, (1088846) with my config, all fit in the board,

now i have rebased the code with the new commits (13d8dc0) i'm unable to fit the firmware because exceed the board size

Error: The program size (130572 bytes) is greater than maximum allowed (130048 bytes)

yes is a litle, but before fits without problem, now not

my changes (before rebase (not pushed)(now reverted) sl1pkn07@8641aca)

DATA:    [===       ]  30.0% (used 4921 bytes from 16384 bytes)
PROGRAM: [==========]  99.8% (used 129810 bytes from 130048 bytes)

greetings

@trouch
Copy link
Contributor Author

trouch commented Aug 13, 2019

@sl1pkn07 give a try with #define SHORT_MANUAL_Z_MOVE 0

@github-actions
Copy link

github-actions bot commented Jul 4, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants