-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
[BUG] In 2.1.2, Ender-2: 'LCD_PINS_RS' was not declared in this scope #25204
Comments
real Steps to Reproduce:Set #define MOTHERBOARD BOARD_MELZI_CREALITY You dont need all this other stuff complicating the issue |
What LCD are you using? There was a change made so that those pins are defined only when the CR10_STOCKDISPLAY is enabled. This change was made in PR #25012. If I set the LCD to ENDER2_STOCKDISPLAY then I get the errors you listed. ENDER2_STOCKDISPLAY is what is enabled in the Marlin example configuration for ENDER2. As a short term work around you could make the following change to the pins_MELZI_CREALITY.h file:
I'm confused. That file has nothing to do with the standard Marlin. Where are you getting your source files and config files? |
I am using the stock display that came with the Ender-2.
I am using the official Ender-2 configuration from https://github.com/MarlinFirmware/Configurations/tree/release-2.1.2/config/examples/Creality/Ender-2 and then apply my own (delta) changes on top of it using the commands in the file I had posted. |
@Bob-the-Kuhn he scripted github to build it for him, using stock ender2 example conf, and then running his modify script to make configuration changes |
After doing
now I get:
|
I screwed up. Now that I saved the ENDER2_STOCKDISPLAY config I get the same errors. |
I just got around to compiling 2.1.1 with the default ENDER2 configs. It compiled correctly. There are two ways to get bugfix-2.1.x to compile:
|
I just compiled it with #define LCD_PINS_DEFINED commented out and set the LCD to CR10_STOCKDISPLAY. Now I get warnings that LCD_PINS_RS is being defined in two places.:
Compiling with 2.1.1 and CR10_STOCKDISPLAY enabled. No warnings. Time to look further at the changes. |
Looks like the final fix is to keep LCD_PINS_DEFINED but add a couple more defines. No more warnings or errors and M43 shows that the pin/function assignments are the same as with 2.1.1.
Please try this file and see if your system works. |
Thank you very much @Bob-the-Kuhn. Compilation succeeded, will test the firmware on the machine asap. |
@probonopd how goes that testing? |
Thanks for the ping @ellensp, my test was successful 👍 I think this can be merged. |
PR #25258 fixes this bug so this issue is being closed. |
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. |
Did you test the latest
bugfix-2.1.x
code?Could not build bugfix-2.1.x due to another issue. But could build 2.1.1 without issues.
Bug Description
Cannot compile Marlin 2.1.2 for Ender-2: 'LCD_PINS_RS' was not declared in this scope.
Marlin 2.1.1 works.
Bug Timeline
2.1.2
Expected behavior
Compiles.
Actual behavior
Compilation fails.
Steps to Reproduce
No response
Version of Marlin Firmware
2.1.2
Printer model
Creality Ender-2
Electronics
Stock
Add-ons
None
Bed Leveling
None
Your Slicer
None
Host Software
None
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
My configuration can be seen at https://github.com/probonopd/marlin-builds/blob/main/customization/configuration/Creality/Ender-2
The text was updated successfully, but these errors were encountered: