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

Consolidation of code for 1284p #63

Closed
Psyc0Flyer opened this issue Mar 27, 2017 · 5 comments
Closed

Consolidation of code for 1284p #63

Psyc0Flyer opened this issue Mar 27, 2017 · 5 comments

Comments

@Psyc0Flyer
Copy link

Psyc0Flyer commented Mar 27, 2017

I was wondering what all I can remove from code if I have very specific hardware? I am using a Melzi (Sanguino) board #63 with SD support, Heated bed, 1X, 1Y, 1Z, 1E, BLTouch and a RepRap Discount Full Graphics Display? I want to have all of the functions of the most current Marlin but a Jenny Craig version. Any and all help would be greatly appreciated!

TIA!

@thinkyhead
Copy link
Member

There is no need to strip out code. Marlin only compiles in the code it needs for the features you have enabled. To get a smaller build, turn off the features you don't need.

@Psyc0Flyer
Copy link
Author

That is what I am asking. I have only selected what I need (I think) and it tells me it is over by 6002 bytes :/

@fiveangle
Copy link
Contributor

setting NO_WORKSPACE_OFFSETS in advance config is usually an easy way to get a few k back

#define NO_WORKSPACE_OFFSETS

@thinkyhead
Copy link
Member

See if the new bugfix-1.1.x is slimmer. We've done a bunch of optimization to try and reduce SRAM usage. 6002 bytes over sounds very strange. Even with a full configuration, Marlin should only use around 5K of SRAM.

@fiveangle
Copy link
Contributor

It's a 128k board so I'm sure he's talking about PROGMEM. Surprised it's only 6k over with all that stuff enabled. Disabling workspace offsets, cold extrusion prevention, disable 503, and maybe a few other small things should get you there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants