Giter Club home page Giter Club logo

Comments (5)

terjeio avatar terjeio commented on June 6, 2024

There is another significant difference, the Trinamic drivers is controlled by a separate (soft) UART per driver, v2.0 is via a single hardware UART. There are code for soft UART controlled 2209s in the STM32F4xx repo for BTT SKR 1.1 and 2.0 that could be used as a starting point for this driver.

from stm32f1xx.

AndWalu avatar AndWalu commented on June 6, 2024

There is another significant difference, the Trinamic drivers is controlled by a separate (soft) UART per driver, v2.0 is via a single hardware UART. There are code for soft UART controlled 2209s in the STM32F4xx repo for BTT SKR 1.1 and 2.0 that could be used as a starting point for this driver.

Unfortunately, you're right.
I'll have to go back to my code, I really hate programming.
It means that the 2209 are running on the power up settings now.
Maybe that's enough for me...

Please, close all my issues associated with Trinamic driver.

from stm32f1xx.

AndWalu avatar AndWalu commented on June 6, 2024

In my opinion, software UART is not a good idea if we have hardware USART avaliable.
In my solution I use a GPIO mirroring.
Both writing and reading are done using hardware USART.
The only changes in Trinamic code (tmc2209.c) are resetting the TMC2209 address in the datagram to send because all TMC2209 on this board have address set to 0.
All code responsible of GPIO mirroring are organized in EXTI interrupt handler.
In the core module (btt_skr_mini_e3_2.0.c, driver.c, serial.c) initialization of GPIO, IRQ handle, and switching of the motor UARTs was added.
I will post the code after completing the tests.

GPIO mirroring idea:
BTT SKR MINI E3 v1 1 UART_02

Example waveform:
TMC2209_02

from stm32f1xx.

DanijelMil avatar DanijelMil commented on June 6, 2024

Dear AndWalu, did you have any progress with testing. I am willing to test you code.

from stm32f1xx.

AndWalu avatar AndWalu commented on June 6, 2024

from stm32f1xx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.