SKR 1.4 Turbo Dual endstop Issue

Hey guys,
I want to enable Dual X and Y steppers with limitswitches, i already changed somethings in the code but i can’t figure out why i am getting this error: X2_USE_ENDSTOP has been assigned to a nonexistent endstop! .

I have Marlin-2.0.x, SKR 1.4 Turbo, TMC 2209 in UART.

In file included from d:\mpcnc\marlin-2.0.x\marlin\src\inc\marlinconfig.h:40,
from Marlin\src\HAL\LPC1768…/…/core/serial.h:24,
from Marlin\src\HAL\LPC1768\DebugMonitor.cpp:26:
d:\mpcnc\marlin-2.0.x\marlin\src\inc\SanityCheck.h:1844:6: error: #error “X2_USE_ENDSTOP has been assigned to a nonexistent endstop!”
1844 | #error “X2_USE_ENDSTOP has been assigned to a nonexistent
endstop!”
| ^~~~~
In file included from Marlin\src\HAL\LPC1768…/…/inc/MarlinConfig.h:40,
from Marlin\src\HAL\LPC1768\HAL.cpp:25:
Compiling .pio\build\LPC1769\src\src\HAL\LPC1768\u8g\u8g_com_HAL_LPC1768_hw_spi.cpp.o
Marlin\src\HAL\LPC1768…/…/inc/SanityCheck.h:1844:6: error: #error “X2_USE_ENDSTOP has been assigned to a nonexistent endstop!”
1844 | #error “X2_USE_ENDSTOP has been assigned to a nonexistent
endstop!”
| ^~~~~
In file included from Marlin\src\HAL\LPC1768…/…/inc/MarlinConfig.h:40,
from Marlin\src\HAL\LPC1768\eeprom_flash.cpp:39:
Compiling .pio\build\LPC1769\src\src\HAL\LPC1768\u8g\u8g_com_HAL_LPC1768_ssd_hw_i2c.cpp.o
Marlin\src\HAL\LPC1768…/…/inc/SanityCheck.h:1844:6: error: #error “X2_USE_ENDSTOP has been assigned to a nonexistent endstop!”
Compiling .pio\build\LPC1769\src\src\HAL\LPC1768\u8g\u8g_com_HAL_LPC1768_st7920_hw_spi.cpp.o
1844 | #error “X2_USE_ENDSTOP has been assigned to a nonexistent
endstop!”
Compiling .pio\build\LPC1769\src\src\HAL\LPC1768\u8g\u8g_com_HAL_LPC1768_st7920_sw_spi.cpp.o
| ^~~~~
In file included from Marlin\src\HAL\LPC1768…/…/inc/MarlinConfig.h:40,
from Marlin\src\HAL\LPC1768\HAL_SPI.cpp:51:
Marlin\src\HAL\LPC1768…/…/inc/SanityCheck.h:1844:6: error: #error “X2_USE_ENDSTOP has been assigned to a nonexistent endstop!”
1844 | #error “X2_USE_ENDSTOP has been assigned to a nonexistent
endstop!”
| ^~~~~
In file included from Marlin\src\HAL\LPC1768…/…/inc/MarlinConfig.h:40,
from Marlin\src\HAL\LPC1768\eeprom_sdcard.cpp:25:
Marlin\src\HAL\LPC1768…/…/inc/SanityCheck.h:1844:6: error: #error “X2_USE_ENDSTOP has been assigned to a nonexistent endstop!”
1844 | #error “X2_USE_ENDSTOP has been assigned to a nonexistent
endstop!”
Compiling .pio\build\LPC1769\src\src\HAL\LPC1768\u8g\u8g_com_HAL_LPC1768_sw_spi.cpp.o
| ^~~~~
In file included from d:\mpcnc\marlin-2.0.x\marlin\src\inc\marlinconfig.h:40,
from Marlin\src\HAL\LPC1768…/…/sd/cardreader.h:24,
from Marlin\src\HAL\LPC1768\main.cpp:38:
d:\mpcnc\marlin-2.0.x\marlin\src\inc\SanityCheck.h:1844:6: error: #error “X2_USE_ENDSTOP has been assigned to a nonexistent endstop!”
1844 | #error “X2_USE_ENDSTOP has been assigned to a nonexistent
endstop!”
| ^~~~~
In file included from Marlin\src\HAL\LPC1768…/…/inc/MarlinConfig.h:40,
from Marlin\src\HAL\LPC1768\timers.cpp:31:
Marlin\src\HAL\LPC1768…/…/inc/SanityCheck.h:1844:6: error: #error “X2_USE_ENDSTOP has been assigned to a nonexistent endstop!”
1844 | #error “X2_USE_ENDSTOP has been assigned to a nonexistent
endstop!”
| ^~~~~
*** [.pio\build\LPC1769\src\src\HAL\LPC1768\DebugMonitor.cpp.o] Error
1
*** [.pio\build\LPC1769\src\src\HAL\LPC1768\HAL.cpp.o] Error 1
*** [.pio\build\LPC1769\src\src\HAL\LPC1768\HAL_SPI.cpp.o] Error 1
*** [.pio\build\LPC1769\src\src\HAL\LPC1768\eeprom_flash.cpp.o] Error
1
*** [.pio\build\LPC1769\src\src\HAL\LPC1768\eeprom_sdcard.cpp.o] Error 1
*** [.pio\build\LPC1769\src\src\HAL\LPC1768\main.cpp.o] Error 1
*** [.pio\build\LPC1769\src\src\HAL\LPC1768\timers.cpp.o] Error 1

