TMC 5160 pro for stepper X and Y Problems

Hi, i have installed two TMC 5160 pro for stepper X and Y, i have changed how is told in here https://os.ratrig.com/docs/configuration/advanced-stepper-configuration/ but i keep getting this error: Option 'uart_pin' in section 'tmc2209 stepper_x' must be specified
Advanced Stepper Configuration | RatOS
RatOS V1.1 introduced modularized stepper and driver configuration, this can be used for more fine grained control of your steppers. In your printer.cfg you might have noticed a section like this:
73 Replies
D_Jespersen (DJ_Designs)
Upload your printer config
typical-coral
typical-coral•13mo ago
D_Jespersen (DJ_Designs)
Have you done the jumpers
No description
typical-coral
typical-coral•13mo ago
upper jumpers yes lower i will check in one second For both drivers the voltage is 48V
D_Jespersen (DJ_Designs)
Upper jumper to the left. And all 4 in the center.
typical-coral
typical-coral•13mo ago
All 4 means it will be in SPI not UART My are all in UART Should i put in SPI Mode?
D_Jespersen (DJ_Designs)
you shall have all 4 in as in picture . . you have a octopus pro 429?
D_Jespersen (DJ_Designs)
BIGTREETECH Octopus Pro STM32F429 | RatOS
This board is currently not recommended, as it cannot be flashed automatically through USB, that means all firmware updates have to be done by manually moving an SD card back and forth. It is recommended to get the Octopus Pro 446 instead. RatOS compiles the firmware binary for you each time klipper is updated (while the Octopus Pro 429 is conne...
typical-coral
typical-coral•13mo ago
>you have a octopus pro 429? yes
D_Jespersen (DJ_Designs)
just so you know
No description
typical-coral
typical-coral•13mo ago
The thing is that i had tmc2209 on every axis and it worked half a year, even with the new RatOS 2.0 Now i have connected TMC 5160 and btw also have updated everything in software Maybe because of the update it doesnt work
D_Jespersen (DJ_Designs)
you are missing this
No description
typical-coral
typical-coral•13mo ago
No description
typical-coral
typical-coral•13mo ago
Still same error
D_Jespersen (DJ_Designs)
I think you should combine those. You are writing every stepper twice
typical-coral
typical-coral•13mo ago
No description
typical-coral
typical-coral•13mo ago
And i have checked the x and y are now in SPI Mode Same error
D_Jespersen (DJ_Designs)
@Helge Keck Help
Helge Keck
Helge Keck•13mo ago
No description
Helge Keck
Helge Keck•13mo ago
these two files still contain 2209 configs for the X and Y stepper i copied these files and changed them manually
Helge Keck
Helge Keck•13mo ago
No description
Helge Keck
Helge Keck•13mo ago
No description
Helge Keck
Helge Keck•13mo ago
sensorless homeing
No description
typical-coral
typical-coral•13mo ago
Ok i will connect with file zile and modify them too Now is this Option 'cs_pin' in section 'tmc5160 stepper_y' must be specified
Helge Keck
Helge Keck•13mo ago
No description
typical-coral
typical-coral•13mo ago
The TMC5160 should be in SPI or UART @Helge Keck ? I dont get it am useing correct path to tmc 5160
typical-coral
typical-coral•13mo ago
No description
typical-coral
typical-coral•13mo ago
No description
Helge Keck
Helge Keck•13mo ago
spi
typical-coral
typical-coral•13mo ago
But i am getting the cs pin error ok its spi It wants me to put all the data from path of the stepper/ldo/42sth48-2504ac/5160/50v-1768a-y.cfg to tmc performance.cfg, if i use it i am getting the error that the cs pin is used multiple time, if am deleting everything that i have inserted from stepper/ldo/42sth48-2504ac/5160/50v-1768a-y.cfg in tmc performance.cfg i am getting the error that i must indicate the cs_pin So i have entered in a loop 😦
Helge Keck
Helge Keck•13mo ago
please share again your current printer.cfg
typical-coral
typical-coral•13mo ago
Helge Keck
Helge Keck•13mo ago
you still ahve this include in the printer cfg
Helge Keck
Helge Keck•13mo ago
No description
Helge Keck
Helge Keck•13mo ago
did you changed the source files?
typical-coral
typical-coral•13mo ago
No description
Helge Keck
Helge Keck•13mo ago
thats not good, you are not supposed to change any file in the ratos folder if you need a modified file then its better to copy and paste this file to your prniter.cfg folder and include it instead of the original file also, you should not change the order of the includes
Helge Keck
Helge Keck•13mo ago
keep these two inlcudes before the actual stepper includes
No description
typical-coral
typical-coral•13mo ago
@Helge Keck Z,Z1,Z2 also should be in SPI mode?
Helge Keck
Helge Keck•13mo ago
no, since you are still using 2209 for z 2209 = uart 5160 = spi @miklschmidt do you have any plans to offer a easier XY 5160 include?
Helge Keck
Helge Keck•13mo ago
asking bc of this part here
No description
Helge Keck
Helge Keck•13mo ago
user needs to copy and paste the file manually and then change it
typical-coral
typical-coral•13mo ago
i have commented everything and have done this
typical-coral
typical-coral•13mo ago
No description
typical-coral
typical-coral•13mo ago
No description
typical-coral
typical-coral•13mo ago
getting this error Option 'dir_pin' is not valid in section 'tmc5160 stepper_x'
Helge Keck
Helge Keck•13mo ago
bc dir pin is not part of the 5160 configuration you jsut copy and pasted everything together its not working liek this dir pin is only in this part [stepper_x] position_max: 201 dir_pin: !x_dir_pin not in this part [tmc5160 stepper_x] ..........
typical-coral
typical-coral•13mo ago
Ok, so i have done some changes in printer,cfg now it wotks but the x and y axis are inverted how can i inverse it?
Helge Keck
Helge Keck•13mo ago
add/remove the ! from !x_dir_pin the ! inverts the direction
miklschmidt
miklschmidt•13mo ago
To be fair this is a very explicit part of the guide.
No description
miklschmidt
miklschmidt•13mo ago
No description
miklschmidt
miklschmidt•13mo ago
No description
miklschmidt
miklschmidt•13mo ago
No plans to change this before 3.0
Mitsuma
Mitsuma•13mo ago
I literally followed this 20min ago and I have 0 errors from the config. (couldn't actually power the steppers yet tho) so the current guide seems sufficient if you do follow it properly. at best it could also mention that the stepsticks need SPI jumpers for 5160 pro
miklschmidt
miklschmidt•13mo ago
yeah i should add that fixed, online in 10
D_Jespersen (DJ_Designs)
and move the jumper from 24V to 48V
typical-coral
typical-coral•13mo ago
Finally it works, i think i just messed up with my config, it was late and i was tired but now i have reviewed everything and it works Thanks for everyone helping me to find the problem Huge thanks to @Helge Keck
typical-coral
typical-coral•13mo ago
genetic-orange
genetic-orange•12mo ago
ok so im using this but also want to add another x and y for AWD setup
miklschmidt
miklschmidt•12mo ago
No problemo! Just define [stepper_x1] [stepper_y1] and [tmc5160 stepper_x1] [tmc5160 stepper_y1]
genetic-orange
genetic-orange•12mo ago
i did and i added the [include Steppers5160.cfg] file i made into the users over ride ssection and i get this message
No description
genetic-orange
genetic-orange•12mo ago
is my .cfg file i made missing something
genetic-orange
genetic-orange•12mo ago
miklschmidt
miklschmidt•12mo ago
yeah you need to define all the pins obviously Download your klipper.log, it prints the compiled config. Find the stepper_x and stepper_y sections. Copy that, remove position_* and endstop_pin, rename to x1 / y1 and fix the pins. Same for the tmc sections That's probably the easiest
genetic-orange
genetic-orange•12mo ago
i have all the pins in the .cfg i made ohh nvm i see what your saying sorry ok so did that and the error is still there
genetic-orange
genetic-orange•12mo ago
ahhh waht am i missing lol
genetic-orange
genetic-orange•12mo ago
omg it works bahahahahahahaha maybe not lol
genetic-orange
genetic-orange•12mo ago
No description
genetic-orange
genetic-orange•12mo ago
im going to creat a new issue
PollePro
PollePro•12mo ago
Have u changed your board to run spi on the X and Y stepper drivers? 🙂
genetic-orange
genetic-orange•12mo ago
no
PollePro
PollePro•12mo ago
Do that first 😛 Remember to power off your board before unplugging your drivers
genetic-orange
genetic-orange•12mo ago