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

Stepping without using class vtables #1349

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

MitchBradley
Copy link
Collaborator

This fixes the recent crash problems while saving DRAM space. It does so by coalescing the Stepping code that needs to be in IRAM into a single place (Stepping.cpp) instead of having bits of it distributed through the Axes / Motors / Pins hierarchies. This reduces the DRAM footprint by about 20K.

The only vtables that are still in DRAM are the .rodata sections from the Spindle classes.

Avoids the need to move Motor and Pin vtables into RAM, thus saving
about 20K of precious RAM space.  It also simplifies the structure
of the stepping code dramatically, so it is all in one place instead
of being distributed throughout a complex class hierarchy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant