so,
hab das mal ausprobiert:
STEPPER_TMC2130_HW_SPI(YMotor, IOY1Step, IOY1Dir, IOY1Enable, 6, 0.11, 1, 64, 900, true, 0, -128, 12500000, endstopNone, endstopNone)
und
#ifndef SDSUPPORT // Some boards have sd support on board. These define the values already in pins.h
#define SDSUPPORT 0 (dachte mann könne den SPI Bus für SD ausschalten oder entlasten..SD brauche ich nicht)
leider alles ohne Erfolg.
Send:19:12:53.104: N30 M122 D1
Recv:19:12:53.112: Motor 0: X
Recv:19:12:53.112: Status: No connection
Recv:19:12:53.116: Motor 1: Y
Recv:19:12:53.116: Status: No power
Recv:19:12:53.116: Enabled: Yes
Recv:19:12:53.120: RMS Current [mA]:1602 set: 900
Recv:19:12:53.120: Max. current [mA]: 1254
Recv:19:12:53.124: Microsteps: 0 mres: 15
Recv:19:12:53.124: StealthChop: On
Recv:19:12:53.128: Hybrid treshold [mm/s]: 100.00
Recv:19:12:53.129: Stallguard sensitivity: 0
Recv:19:12:53.132: TSTEP: -1
Recv:19:12:53.132: TPWMTHRS: 1045
Recv:19:12:53.133: TPOWERDOWN: 128
Recv:19:12:53.136: IRUN: 28/31
Recv:19:12:53.136: IHOLD: 14/31
Recv:19:12:53.137: CS Actual: 31/31
Recv:19:12:53.140: vsense: False
Recv:19:12:53.140: toff: 0
Recv:19:12:53.141: hstart: 8
Recv:19:12:53.141: hend: 12
Recv:19:12:53.144: Blank time: 54 tbl: 3
Recv:19:12:53.144: IOIN: 16777215
Recv:19:12:53.145: GSTAT: 255
da kommen werten, SPI haut also hin - korrekte schlussfolgerung?
dennoch immer:
Send:19:16:49.029: N31 G28 X Y
Recv:19:16:49.035: ok 31
Recv:19:16:49.039: X:299.00 Y:245.00 Z:294.700 E:0.0000
Recv:19:16:53.139: busy:processing (2)
Recv:19:16:54.643: Motor 1: Y driver overtemperature! Current: 900
Recv:19:16:54.647: Motor 1: Y driver overtemperature warning! Current: 900
lese hier und da, das mit Software SPI einige weniger Probleme haben.
Könnte ich auf die normalen SPI-Pins referenzieren - Testweise oder muss ich andere nehmen?
hätte noch die vom Z-Stepper auf dem Radds board frei. (EN, DIR, Step) also:
STEPPER_TMC2130_SW_SPI(XMotor, IOX1Step, IOX1Dir, IOX1Enable, ORIG_Z_STEP_PIN, ORIG_Z_DIR_PIN, ORIG_Z_ENABLE_PIN, 5, 0.11, 1, 64, 900, false, 100, 0, -128, endstopNone, endstopNone)
STEPPER_TMC2130_SW_SPI(YMotor, IOY1Step, IOY1Dir, IOY1Enable, ORIG_Z_STEP_PIN, ORIG_Z_DIR_PIN, ORIG_Z_ENABLE_PIN, 6, 0.11, 1, 64, 900, false, 100, 0, -128, endstopNone, endstopNone)