Sounds like you set the x2 endstop to a non existent endstop :).

Did you set it to Xmax in the configuration_adv.h? Then I would look for mentions of xmax in the configuration.h and make sure it is enabled.

Thanks for the Reply.
The only mentions of XMAX in configuration.h is for endstoppullups and endstoppulldowns. but i don’t use them.

Did you manage to find a solution for this? I had the same problem and fixed it by replacing pins_BTT_SKR_V1_4.H in \Marlin\src\pins\lpc1768 folder. I replaced it with the one in this repo:

I hope that helps

1 Like

hello, could you pass me the compiled firmware? unfortunately I am denied with compilation… :sweat_smile:

Hi Delsi, I would happily send you my compiled firmware but my machine is probably very different to yours. My bed/workspace is only 300 x 400mm x 70mm so if your machine is different you would need to change configuration.h then recompile it… which would likely bring you back to your original errors.

I had lots of issues getting VScode to compile, but this forum and other google searches got me there eventually (perhaps minus a bit of hair). Spinne’s repo is really good (link above) and I suggest you start from there.

Sorry I can’t help you more than that, I have forgotten the exact steps I took to get it to compile.

Good luck!

I added some skr turbo builds to the v510 release of MarlinBuilder. I have only done some small tests on my desk. Please let me know if you try them.

https://docs.v1engineering.com/electronics/marlin-releases/

Can I use V1CNC_Skr1p3_Dual_2209 with an SKR 1.4 Turbo?

It seems like the Skr1p3 build should work with SKR 1.3 and 1.4, but then there are Turbo builds, so but none with 2209.

Hmmm. The right configuration is somewhere between the skr 1p3 2209 and the turbo 8825. There are just so many combinations!

I forked your repo last night, and added in the bits for Turbo with 2209, but I’m not sure that the firmware that was built is correct. I’m stuck though, because my board is in a questionable state right now, so it could be my board. The LCD does show to correct firmware version when I power it up, but it always says “No Printer Connected” when I am in classic mode.

I didn’t procure the board or the screen from V1, so I’m positive that I need to get it flashed. But, I also had a potential electical issue with the board. So I’ve ordered a new one (and I’ll be less of a dumbass with the new board).

Hopefully tomorrow evening I can report back if the firmware the builder built functions correctly or not.

I’ve been using this firmware for a few days now. So far so good.