Duet2 expansion port vs. TMC2209-UART drivers
-
Hi Duet-team,
is there a chance to control external TMC2209 drivers throught the expansion port.?
Including UART configuration? (PanelDue-port?)
I'd accept writing a macro as a workaround for the usual M-codes.THX for reading
Olaf -
@o_lampe there is no spare UART on the Duet 2 WiFi to drive TMC2209s. Also, the Duet 3 firmware does not contain driver code for the TMC2209.
You could still use external TMC2209 drivers but you would not be able to control them from the Duet via UART.
-
I read a bit about the one-time-programming OTP of the 2209.
Will it be possible to use them in standalone mode, once they were configured through UART? -
@o_lampe said in Duet2 expansion port vs. TMC2209-UART drivers:
I read a bit about the one-time-programming OTP of the 2209.
Will it be possible to use them in standalone mode, once they were configured through UART?Yes, that should be possible. Alternatively you could in theory use an Arduino or similar to program them via UART.
-
@dc42 said in Duet2 expansion port vs. TMC2209-UART drivers:
Also, the Duet 3 firmware does not contain driver code for the TMC2209.
I use TMC2209 on the STM branch of RRF3.x Would it be possible to pull the driver code from there? @gloomyandy
-
@o_lampe Well you could, but it would be a fair amount of work. The STM32/LPC drivers are based on the ones used on the Duet hardware, but they have two major changes, firstly there is an extra layer to allow the use of multiple different smart drivers (in our case TMC220x and TMC5160), the second part is the provision of a software UART used to communicate with the drivers. On the Duet a hardware UART is normally used. We have versions of this code for LPC and STM32 processors, but a new one would be needed that works on the mcu used in the Duet.
-
@gloomyandy TMC5160 on a Duet2 expansion board would be a nice boost, if they were fully controllable.
But it's far beyond my coding-abilities... -
@o_lampe TMC2209 is supported in the Duet 3 Mini configuration of RRF. However, each build of RRF supports only one type of smart stepper driver. It would be a lot of work to support both TMC2660 and TMC2209 in the same build, and there might not be enough flash memory space for both.