Jump to content

BIGTREETECH TMC5160 Pro V1.1 and BIGTREETECH BTT Octopus PRO F446 on klipper: spi not working


Nick Kozobrod

Recommended Posts

Good day! 

I've bought BIGTREETECH TMC5160 Pro V1.1 and BIGTREETECH BTT Octopus PRO F446

When I try to test X or Y stepper klipper says Unable to write tmc spi 'stepper_x' register GLOBALSCALER

I've tried with sensorless jumpers and "diag0_pin: ^!PG6" / "diag1_pin:^!PG6 " and without - no difference

Klipper settings:

[stepper_x]
step_pin: PF13
dir_pin: PF12
enable_pin: !PF14
#step_distance: 0.0025 #0.01
rotation_distance: 32
microsteps: 128
endstop_pin: PG12
position_endstop: -22
position_max: 326
position_min: -22  #-24.55 2.3
homing_speed: 20
homing_retract_dist: 0
 
[tmc5160 stepper_x]
cs_pin:PC4
spi_software_sclk_pin: PA5
spi_software_mosi_pin: PA7
spi_software_miso_pin: PA6
interpolate: False
run_current: 1
sense_resistor: 0.075
driver_PWM_AUTOSCALE: True
driver_PWM_AUTOGRAD: True
 
diag0_pin: ^!PG6
# diag1_pin: ^!PG6
 
[stepper_y]
step_pin: PG0
dir_pin: PG1
enable_pin: !PF15
#step_distance: 0.0025 #0.01
rotation_distance: 32
microsteps: 128
endstop_pin: PG13
position_endstop: -15.42
position_max: 271
position_min: -15.42
homing_speed: 20
homing_retract_dist: 0
 
[tmc5160 stepper_y]
cs_pin:PD11
spi_software_sclk_pin: PA5
spi_software_mosi_pin: PA7
spi_software_miso_pin: PA6
interpolate: False
run_current: 1
sense_resistor: 0.075
driver_PWM_AUTOSCALE: True
driver_PWM_AUTOGRAD: True
diag0_pin:^!PG9
# diag1_pin: ^!PG9

TMC DUMP:

09:52:54 // ========== Write-only registers ==========
09:52:54 // GLOBALSCALER: 00000054 globalscaler=84
09:52:54 // IHOLD_IRUN: 00061f1f ihold=31 irun=31 iholddelay=6
09:52:54 // COOLCONF: 00000000
09:52:54 // PWMCONF: c40c001e pwm_ofs=30 pwm_autoscale=1 pwm_autograd=1 pwm_reg=4 pwm_lim=12
09:52:54 // TPOWERDOWN: 0000000a tpowerdown=10
09:52:54 // ========== Queried registers ==========
09:52:54 // GCONF: ffffffff recalibrate=1 faststandstill=1 en_pwm_mode=1 multistep_filt=1 shaft=1(Reverse) diag0_error=1 diag0_otpw=1 diag0_stall=1 diag1_stall=1 diag1_index=1 diag1_onstate=1 diag1_steps_skipped=1 diag0_int_pushpull=1 diag1_poscomp_pushpull=1 small_hysteresis=1 stop_enable=1 direct_mode=1 test_mode=1
09:52:54 // CHOPCONF: ffffffff toff=15 hstrt=7 hend=15 fd3=1 disfdcc=1 chm=1 tbl=3 vhighfs=1 vhighchm=1 tpfd=15 mres=15(0usteps) intpol=1 dedge=1 diss2g=1 diss2vs=1
09:52:54 // GSTAT: ffffffff reset=1(Reset) drv_err=1(ErrorShutdown!) uv_cp=1(Undervoltage!)
09:52:54 // DRV_STATUS: ffffffff sg_result=1023 s2vsa=1 s2vsb=1 stealth=1 fsactive=1 csactual=255 stallguard=1 ot=1(OvertempError!) otpw=1(OvertempWarning!) s2ga=1(ShortToGND_A!) s2gb=1(ShortToGND_B!) ola=1(OpenLoad_A!) olb=1(OpenLoad_B!) stst=1
09:52:54 // FACTORY_CONF: ffffffff factory_conf=31
09:52:54 // IOIN: ffffffff refl_step=1 refr_dir=1 encb_dcen_cfg4=1 enca_dcin_cfg5=1 drv_enn=1 enc_n_dco_cfg6=1 sd_mode=1 swcomp_in=1 version=0xff
09:52:54 // LOST_STEPS: ffffffff lost_steps=1048575
09:52:54 // MSCNT: ffffffff mscnt=1023
09:52:54 // MSCURACT: ffffffff cur_a=-1 cur_b=-1
09:52:54 // OTP_READ: ffffffff otp_fclktrim=31 otp_s2_level=1 otp_bbm=1 otp_tbl=1
09:52:54 // PWM_SCALE: ffffffff pwm_scale_sum=255 pwm_scale_auto=-1
09:52:54 // PWM_AUTO: ffffffff pwm_ofs_auto=255 pwm_grad_auto=255
09:52:54 // TSTEP: ffffffff tstep=1048575

