bigtreetech / BIGTREETECH-SKR-E3-DIP-V1.0

BIGTREETECH SKR-E3-DIP-V1.0 motherboard is launched by the 3D printing team of Shenzhen BIGTREE technology co., LTD. This board is specially tailored for Ender 3 printer, perfectly replacing the original Ender3 printer motherboard.
130 stars 111 forks source link

TMC 2130 SPI mode #39

Closed RyanParle closed 4 years ago

RyanParle commented 4 years ago

I am having issues getting my TMC 2130's set up in SPI mode. I have been through all of the firmware steps in the TeachingTech youtube video but have performed it under the Atom/Platform.io IDE instead of the arduino IDE

My jumpers are set as in the manual for SPI, do i need to make any additional connections for SPI or are they routed via the stepper driver headers? IMG_20191126_141353 IMG_20191126_141046 IMG_20191126_141030

the response i get from a M122 command is as follows:

Enabled false false false false Set current 760 760 760 900 RMS current 734 734 734 887 MAX current 1035 1035 1035 1251 Run current 23/31 23/31 23/31 28/31 Hold current 11/31 11/31 11/31 14/31 CS actual 31/31 31/31 31/31 31/31 PWM scale 255 255 255 255 vsense 1=.18 1=.18 1=.18 1=.18 stealthChop true true true true msteps 0 0 0 0 tstep 4294967295 4294967295 4294967295 4294967295 pwm threshold 0 0 0 0 [mm/s] - - - - OT prewarn true true true true OT prewarn has been triggered false false false false off time 15 15 15 15 blank time 54 54 54 54 hysteresis -end 12 12 12 12 -start 8 8 8 8 Stallguard thrs 0 0 0 0 DRVSTATUS X Y Z E stallguard sg_result 1023 1023 1023 1023 fsactive stst olb ola s2gb s2ga otpw ot Driver registers: X 0xFF:FF:FF:FF Bad response! Y 0xFF:FF:FF:FF Bad response! Z 0xFF:FF:FF:FF Bad response! E 0xFF:FF:FF:FF Bad response! Testing X connection... Error: All HIGH Testing Y connection... Error: All HIGH Testing Z connection... Error: All HIGH Testing E connection... Error: All HIGH

EDIT: Have also recently tried enabling software SPI and get the same result. i have tried loading the "firmware_tmc2130_chip_on_bottom.bin" and get the same result.

EDIT: attempts made to set bed/extruder temperature cause board to crash and windows to show "device not recognised" errror. this occurs with the above pre compiled .bin as well as all self compiled attempts.

RyanParle commented 4 years ago

The motor driver issue is solved. I had only supplied power to the board via USB, I was not aware that the motor drivers required 12/24v to communicate with the board.