Welcome! Log In Create A New Profile

Advanced

Marlin- change Y axis pins on skr1.4 board

Posted by ddrielts 
Marlin- change Y axis pins on skr1.4 board
September 16, 2021 12:41PM
Hi all,

Wondering if anyone could help me with Marlin configuration. I'm trying to upgrade the board on my MK3s bear to a BTT SKR 1.4. There is something wrong with the port for the Y axis. It just chatters and doesn't want to move. I switched to the X axis port on the board and it works fine. So what I'm trying to do is switch the Y axis pins to the E1 pins which aren't being used. I made the attempt to revise the configuration that Chris Warkocki has on GitHub- [github.com]
I keep getting errors and it won't compile. I'm also upgrading to a TFT v3 touch screen.

Any help would be super appreciated! I will pay someone for their time to assist.
Re: Marlin- change Y axis pins on skr1.4 board
September 16, 2021 09:30PM
You have to edit Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h

Fine all of these lines.

#define Y_STEP_PIN P0_19
#define Y_DIR_PIN P0_20
#define Y_ENABLE_PIN P2_08
#ifndef Y_CS_PIN
#define Y_CS_PIN P1_09
#endif

#define E1_STEP_PIN P1_15
#define E1_DIR_PIN P1_14
#define E1_ENABLE_PIN P1_16
#ifndef E1_CS_PIN
#define E1_CS_PIN P1_01
#endif

#define Y_SERIAL_TX_PIN P1_09
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN

#define E1_SERIAL_TX_PIN P1_01
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN


Swap all "Y_" and "E1_" over then Y will use E1 on the controller.
Re: Marlin- change Y axis pins on skr1.4 board
September 17, 2021 06:27AM
Thank you for the reply.

I did change those. The problem I was having was that it wouldn't build in VScode. I kept getting errors.
Re: Marlin- change Y axis pins on skr1.4 board
September 17, 2021 07:19AM
How about posting the error so we see what is going on?
Re: Marlin- change Y axis pins on skr1.4 board
September 23, 2021 04:24PM
Attached are the errors that are preventing the build.
Attachments:
open | download - Document.docx (454 KB)
Re: Marlin- change Y axis pins on skr1.4 board
September 23, 2021 09:23PM
Something is very broken with your platfomio install.

delete the directory C:\Users\12313\.platformio (note the . in front of platformio) and restart vscode, it will reinstall platformio.
Re: Marlin- change Y axis pins on skr1.4 board
September 26, 2021 03:30PM
Deleted the directory you specified. It did reinstall on startup. Attempted another build on had these errors.

Again, thank you for the help. smiling smiley
Attachments:
open | download - marlin 2.docx (15.6 KB)
Re: Marlin- change Y axis pins on skr1.4 board
September 26, 2021 04:14PM
You have broken your configuration.h

You have removed or commented out a #if without removing or commenting out its corresponding #endif line

Please stop using docx, its a PITA (for non windows users like myself)

Edited 1 time(s). Last edit at 09/26/2021 04:14PM by Dust.
Re: Marlin- change Y axis pins on skr1.4 board
September 26, 2021 04:59PM
I apologize. Copy, paste doesn't seem to work.
Re: Marlin- change Y axis pins on skr1.4 board
September 26, 2021 05:08PM
#define MOTHERBOARD BOARD_BTT_SKR_V1_4
//#endif
This endif was not commented out. Could you tell me where else to look?
Re: Marlin- change Y axis pins on skr1.4 board
September 26, 2021 08:49PM
You have not attached your Config files, so no, I can't
Not without new error messages or the Configuration.h and maybe the Configuration_adv,h file
Re: Marlin- change Y axis pins on skr1.4 board
September 27, 2021 03:54PM
Sorry. dumb question.
Attachments:
open | download - Configuration.h (106.8 KB)
open | download - Configuration_adv.h (165 KB)
Re: Marlin- change Y axis pins on skr1.4 board
September 27, 2021 07:49PM
This is not the correct place

#ifndef MOTHERBOARD
  #define MOTHERBOARD BOARD_BTT_SKR_V1_4
//#endif

This should be

#ifndef MOTHERBOARD
  #define MOTHERBOARD BOARD_BTT_SKR_V1_4
#endif


The real cause is the line

//#if ENABLED(Z_SAFE_HOMING)

Which must be

#if ENABLED(Z_SAFE_HOMING)

you also really want Z_SAFE_HOMING enabled
change
//#define Z_SAFE_HOMING

to

#define Z_SAFE_HOMING

Now it compiles.
Re: Marlin- change Y axis pins on skr1.4 board
September 28, 2021 04:35PM
It looked like it was compiling. Then I received these errors-


