-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown spi_bus '<board>:spi' #2099
Comments
I don't think you need to specify the bus unless you aren't using the main SPI bus. It might work if you simply remove that line, but I'm not certain. Also, you should look at your cs_pin for the X stepper. You've specified an Arduino pin alias from the main MCU. I don't think that's a valid configuration. |
I have tried
So is the only way to have spi on main board? I tried using spi and connecting the stepper to pins 50 and 51 then connecting the cs pin to pin 22 but no result. I was trying to use spi on second board, where the step sticks are. If only the first board can have spi then that limits me for the next 10+ steppers - i can only order uart ones, 2208 and 2209. |
board 1 (arduino mega - no ramps, just a mega)
board 2 (skr mini 1.1)
board 3 (skr mini 1.1)
I need another 10 steppers sockets for extruders which i intend to order in the next 2 weeks (i'm doing a corexy toolchanger). What would be the supported solution now? |
I'm not entirely sure what you're trying to accomplish, but you can't split steppers on the same axis between different MCUs. If you need more than one stepper for an axis, they all need to be on the same MCU along with the endstop for that axis. If you want to use software SPI pins on the SKR mini boards, you need to specify those pins and not use the spi_bus parameter. https://github.com/KevinOConnor/klipper/blob/master/config/example-extras.cfg#L1474 |
They are on the same axis. Above i just put socket first,
|
board 1 (mega spi)
result of dump
next: software spi on board 2 |
That dump means SPI is not working. You can't split the stepper like that. Your step, direction, and enable pins need to be on the same board as your SPI pins. |
I am just trying all options
|
@vladbabii I have 2 MCU on my CoreXY with all 4 z-Steppers on the same MCU. You can still add heaters and extruder to both SKR boards. |
i have no z stepper on board 2. i said that i use stepper in socket for z stepper. as i said above
Anyway, i'm running only board 2 now, the following config with only one board, same result (only ffff....f in values). Do i need some specific pins or should any digital pins work for software spi?
|
The mcu is selected by the cs_pin - so use something like
Any digital output pins should work with software spi.
It's hard to say, but sounds like a wiring or incorrect pin configuration. -Kevin |
To be clear, using a different mcu to configure the driver would be an odd choice and probably not the best plan. Definitely don't mix 5V (mega) with 3.3V (skr) wiring as I suspect that could cause damage to the chips. -Kevin |
So you are using tmc5160 om the mini 1.1.. there isn't any pins that are connected in the stepper socket for the SPI communication.. #1896 |
@Hywelmartin i used wires. The stepstick pins are soldered on top of the step stick, not bottom so they don't connected to anything on the board, then i used dupont wires to connect pins on board to the step stick |
@KevinOConnor Maybe i misunderstood the wiring, it's my first time using spi data lines on step stick
data lines on board: defined via software_spi_... settings |
SDO/CFG0 | MISO - Serial Data Output so 4 cables.. I believe... |
Maybe the issue is that v 1.4 has no CLOCK pin ? on 1.4 DCO replaced the 1.3 CLK pin |
Sorry everyone for wasting your time. The board is broken somewhow. I tried same firmware + settings on another skr mini 1.1 and it works fine. Surprinsingly, uart works fine on the broken board. Thank you for your help, I'm gonna go burn a board now... |
I'm building a multi-board printer (right now one (board mcu)mega2560 and two minis (board xy and z), will add two more minis in the near future) with:
The 2209 with uart work fine with :pin for uart but the :spi does not seem to work. I tried x:spi and x:spi1.
klippy.zip
Please advise how to configure SPI in this case.
Thank you
The text was updated successfully, but these errors were encountered: