32bit board with LPC1768, support marlin2.0 and smoothieware, support lcd2004/12864, On-board TMC2130 SPI interface and TMC2208 UART interface no additional wiring is required
I configure from the BTT SKRV1.3 a single X stepper motor with TMC5160.
if USB or External power : TMC5160 is always ALL LOW
Printer is now online.
SENDING:M122
axis:pwm_scale/curr_scale/mech_load|flags|warncount
X
Enabled false
Set current 800
RMS current 792
MAX current 1117
Run current 15/31
Hold current 7/31
Global scaler 133/256
CS actual 0/31
PWM scale 0
vsense
stealthChop false
msteps 256
tstep 0
PWM thresh.
[mm/s]
OT prewarn false
triggered
OTP false
off time 0
blank time 16
hysteresis
-end -3
-start 1
Stallguard thrs 0
uStep count 0
DRVSTATUS X
sg_result 0
stallguard
fsactive
stst *
olb
ola
s2gb
s2ga
otpw
ot
Driver registers:
X 0x00:00:00:00 Bad response!
Testing X connection... Error: All LOW
So I applied the fix I found in TMC_plaforms.h : Fix support for BIGTECHTREE SKR 1.3 board teemuatlut/TMCStepper#63
elif defined(TARGET_LPC1768)
//typedef volatile LPC_GPIO_TypeDef fastio_reg;
//typedef uint32_t fastio_bm;
/ ERROR TMC51650 detected as ALL LOW
Hello
I configure from the BTT SKRV1.3 a single X stepper motor with TMC5160.
So I applied the fix I found in TMC_plaforms.h : Fix support for BIGTECHTREE SKR 1.3 board teemuatlut/TMCStepper#63
elif defined(TARGET_LPC1768)
//typedef volatile LPC_GPIO_TypeDef fastio_reg; //typedef uint32_t fastio_bm; / ERROR TMC51650 detected as ALL LOW
define writeMOSI_H LPC176x::gpio_set(mosi_pin)
define writeMOSI_L LPC176x::gpio_clear(mosi_pin)
define writeSCK_H LPC176x::delay_ns(240); LPC176x::gpio_set(sck_pin)
define writeSCK_L LPC176x::delay_ns(240); LPC176x::gpio_clear(sck_pin)
define readMISO LPC176x::gpio_get(miso_pin)
*/
define writeMOSI_H digitalWrite(mosi_pin, HIGH)
define writeMOSI_L digitalWrite(mosi_pin, LOW)
define writeSCK_H digitalWrite(sck_pin, HIGH)
define writeSCK_L digitalWrite(sck_pin, LOW)
define readMISO digitalRead(miso_pin)
When powered to USB : no change When powered to external power : TMC driver is seen as OK, but it is impossible to move the stepper motor.
TMC5160 SKRV1.3 ALL LOW.zip