Compiling .pio\build\LPC1768\src\src\module\settings.cpp.o
Compiling .pio\build\LPC1768\src\src\module\stepper.cpp.o
Compiling .pio\build\LPC1768\src\src\module\stepper\indirection.cpp.o
Compiling .pio\build\LPC1768\src\src\module\stepper\trinamic.cpp.o
Compiling .pio\build\LPC1768\src\src\module\temperature.cpp.o
Compiling .pio\build\LPC1768\src\src\module\tool_change.cpp.o
Marlin\src\module\stepper\trinamic.cpp:1024:45: error: static assertion failed: Y_SLAVE_ADDRESS conflicts with another driver using the same Y_SERIAL_RX_PIN or Y_SERIAL_TX_PIN
1024 | #define SA_NO_TMC_SW_C(A) static_assert(1 >= count_tmc_sw_serial_matches(TMC_SW_DETAIL_ARGS(A), 0, COUNT(sanity_tmc_sw_details)), TMC_SWSERIAL_CONFLICT_MSG(A));
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Marlin\src\module\stepper\trinamic.cpp:1026:3: note: in expansion of macro 'SA_NO_TMC_SW_C'
1026 | SA_NO_TMC_SW_C(Y); SA_NO_TMC_SW_C(Y2);
| ^~~~~~~~~~~~~~
Marlin\src\module\stepper\trinamic.cpp:1024:45: error: static assertion failed: Z2_SLAVE_ADDRESS conflicts with another driver using the same Z2_SERIAL_RX_PIN or Z2_SERIAL_TX_PIN
1024 | #define SA_NO_TMC_SW_C(A) static_assert(1 >= count_tmc_sw_serial_matches(TMC_SW_DETAIL_ARGS(A), 0, COUNT(sanity_tmc_sw_details)), TMC_SWSERIAL_CONFLICT_MSG(A));
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Marlin\src\module\stepper\trinamic.cpp:1027:22: note: in expansion of macro 'SA_NO_TMC_SW_C'
1027 | SA_NO_TMC_SW_C(Z); SA_NO_TMC_SW_C(Z2); SA_NO_TMC_SW_C(Z3); SA_NO_TMC_SW_C(Z4);
| ^~~~~~~~~~~~~~
Compiling .pio\build\LPC1768\src\src\sd\Sd2Card.cpp.o
*** [.pio\build\LPC1768\src\src\module\stepper\trinamic.cpp.o] Error 1
=========================================================== [FAILED] Took 133.62 seconds ===========================================================
Environment Status Duration
------------- -------- ------------
LPC1768 FAILED 00:02:13.621
====================================================== 1 failed, 0 succeeded in 00:02:13.621 ======================================================
The terminal process "C:\Users\12313\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.
Re: Marlin- change Y axis pins on skr1.4 board
September 28, 2021 09:40PM
Your Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h isnt quite correct in some way





Make sure it has these 4 lines

#define E1_SERIAL_TX_PIN P1_09
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN

#define Y_SERIAL_TX_PIN P1_01
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
Re: Marlin- change Y axis pins on skr1.4 board
September 28, 2021 10:13PM
If that doesn't solve it, attach the file pins_BTT_SKR_V1_4 for inspection.
Re: Marlin- change Y axis pins on skr1.4 board
September 29, 2021 04:56PM
That allowed it to compile. The axis are not moving correctly though.

When I move the axis listed the result is as shown-

Z- left Z and Y. And the Bed is chattering terrible like it did when hooked up to the original driver
Y- Only moves the right Z
X- Works perfectly

I'm ready to just order another board. I'm sure you are as frustrated as I. I apologize for the time you've invested.
Attachments:
open | download - pins_BTT_SKR_V1_4.h (16.7 KB)
Re: Marlin- change Y axis pins on skr1.4 board
September 29, 2021 06:47PM
Your first post says "So what I'm trying to do is switch the Y axis pins to the E1 pins which aren't being used"

But your have setup the Configuration_adv,h so that Z uses two stepper drivers ieThe Z and the E1

You cannot use E1 as a second Z and a Y

If this is in error you need to change #define NUM_Z_STEPPER_DRIVERS 2 in Configuration_adv.h to #define NUM_Z_STEPPER_DRIVERS 1
Re: Marlin- change Y axis pins on skr1.4 board
September 29, 2021 07:07PM
I'm confused as to why the 2nd Z stepper is set up as E1. I didn't change this.
There is a designated driver for that stepper. I have attached the board schematic.
The E1 should be unused unless you have duel extruders. Unless I am not understanding it correctly.
Attachments:
open | download - skr 1.4.jpg (132.8 KB)
Re: Marlin- change Y axis pins on skr1.4 board
September 29, 2021 08:33PM
Z can use 1,2,3 or 4 stepper drivers
You have set NUM_Z_STEPPER_DRIVERS 2.
This uses the unused E stepper as Z2 stepper

change NUM_Z_STEPPER_DRIVERS to 1
Re: Marlin- change Y axis pins on skr1.4 board
September 29, 2021 08:33PM
ZMA znd ZMB are both connected to the 1 z stepper driver
Re: Marlin- change Y axis pins on skr1.4 board
September 30, 2021 04:35PM
This worked. I thought there were 6 steppers. I didn't realize the 2nd Z went to the E1.

Thank you for all of the help!!!!
Sorry, only registered users may post in this forum.

Click here to login