Skip to content
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

Trinamic support question #158

Closed
dresco opened this issue Jul 4, 2022 · 5 comments
Closed

Trinamic support question #158

dresco opened this issue Jul 4, 2022 · 5 comments

Comments

@dresco
Copy link
Contributor

dresco commented Jul 4, 2022

Hi @terjeio

I would like to get Trinamic support into the H7 port (for the BTT SKR v3 board). I've bought a board with 2209 drivers for testing, and @Demitrius has a board with 5160 drivers on the way. Looking at the board pinouts, will need to use both soft UART and soft SPI.

Am looking at the F4 code as a starting point, and something puzzles me. The following code is not reached if built for 2209, as is inside an earlier #if TRINAMIC_SPI_ENABLE directive.. Is this a bug, or left over from the recent refactoring?

https://github.com/grblHAL/STM32F4xx/blob/be9965052f8ec7d0e56ccf56ca7c3c06123981cd/Src/btt_skr_2.0.c#L192-L204

@terjeio
Copy link
Contributor

terjeio commented Jul 4, 2022

It is left over from refactoring. For soft UART tmc_uart.c is used. I'll remove the stray code in the next commit.

@dresco
Copy link
Contributor Author

dresco commented Jul 9, 2022

I've added TMC2209 support with soft UART, and appears to be working okay on my BTT SKR 3 board with 2209 drivers. Have pushed these updates to my H7 repo.

However, the TMC5160 is going to need a software SPI implementation for this BTT board, @terjeio I don't suppose you have anything like this already?

@terjeio
Copy link
Contributor

terjeio commented Jul 9, 2022

Great. I do not have any soft SPI code at hand but it should be easier to implement than soft UART as the clock is supplied by the master when receiving data.

@dresco
Copy link
Contributor Author

dresco commented Jul 10, 2022

Cool, I'll keep an eye out for the TMC5160-BOB being back in stock anywhere & pick one up for testing..

@dresco
Copy link
Contributor Author

dresco commented Aug 5, 2022

Trinamic support for 2209 (soft UART) and 5160 (soft and hard SPI) is now in the H7 master branch.

@dresco dresco closed this as completed Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants