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
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:
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.
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.