4032-3024-max (1).jpg

4032-3024-max.jpg

Link to comment
Share on other sites

  • Administrators

Hello, if you have any use problems, please feel free to contact our technicians by submitting a ticket. They will contact you within 24 hours on workdays. Here is the procedure and link:
https://biqu3d.com/pages/submit-a-ticket

Step 1: Submit a ticket from the link.
Step 2: Receive the verification code in your inbox. (To ensure that our technical support can contact you correctly.)
Step 3: Filled in some details on the ticket page, such as your order number and the problem descriptions, even screenshots.
Step 4: Submit your ticket.

Then, our technical support will check your ticket and give some solutions within 24 hours on workdays. And please look for your junk mail for a while, sometimes our replies are wrongly recognized. If you still can't get the verification email or response email, please contact us again, thanks for your patience.

Warm regards,
BIQU

Link to comment
Share on other sites

no people skills here everyone gets the same response

  • Administrators

Hello, if you have any use problems, please feel free to contact our technicians by submitting a ticket. They will contact you within 24 hours on workdays. Here is the procedure and link:
https://biqu3d.com/pages/submit-a-ticket

Step 1: Submit a ticket from the link.
Step 2: Receive the verification code in your inbox. (To ensure that our technical support can contact you correctly.)
Step 3: Filled in some details on the ticket page, such as your order number and the problem descriptions, even screenshots.
Step 4: Submit your ticket.

Then, our technical support will check your ticket and give some solutions within 24 hours on workdays. And please look for your junk mail for a while, sometimes our replies are wrongly recognized. If you still can't get the verification email or response email, please contact us again, thanks for your patience.

Warm regards,
BIQU

 
  • HELP US
Link to comment
Share on other sites

  • 3 months later...

Hi, did you ever resolve this issue? I have the same problem and I have just submitted a ticket. I have the impression that some BTT Octopus Pro boards have some issue with their SPI. I had a second board that worked without issues with a pair of TMC5160HV.

The one I have now doesn't work no matter what I try. I tried 2 different types of steppers (TMC5160HV from Fysetc and TMC5160 Pro 1.1 from BTT), in hardware mode trying all the SPI channels, in software mode. Nothing.

Someone said on another forum that there was a conflict with the shared SPI with the MAX31865 putting

[static_digital_output disable_max31865]
pins: !PF8

In their configuration, but it didn't work in my case. Also, it should have been fixed in Klipper by now.

Link to comment
Share on other sites

I have opened a second ticket now, as the first one was never replied (a week ago). Let's see if I have more luck with the last one.

Also, I have eventually purchased a new BTT Octopus Pro and it works without issues with the same stepper drivers I was trying to use on the first board. So, it is definitely an issue with the board.

I have also found this: https://gist.github.com/kmobs/2c151bacc1aa74bafa93ea876f50f1b6

Other people are experiencing this issue as some of the Octopus pro boards (no matter the chipset they are using) apparently have the SPI bus disconnected.

Edited by Fabio
Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...