I am trying to setup an MKS SBASE V1.3 board to use dual endstops. I’ve flashed Marlin 2.0 to the board. I have edited the Configuration.h and Configuration_adv.h to enable the DRV8825 drivers @1.2A and edited the dual endstop code to reassign X+ and Y+ endstops.
When I try to compile the .bin I get the following output. I assume because the E0 and E1 extruder is now mapped to the dual X or Y motor driver is why I am getting this error.
How would I map a dummy extruder?
Do I need to map the E0 and E1 to X and Y in the Configuration_adv.h when I have jumper wires slaving the two channels?
Do need to remap pins in the Pins_MKS_SBASE.h file?
How do I find the pin outs/numbers on the MKS SBASE V1.3 to edit the pins_MKS_SBASE.h file?
https://www.v1engineering.com/auto-square-dual-endstops/
How it is done in the firmware
Marlin currently has to have at least one extruder defined, this extruder causes us an issue has we need the driver it is assigned to. All boards have and E0 driver (some call it something different), and dual firmware capable boards also have an E1 driver, beyond that most boards have breakout pins for more external drivers. The first extruder gets assigned to driver E0. To make this all work I change pin assignments for E0 to one of the external break pins change the current E1 pins to the E0 driver, and create an E2 set and assign them the pins of the E1 driver.I hope that makes sense, I move E0 pin assingments out of the way and shuffle E1 and E2 down one slot.
All of this happens in the Pins/Pins_XXXX.h files. XXXX=whatever board you are using.
Thanks in advance
Processing LPC1768 (platform: https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/master.zip; board: nxp_lpc1768; framework: arduino)
Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/nxplpc-arduino-lpc176x/nxp_lpc1768.html
PLATFORM: NXP Arduino LPC176x > NXP LPC1768
HARDWARE: LPC1768 100MHz 31.80KB RAM (464KB Flash)
DEBUG: CURRENT(cmsis-dap) ON-BOARD(cmsis-dap) EXTERNAL(blackmagic, jlink)
Converting Marlin.ino
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(off) COMPATIBILITY(strict)
Collected 4 compatible libraries
Scanning dependencies…
Dependency Graph
|-- <Servo> 1.0.0
|-- <LiquidCrystal> 1.0.0
|-- <U8glib-HAL> 0.4
|-- <TMCStepper> 0.3.0 #8ac8a73
Unable to find destination disk. File must be copied manually.
Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\DebugMonitor_LPC1768.cpp.o
Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\HAL.cpp.o
Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\HAL_spi.cpp.o
Compiling .pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\HAL_timers.cpp.o
In file included from Marlin\src\HAL\HAL_LPC1768…/…/inc/MarlinConfig.h:32:0,
from Marlin\src\HAL\HAL_LPC1768\HAL.cpp:23:
Marlin\src\HAL\HAL_LPC1768…/…/inc/…/pins/pins.h:873:8: error: #error “No E stepper plug left for Y2!”
#error “No E stepper plug left for Y2!”
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768…/…/inc/MarlinConfig.h:32:0,
from Marlin\src\HAL\HAL_LPC1768\HAL_timers.cpp:31:
Marlin\src\HAL\HAL_LPC1768…/…/inc/…/pins/pins.h:873:8: error: #error “No E stepper plug left for Y2!”
#error “No E stepper plug left for Y2!”
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768…/…/inc/MarlinConfig.h:32:0,
from Marlin\src\HAL\HAL_LPC1768\HAL_spi.cpp:51:
Marlin\src\HAL\HAL_LPC1768…/…/inc/…/pins/pins.h:873:8: error: #error “No E stepper plug left for Y2!”
#error “No E stepper plug left for Y2!”
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768…/…/inc/MarlinConfig.h:41:0,
from Marlin\src\HAL\HAL_LPC1768\HAL_timers.cpp:31:
Marlin\src\HAL\HAL_LPC1768…/…/inc/SanityCheck.h:410:4: error: #error “Y_DUAL_STEPPER_DRIVERS requires Y2 pins (and an extra E plug).”
#error “Y_DUAL_STEPPER_DRIVERS requires Y2 pins (and an extra E plug).”
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768…/…/inc/MarlinConfig.h:41:0,
from Marlin\src\HAL\HAL_LPC1768\HAL.cpp:23:
Marlin\src\HAL\HAL_LPC1768…/…/inc/SanityCheck.h:410:4: error: #error “Y_DUAL_STEPPER_DRIVERS requires Y2 pins (and an extra E plug).”
#error “Y_DUAL_STEPPER_DRIVERS requires Y2 pins (and an extra E plug).”
^~~~~
In file included from Marlin\src\HAL\HAL_LPC1768…/…/inc/MarlinConfig.h:41:0,
from Marlin\src\HAL\HAL_LPC1768\HAL_spi.cpp:51:
Marlin\src\HAL\HAL_LPC1768…/…/inc/SanityCheck.h:410:4: error: #error “Y_DUAL_STEPPER_DRIVERS requires Y2 pins (and an extra E plug).”
#error “Y_DUAL_STEPPER_DRIVERS requires Y2 pins (and an extra E plug).”
^~~~~
*** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\HAL.cpp.o] Error 1
*** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\HAL_timers.cpp.o] Error 1
*** [.pioenvs\LPC1768\src\src\HAL\HAL_LPC1768\HAL_spi.cpp.o] Error 1
[SUMMARY]
Environment megaatmega2560 [SKIP]
Environment megaatmega1280 [SKIP]
Environment at90usb1286_cdc [SKIP]
Environment at90usb1286_dfu [SKIP]
Environment DUE [SKIP]
Environment DUE_USB [SKIP]
Environment DUE_debug [SKIP]
Environment LPC1769 [SKIP]
Environment melzi [SKIP]
Environment melzi_optiboot [SKIP]
Environment rambo [SKIP]
Environment sanguino_atmega644p [SKIP]
Environment sanguino_atmega1284p [SKIP]
Environment STM32F1 [SKIP]
Environment STM32F4 [SKIP]
Environment ARMED [SKIP]
Environment teensy35 [SKIP]
Environment malyanm200 [SKIP]
Environment esp32 [SKIP]
Environment fysetc_f6_13 [SKIP]
[ERROR] Took 15.80 seconds
Environment LPC1768 [ERROR]
[ERROR] Took 15.80 seconds