-
Notifications
You must be signed in to change notification settings - Fork 31
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
MCU Hangs When Setting Specific Address in TMC2209 Library with STM32G0B1RET6 #81
Comments
Turned out I didn't had to use Software serial
Outputs
|
So are you saying that using a non-default serial address works with hardware serial, but not software serial? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I am experiencing an issue using the TMC2209 library on an STM32G0B1RET6-based board. The board schematic is available here:
https://github.com/bigtreetech/BIGTREETECH-SKR-mini-E3/blob/master/hardware/BTT%20SKR%20MINI%20E3%20V3.0/Hardware/BTT%20E3%20SKR%20MINI%20V3.0_SCH.pdf
The board has 4 drivers, each with a unique address configured via the MS1 and MS2 pins. When using a simple setup method, everything works as expected. However, the MCU hangs when I try to specify a specific driver using its address during the setup process. The program never reaches the
Setup done.
output.Working Code (Default Address)
This code works correctly:
Non-Working Code (Specific Address)
This code causes the MCU to hang indefinitely:
Steps to Reproduce:
Expected Behavior:
The MCU should initialize the TMC2209 driver with the specified serial address and continue to execute the program.
Additional Context:
Using the default address (no address specified in setup()) works without issues.
The issue occurs only when specifying the address during initialization.
Questions:
The text was updated successfully, but these errors were encountered: