Skip to content

Comments

Add SRAM command injection#17459

Merged
thinkyhead merged 1 commit intoMarlinFirmware:bugfix-2.0.xfrom
thinkyhead:bf2_fix_queue_injection_PR
Apr 10, 2020
Merged

Add SRAM command injection#17459
thinkyhead merged 1 commit intoMarlinFirmware:bugfix-2.0.xfrom
thinkyhead:bf2_fix_queue_injection_PR

Conversation

@thinkyhead
Copy link
Member

@thinkyhead thinkyhead commented Apr 9, 2020

Fixing #17393, #17442, and others…

The main command queue can get filled up regardless of how many extra spaces are left for internal use. This issue was fixed by having an immediate command buffer that bypasses the queue completely while still invoking commands from the correct place in the Marlin main loop. The original solution is light and robust without using a bug SRAM buffer, but since commands must be static strings this limits its use for more complex cases.

This PR adds an SRAM-based immediate command buffer as a compliment to the PROGMEM-based version. Any commands in the SRAM buffer will be executed following commands in the PROGMEM-based buffer, so keep the order in mind if these are used in combination.

@Roxy-3D
Copy link
Member

Roxy-3D commented Apr 9, 2020

Fixing #17393

And very possibly: #17442

@thinkyhead thinkyhead force-pushed the bf2_fix_queue_injection_PR branch from 4c0bfe6 to 2a2a875 Compare April 9, 2020 23:41
@thinkyhead thinkyhead force-pushed the bf2_fix_queue_injection_PR branch from 2a2a875 to 833125e Compare April 9, 2020 23:58
@thinkyhead thinkyhead merged commit 48919c5 into MarlinFirmware:bugfix-2.0.x Apr 10, 2020
ghost pushed a commit to bfhobbes/Marlin that referenced this pull request Apr 15, 2020
mathom pushed a commit to mathom/Marlin that referenced this pull request Apr 17, 2020
jmp0x0000 pushed a commit to jmp0x0000/Marlin that referenced this pull request Aug 7, 2020
njibhu pushed a commit to njibhu/Marlin that referenced this pull request Aug 24, 2020
HairingX pushed a commit to HairingX/Marlin that referenced this pull request Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants