Marlin: Ender-4 Printer config incorrect

Created on 20 Jan 2018  Â·  14Comments  Â·  Source: MarlinFirmware/Marlin

Hi All,
I have just got an ender-4 printer. Working great so far, just wanting to put standard marlin on it.

According to the issues:

9160 and #9188

that were merged 5 days ago, Marlin now supports my printer.

However it looks like the board that comes with the ender-4 is different than the board used by the ender-2. Not sure if it previously came with a different board.
Picture of board that arrived with my printer:
https://goo.gl/nUFxhe.

The board is based on the ATMega2560, with non integrated drivers and a few other things.

There is a guy (Skorpi08) over on the http://www.3d-druck-community.de forums that seems to have created a config file etc for this board.
http://www.3d-druck-community.de/thread-19102.html

Here is a gist of the relevant files as downloading from the forum requires signing up.

Looking at a diff of the config files there are quite a few. The main one is that the Ender-4 is a corexy printer.

Anyway just thought I would bring this up here even though it is closed and merged. Rather than have someone use this config without checking.

Please let me know if you should make a PR containing the new/correct config for this printer.

Configuration

All 14 comments

It now has BOARD_CREALITY_ENDER. If the config is now working then this can be closed.

Hi @thinkyhead

Thanks for the reply.
As i mentioned in the code, the config for BOARD_CREALITY_ENDER is incorrect if intended to be used with a Creality Ender-4

This config assumes that the ender 2 and the ender 4 printers:
1) use the same PCB
2) use the same mechanics

This is not the case.
The PCB is different, with replaceable stepper drivers and based of a ATMega2560 which is different from the board that comes with the Ender 2.

The printer uses an H-Bot printer style of mechanics.
Which from much understanding should mean that one of the #define COREXY or #define COREYX defines enabled in the example Configuration.h

In the mean time i would suggest that this config should be changed to not refer to the Ender 4 at all, and separately i will create a PR to add the Ender 4 as a separate printer once I have tested out the configuration on my own printer.

Thanks,
Lucas

Awesome. Looking very much forward to it! Marlin 1.1.9 is due to be released in a couple of days.

Probably worth mentioning somewhere that Ender-4 and CR-8 have exactly the same mainboard.
I'm not so sure whether the configuration is different or not. I did not manage to get the configuration from this PR to compile, but I have CR-8's original firmware backed up.

I did not manage to get the configuration from this PR to compile

What error did you get? Testing with bugfix-1.1.x?

@thinkyhead yes, it was the base branch of the 1.1 PR, bugfix-1.1.x.

So just to be safe of my bolted-on mods in an attempt to fix this, I properly cloned the repo (was working with a ZIP until now), copied the configs:

cp "Marlin/example_configurations/Creality/Ender-4/*" "Marlin"

And hit "build" in Platformio. Here's the output (minus some useless noise):

PLATFORM: Atmel AVR > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560)
SYSTEM: ATMEGA2560 16MHz 8KB RAM (248KB Flash)

Converting Marlin.ino
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(light)
Collected 29 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <U8glib> v1.19.1
|-- <TMC2130Stepper> v2.2.1
|   |-- <SPI> v1.0
|-- <Adafruit NeoPixel> v1.1.6
|-- <LiquidTWI2> #30aa480
|   |-- <Wire> v1.0
|-- <TMC26XStepper> #c1921b4
|   |-- <SPI> v1.0
|-- <Wire> v1.0
|-- <SoftwareSerial> v1.0
|-- <LiquidCrystal> v1.0.5
|-- <SPI> v1.0
Compiling .pioenvs\megaatmega2560\src\G26_Mesh_Validation_Tool.cpp.o
Compiling .pioenvs\megaatmega2560\src\I2CPositionEncoder.cpp.o
Compiling .pioenvs\megaatmega2560\src\M100_Free_Mem_Chk.cpp.o
Compiling .pioenvs\megaatmega2560\src\Marlin.ino.cpp.o
In file included from Marlin\MarlinConfig.h:33:0,
from Marlin\G26_Mesh_Validation_Tool.cpp:27:
Marlin\pins.h:203:53: fatal error: pins_CREALITY_ENDER.h: No such file or directory

#include "pins_CREALITY_ENDER.h"    // ATmega1284P
^
In file included from Marlin\MarlinConfig.h:33:0,
from Marlin\M100_Free_Mem_Chk.cpp:49:
Marlin\pins.h:203:53: fatal error: pins_CREALITY_ENDER.h: No such file or directory

#include "pins_CREALITY_ENDER.h"    // ATmega1284P
^
In file included from Marlin\MarlinConfig.h:33:0,
from Marlin\I2CPositionEncoder.cpp:31:
Marlin\pins.h:203:53: fatal error: pins_CREALITY_ENDER.h: No such file or directory

#include "pins_CREALITY_ENDER.h"    // ATmega1284P
^
compilation terminated.
compilation terminated.
compilation terminated.
*** [.pioenvs\megaatmega2560\src\M100_Free_Mem_Chk.cpp.o] Error 1
*** [.pioenvs\megaatmega2560\src\G26_Mesh_Validation_Tool.cpp.o] Error 1
*** [.pioenvs\megaatmega2560\src\I2CPositionEncoder.cpp.o] Error 1
 [ERROR] Took 3.26 seconds

Okay, now having slept for a good while I actually got it to compile 😅

Can you provide the corrected code that compiles? This is my first 3D printer kit, and I can’t seem to find any information about the Creality Ender 4

@k0d3x8its — Marlin bugfix-1.1.x and bugfix-2.0.x both include an example configuration for Ender-4.

Is there anywhere else to get this config file? I've been waiting to get confirmed on the that site and still nothing. Replaced my hotend on my cr-8 clone and need to load the firmware corrections.

@willysmoose59 as mentioned above, it's available in bugfix-* in this repository.
Here are the ones in bugfix-1.1.x for instance: https://github.com/MarlinFirmware/Marlin/tree/bugfix-1.1.x/Marlin/example_configurations/Creality/CR-8
Note that you may have to use the rest of the code from the same branch as well.

@D-side Thanks for the info. I see the corrected information in the fix files but the board listed is not in the boards.h file. Is there an updated boards.h out there with the correct info?

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spanner888 picture spanner888  Â·  4Comments

jerryerry picture jerryerry  Â·  4Comments

Kaibob2 picture Kaibob2  Â·  4Comments

StefanBruens picture StefanBruens  Â·  4Comments

ceturan picture ceturan  Â·  4Comments