bigtreetech / BIGTREETECH-OCTOPUS-Pro

This is OCTOPUS Pro open source material
272 stars 58 forks source link

The SPI bus cannot communicate with the “TMC5160 PRO” driver. #25

Open mekaireb opened 1 year ago

mekaireb commented 1 year ago

Issue: The SPI bus cannot communicate with the “TMC5160 PRO” driver.

Notes: • STEP/DIR work. • Not able to communicate with SPI • Tested two TMC5160 PRO drivers with the same result. • Octopus Pro V1.0 STM32F429ZGT6 • Using the latest Marlin Firmware from (https://github.com/bigtreetech/BIGTREETECH-OCTOPUS-V1.0.git)

Log: Connecting... //action:prompt_end Testing Z connection... Error: All HIGH //action:notification TMC CONNECTION ERROR echo:SD card ok ok B:-49.10 /0.00 @:0 B@:0 Printer is now online. ok B:-49.10 /0.00 @:0 B@:0

M122 SENDING:M122 Z 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 interp true tstep 4294967295 PWM thresh. 0 [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 Z sg_result 1023 stallguard fsactive stst olb ola s2gb s2ga otpw ot Driver registers: Z 0xFF:FF:FF:FF Bad response! Testing Z connection... Error: All HIGH //action:notification TMC CONNECTION ERROR

TMC5160_PRO_SETUP

Configuration.h.txt Configuration_adv.h.txt

mjfsch commented 1 year ago

are your drivers configured for UART or SPI? the TMC5160 can support both, but your specific drivers will be setup for one or the other, possibly neither

sometimes you are required to solder a small link on the driver PCB to select the mode, might be worth checking the datasheet for the drivers

mmakam2 commented 1 year ago

I had the same issue, the board is missing SPI traces. You have to jump a wire from the EXP2 MOSI pin to a spare stepper slot pin SDO. Make sure the spare slot is in SPI mode. PA6 is the top left pin on the EXP2 connector.

NAPCAL commented 1 year ago

I have checked both of my Pro boards and found no continuity issues with the SPI1_MISO or Drivers MISO. Here is what I checked on my F446 & H723. image image

mmakam2 commented 1 year ago

That's bizarre, two of us had the same issue with the same board. Also, I've heard of multiple others having issues enabling spi.

Maybe a bad batch of boards?

On Tue, Mar 21, 2023, 7:49 PM NAPCAL @.***> wrote:

I have checked both of my Pro boards and found no continuity issues with the SPI1_MISO or Drivers MISO. Here is what I checked on my F446 & H723. [image: image] https://user-images.githubusercontent.com/47440988/226773421-1f62c537-a7ba-4d9b-8e3a-6d6db3a36019.png [image: image] https://user-images.githubusercontent.com/47440988/226773441-f96d160c-5346-4694-a288-b2c842ea18a9.png

— Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-OCTOPUS-Pro/issues/25#issuecomment-1478772122, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGDAHIQ5H75M5DKJZML4Z2DW5JD77ANCNFSM6AAAAAAVGLXQMA . You are receiving this because you commented.Message ID: @.***>

jessepietila commented 1 year ago

I had the same issue, the board is missing SPI traces. You have to jump a wire from the EXP2 MOSI pin to a spare stepper slot pin SDO. Make sure the spare slot is in SPI mode. PA6 is the top left pin on the EXP2 connector.

-------- I think I would need to do this. ...Or otherwise I go for SD mode on Marlin ?

tutankino commented 1 year ago

Any news? I have the same problem on octopus pro h723 1.0.1 and jumper tò exp2 pa6 not work

jessepietila commented 1 year ago

I have Octopus Pro V1.0.1 F429 and 5160 ProV1.1 (for extruder),

I have not still solved this issua / situation.

At the moment I am using Marlin 2.1.2

Looking forward to hear more from You,

Jesse

On Fri, May 26, 2023 at 1:16 PM tutankino @.***> wrote:

Any news? I have the same problem on octopus pro h723 1.0.1 and jumper tò exp2 pa6 not work

— Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-OCTOPUS-Pro/issues/25#issuecomment-1564161433, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANNWUFWDX2IACCVMO5WRE3TXIB7JBANCNFSM6AAAAAAVGLXQMA . You are receiving this because you commented.Message ID: @.***>

jessepietila commented 11 months ago

I did never succeed with tmc 5160 pro.

Yesterday I managed to burn the board by trying to install wrong thermistor,

Just never got the board to operating

Jesse

I have Octopus Pro v1.0.1 F429 and 5160 pro V1.1 (only Extruder)

On Fri, May 26, 2023 at 1:16 PM tutankino @.***> wrote:

Any news? I have the same problem on octopus pro h723 1.0.1 and jumper tò exp2 pa6 not work

— Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-OCTOPUS-Pro/issues/25#issuecomment-1564161433, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANNWUFWDX2IACCVMO5WRE3TXIB7JBANCNFSM6AAAAAAVGLXQMA . You are receiving this because you commented.Message ID: @.***>