-
Notifications
You must be signed in to change notification settings - Fork 8
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
TMC_DEV compiling error #7
Comments
The TRINAMIC_DEV option should be removed? After adding TMC2209 support it is no longer easy to add generic support for debugging as ther register structures differs significantly from the SPI drivers. |
Hi M122 |
The M122 output looks good, what is your $4 setting value? |
Hi |
Hi |
With which feed rate?
No, microstepping (and many other parameters) are set by the firmware. What could be the problem is that the driver do not output the correct number of pulses? FYI I do not have a SKR Pico board available, and for the time beeing I do not have access to my TMC test platform either. |
Hi |
The main stepper interrupt is generated by a PIO program, search for |
Hi DUMP_TMC STEPPER.txt When watching the realtime output from ioSender the FS field shows 100 if I send G1 X1.5 F100 but the motor turns very slowly taking about 15-20 seconds to complete the command. The microstepping is correct because the motor turns exactly 1 turn for X1.5 as my leadscrew is 1.5mm pitch. If I give G1 X1.5 F500 it moves at a similar speed to Klipper using G1 X1.5 F100 It seems there is some problem with the feed rate somewhere but my coding skills are not enough to identify where it is. I've spent many hours examing the code but can't seem to find the problem. Hope you had a good Christmas and may thanks for your help |
Can you try with changing |
Hi |
fix for issue motor driver [#7](grblHAL/Plugins_motor#7)
Pio1/sm0 is for the main stepper timer program, the M3 motor (A-axis) wrote data to that when it should not (it should write data to Pio0/sm0. sm0 = state machine 0. |
Hi |
Hi |
What is your $4 setting? It should be 15. |
Hi |
Are able to check signals? I cannot check these myself before I am back home later in January. |
Hi |
Hi |
I cannot spot any obvious bugs so this have to wait until I am back home. |
Hi |
Hi |
Good catch, this line should be
This is likely you modifying the code by accident, the line is static axes_signals_t next_step_outbits; However, the variable is not referenced so should be removed - a leftover from the early days of the driver? |
Hi
I'm having issues with the SKR Pico Board where the steppers run very slowly. I'm using 1/8th micro-stepping with a 1.5mm lead screw pitch and 1066 steps/mm. This works fine on my foam cutter using Grbl-Mega-5x using an Arduino Mega 2560. I've been running this for 3 years and built many RC model aircraft. I decided it was time to look at 32-bit with the RP2040.
I just have the motor on the bench at the moment and even if I try different step/mm settings and micro-stepping they turn very slow, so slow I didn't think they were turning at first. I've tried my G-code sender and ioSender and both show the same slow running in the DRO's.
I decided to enable TMC_DEV to further investigate but I get compiling errors. The first error being
_[build] C:\Users\khowl\Documents\Code\RP2040\motors\trinamic.c:776:111: error: 'stepper[report.sg_status_motor]' is a pointer; did you mean to use '->'?
[build] 776 | sprintf(sbuf, "[SGPARAMS:%ld:%d:%d:%d]" ASCII_EOL, report.sg_status_motor, stepper[report.sg_status_motor].coolconf.reg.sfilt, stepper[report.sg_status_motor].coolconf.reg.semin, stepper[report.sg_status_motor].coolconf.reg.semax);
TMC_DEV.txt
I've attached the compiler output which has more errors. Without TMC_DEV enabled it compiles without any errors.
As an additional test, I have one of the little Pico Boards and if I use PicoBoB as the board in my_machine.h the DRO's show the normal speed in the DRO's. So I suspect it's something in the Trimanic 2209 drivers causing the issue.
Any help greatly appreciated.
Keith
The text was updated successfully, but these errors were encountered: