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
harsh-harlequin
harsh-harlequin•2y ago
D_Jespersen (DJ_Designs)
Have you done the jumpers
No description
harsh-harlequin
harsh-harlequin•2y 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.
harsh-harlequin
harsh-harlequin•2y 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...
harsh-harlequin
harsh-harlequin•2y ago
>you have a octopus pro 429? yes
D_Jespersen (DJ_Designs)
just so you know
No description
harsh-harlequin
harsh-harlequin•2y 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
harsh-harlequin
harsh-harlequin•2y ago
No description
harsh-harlequin
harsh-harlequin•2y ago
Still same error
D_Jespersen (DJ_Designs)
I think you should combine those. You are writing every stepper twice
harsh-harlequin
harsh-harlequin•2y ago
No description
harsh-harlequin
harsh-harlequin•2y 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•2y ago
No description
Helge Keck
Helge Keck•2y 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•2y ago
No description
Helge Keck
Helge Keck•2y ago
No description
Helge Keck
Helge Keck•2y ago
sensorless homeing
No description
harsh-harlequin
harsh-harlequin•2y 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•2y ago
No description
harsh-harlequin
harsh-harlequin•2y ago
The TMC5160 should be in SPI or UART @Helge Keck ? I dont get it am useing correct path to tmc 5160
harsh-harlequin
harsh-harlequin•2y ago
No description
harsh-harlequin
harsh-harlequin•2y ago
No description
Helge Keck
Helge Keck•2y ago
spi
harsh-harlequin
harsh-harlequin•2y 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•2y ago
please share again your current printer.cfg
harsh-harlequin
harsh-harlequin•2y ago
Helge Keck
Helge Keck•2y ago
you still ahve this include in the printer cfg
Helge Keck
Helge Keck•2y ago
No description
Helge Keck
Helge Keck•2y ago
did you changed the source files?
harsh-harlequin
harsh-harlequin•2y ago
No description
Helge Keck
Helge Keck•2y 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•2y ago
keep these two inlcudes before the actual stepper includes
No description
harsh-harlequin
harsh-harlequin•2y ago
@Helge Keck Z,Z1,Z2 also should be in SPI mode?
Helge Keck
Helge Keck•2y 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•2y ago
asking bc of this part here
No description
Helge Keck
Helge Keck•2y ago
user needs to copy and paste the file manually and then change it
harsh-harlequin
harsh-harlequin•2y ago
i have commented everything and have done this
harsh-harlequin
harsh-harlequin•2y ago
No description
harsh-harlequin
harsh-harlequin•2y ago
No description
harsh-harlequin
harsh-harlequin•2y ago
getting this error Option 'dir_pin' is not valid in section 'tmc5160 stepper_x'
Helge Keck
Helge Keck•2y 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] ..........
harsh-harlequin
harsh-harlequin•2y 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•2y ago
add/remove the ! from !x_dir_pin the ! inverts the direction
miklschmidt
miklschmidt•2y ago
To be fair this is a very explicit part of the guide.
No description
miklschmidt
miklschmidt•2y ago
No description
miklschmidt
miklschmidt•2y ago
No description
miklschmidt
miklschmidt•2y ago
No plans to change this before 3.0
Mitsuma
Mitsuma•2y 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•2y ago
yeah i should add that fixed, online in 10
D_Jespersen (DJ_Designs)
and move the jumper from 24V to 48V
harsh-harlequin
harsh-harlequin•2y 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
harsh-harlequin
harsh-harlequin•2y ago
Mr.Robot
Mr.Robot•17mo ago
ok so im using this but also want to add another x and y for AWD setup
miklschmidt
miklschmidt•17mo ago
No problemo! Just define [stepper_x1] [stepper_y1] and [tmc5160 stepper_x1] [tmc5160 stepper_y1]
Mr.Robot
Mr.Robot•17mo 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
Mr.Robot
Mr.Robot•17mo ago
is my .cfg file i made missing something
miklschmidt
miklschmidt•17mo 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
Mr.Robot
Mr.Robot•17mo 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
Mr.Robot
Mr.Robot•17mo ago
ahhh waht am i missing lol
Mr.Robot
Mr.Robot•17mo ago
omg it works bahahahahahahaha maybe not lol
Mr.Robot
Mr.Robot•17mo ago
No description
Mr.Robot
Mr.Robot•17mo ago
im going to creat a new issue
PollePro
PollePro•17mo ago
Have u changed your board to run spi on the X and Y stepper drivers? 🙂
Mr.Robot
Mr.Robot•17mo ago
no
PollePro
PollePro•17mo ago
Do that first 😛 Remember to power off your board before unplugging your drivers
Want results from more Discord servers?
Add your server