1

I am getting this error when I try to enable the Z2 driver for MKS Gen L V2.1 Could anyone help?

Error "TMC2208 or TMC2209 on Z2 requires Z2_HARDWARE_SERIAL or Z2_SERIAL_(RX|TX)_PIN.

0scar
  • 32,029
  • 10
  • 59
  • 135
Rayan
  • 91
  • 5

1 Answers1

1

Your question is missing important information, but I can try to figure out something. You didn't say what kind of firmware it is. I assume it is Marlin.

Your problem is that there are no Tx Rx pins specified for Z2 (because there is X, Y, Z, E0, E1 by default on the MKS Gen L board)

I assume you want to use the E1 driver for the Z2 instead of a second extruder. In that case, you have to tell the firmware that you want to use that driver for Z2.

Search the source code for file "pins_MKS_GEN_L_V21.h" There should be E1_SERIAL_TX_PIN and E1_SERIAL_RX_PIN defined. Rename them to Z2_SERIAL_TX_PIN and Z2_SERIAL_RX_PIN.

driver uart pins

In "pins_RAMPS.h" file, find a block of a few lines that starts "E1_STEP_PIN", and rename E1 to Z2 for all those lines.

driver pins

It may (or may not) work now. If it doesn't, please somehow post those configuration files.

Jiří Maier
  • 156
  • 4
  • BTW: do you really want to have two independent drivers for Z? You can just connect two Z steppers to a single driver. – Jiří Maier Apr 20 '21 at 15:45
  • Thank you so much for your response. unfortunately, I tried what you send and the motor still gets hot and now it developed noise! I'm sorry for the inconvenience but I don't know how to share the files, so in the following link I uploaded the configureation.h, configuration_adv.h, pins_RAMPS.h, and pins_MKS_GEN_L_V21.h files. https://drive.google.com/drive/folders/1V8Yw628a-RnjJeKxWd4wU0pyVEelkrGe?usp=sharing – Rayan Apr 24 '21 at 21:04