bigtreetech / BIGTREETECH-GTR-V1.0

BIGTREETECH GTR V1.0 motherboard is a high-performance 3D printer main control board with the core controller STM32F407IGT6, which was launched by the 3D printing team of ShenZhen BigTree Technology CO.,LTD ., aiming at solving some problems existing in the motherboard market. The BIGTREETECH GTR V1.0 is the motherboard, and the BIGTREETECH M5 V1.0 is the expansion board.
90 stars 55 forks source link

GTR v1.0 + TMC5160 SPI mode - "TMC CONNECTION ERROR" #26

Closed MercadoNegro closed 4 years ago

MercadoNegro commented 4 years ago

Hello,

I bought a GTR v1.0 with 6xTMC5160, I installed just one of them to test the board and configure Marlin properly to use SPI access, and I'm getting "TMC CONNECTION ERROR" on the display, no matter what I change, if I set TMC5160 as driver I get that message.

This is de TMC status on the console:

m122 SENDING:M122 axis:pwm_scale/curr_scale/mech_load|flags|warncount X Enabled false Set current 800 RMS current 790 MAX current 1114 Run current 23/31 Hold current 11/31 Global scaler 130/256 CS actual 31/31 PWM scale 4294967295 vsense stealthChop true msteps 0 tstep 4294967295 PWM thresh. [mm/s] OT prewarn true triggered OTP false off time 15 blank time 54 hysteresis -end 12 -start 8 Stallguard thrs 0 uStep count 65535 DRVSTATUS X sg_result 1023 stallguard fsactive stst olb ola s2gb s2ga otpw ot Driver registers: X 0xFF:FF:FF:FF Bad response!

LCD_error_TMC tmc5160_GTR_jumpers

MercadoNegro commented 4 years ago

This is not an issue in the board, it's a problem in the user. (Me), and partially something that can be improved in the manual.

To use TMC5160 I need to configure define TMC_USE_SW_SPI. This is mentioned on TMC5160 manual, but it's not mentioned in SKR GTR manual. Maybe is a good idea to drop some note on the SPI configuration part.

Thanks. Gustavo