Hi,
I’m having troubles to fix Marlin config to fit MKS Robin Nano V3 Motherboard.
It throws multiple errors while compiling:
While using mks_robin_nano_v3 enviroment in Marlin Auto Build i get:
*** [%USER%\.platformio\packages\framework-arduinoststm32\variants\MARLIN_F4x7Vx\PeripheralPins.c] %BUILD_FOLDER%\.pio\build\mks_robin_nano_v3.sconsign37.dblite: No such file or directory
I don’t know the difference exactly but when using mks_robin_usb_flash_drive environment I get:
In file included from Marlin\src\HAL\STM32../…/inc/MarlinConfigPre.h:56,
from Marlin\src\HAL\STM32../…/inc/MarlinConfig.h:28,
from Marlin\src\HAL\STM32\MarlinSerial.cpp:21:
Marlin\src\HAL\STM32../…/inc/…/…/Configuration_adv.h:3730: warning: “HOMING_FEEDRATE_MM_M” redefined
3730 | #define HOMING_FEEDRATE_MM_M { (30*60), (30*60), (3*60) }
|
In file included from Marlin\src\HAL\STM32../…/inc/MarlinConfigPre.h:39,
from Marlin\src\HAL\STM32../…/inc/MarlinConfig.h:28,
from Marlin\src\HAL\STM32\MarlinSerial.cpp:21:
Marlin\src\HAL\STM32../…/inc/…/…/Configuration.h:1510: note: this is the location of the previous definition
1510 | #define HOMING_FEEDRATE_MM_M { (50*60), (50*60), (4*60) }
|
Where I don’t know how to define homing feedrate properly.
and:
In file included from Marlin\src\HAL\STM32../…/inc/MarlinConfig.h:49,
from Marlin\src\HAL\STM32\MarlinSerial.cpp:21:
Marlin\src\HAL\STM32../…/inc/SanityCheck.h:2087:6: error: #error “Y2_USE_ENDSTOP has been assigned to a nonexistent endstop!”
2087 | #error “Y2_USE_ENDSTOP has been assigned to a nonexistent endstop!”
Where I understand that I haven’t defined endstops properly but again have no idea how to fix it.
In Configuration.h I have them defined this way:
#define USE_XMIN_PLUG
#define USE_YMIN_PLUG
#define USE_ZMIN_PLUG
#define USE_XMAX_PLUG
#define USE_YMAX_PLUG
#define USE_ZMAX_PLUG
and in Configuration_adv.h I have dual endstops defined this way:
//#define X_DUAL_STEPPER_DRIVERS
#if ENABLED(X_DUAL_STEPPER_DRIVERS)
#define INVERT_X2_VS_X_DIR true // Enable if X2 direction signal is opposite to X
//#define X_DUAL_ENDSTOPS
#if ENABLED(X_DUAL_ENDSTOPS)
#define X2_USE_ENDSTOP _XMAX_
#define X2_ENDSTOP_ADJUSTMENT 0
#endif
#endif
#define Y_DUAL_STEPPER_DRIVERS
#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
#define INVERT_Y2_VS_Y_DIR false // Enable if Y2 direction signal is opposite to Y
#define Y_DUAL_ENDSTOPS
#if ENABLED(Y_DUAL_ENDSTOPS)
#define Y2_USE_ENDSTOP _YMAX_
#define Y2_ENDSTOP_ADJUSTMENT 0
#endif
#endif
//
// For Z set the number of stepper drivers
//
#define NUM_Z_STEPPER_DRIVERS 2 // (1-4) Z options change based on how many
#if NUM_Z_STEPPER_DRIVERS > 1
// Enable if Z motor direction signals are the opposite of Z1
//#define INVERT_Z2_VS_Z_DIR
//#define INVERT_Z3_VS_Z_DIR
//#define INVERT_Z4_VS_Z_DIR
#define Z_MULTI_ENDSTOPS
#if ENABLED(Z_MULTI_ENDSTOPS)
#define Z2_USE_ENDSTOP _XMAX_
#define Z2_ENDSTOP_ADJUSTMENT 0
#if NUM_Z_STEPPER_DRIVERS >= 3
#define Z3_USE_ENDSTOP _YMAX_
#define Z3_ENDSTOP_ADJUSTMENT 0
#endif
#if NUM_Z_STEPPER_DRIVERS >= 4
#define Z4_USE_ENDSTOP _ZMAX_
#define Z4_ENDSTOP_ADJUSTMENT 0
#endif
#endif
#endif
complete config files are on GitHub.
Can somebody help me with it? Or I should ask at a different place?