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
Upload your printer config
multiple-amethystOP•2y ago
Have you done the jumpers
multiple-amethystOP•2y ago
upper jumpers yes lower i will check in one second
For both drivers the voltage is 48V
Upper jumper to the left.
And all 4 in the center.
multiple-amethystOP•2y ago
All 4 means it will be in SPI not UART
My are all in UART
Should i put in SPI Mode?
you shall have all 4 in as in picture
.
.
you have a octopus pro 429?
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...
multiple-amethystOP•2y ago
>you have a octopus pro 429?
yes
just so you know
multiple-amethystOP•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
you are missing this
multiple-amethystOP•2y ago
multiple-amethystOP•2y ago
Still same error
I think you should combine those.
You are writing every stepper twice
multiple-amethystOP•2y ago
multiple-amethystOP•2y ago
And i have checked the x and y are now in SPI Mode
Same error
@Helge Keck
Help
these two files still contain 2209 configs for the X and Y stepper
i copied these files and changed them manually
sensorless homeing
multiple-amethystOP•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
multiple-amethystOP•2y ago
The TMC5160 should be in SPI or UART @Helge Keck ?
I dont get it am useing correct path to tmc 5160
multiple-amethystOP•2y ago
multiple-amethystOP•2y ago
spi
multiple-amethystOP•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 😦
please share again your current printer.cfg
multiple-amethystOP•2y ago
you still ahve this include in the printer cfg
did you changed the source files?
multiple-amethystOP•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
keep these two inlcudes before the actual stepper includes
multiple-amethystOP•2y ago
@Helge Keck Z,Z1,Z2 also should be in SPI mode?
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?
asking bc of this part here
user needs to copy and paste the file manually and then change it
multiple-amethystOP•2y ago
i have commented everything and have done this
multiple-amethystOP•2y ago
multiple-amethystOP•2y ago
multiple-amethystOP•2y ago
getting this error
Option 'dir_pin' is not valid in section 'tmc5160 stepper_x'
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]
..........
multiple-amethystOP•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?
add/remove the
!
from !x_dir_pin
the ! inverts the directionTo be fair this is a very explicit part of the guide.
No plans to change this before 3.0
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
yeah i should add that
fixed, online in 10
and move the jumper from 24V to 48V
multiple-amethystOP•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
multiple-amethystOP•2y ago
ok so im using this but also want to add another x and y for AWD setup
No problemo! Just define [stepper_x1] [stepper_y1] and [tmc5160 stepper_x1] [tmc5160 stepper_y1]
i did and i added the [include Steppers5160.cfg] file i made into the users over ride ssection and i get this message
is my .cfg file i made missing something
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
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
ahhh waht am i missing lol
omg it works
bahahahahahahaha
maybe not lol
im going to creat a new issue
Have u changed your board to run spi on the X and Y stepper drivers? 🙂
no
Do that first 😛 Remember to power off your board before unplugging your drivers
TY
still the same
https://discord.com/channels/582187371529764864/1122948038697169020/1122948206725189662 heres the new convo