bigtreetech / BIGTREETECH-OCTOPUS-V1.0

This is Octopus open source material
565 stars 336 forks source link

Unable to read tmc uart 'stepper_z1' register IFCNT #77

Open dedelkov opened 3 years ago

dedelkov commented 3 years ago

I keep getting this error on Klipper, and can't figure out why.

I'm using the default .cfg file for the Voron 2.4

It only happens on the 4th driver position (the default for the Z1 motor) on the Octopus Board.

I have another six TMC2209 stepper drivers configured with uart working without issues in the same board.

matticustard commented 3 years ago

Is it possible you skipped a driver slot and put one in the top slot instead? This can be a little confusing since you are supposed to skip a motor connection, but not a driver connection. The drivers should all be positioned side-by-side as they are in this picture, with the top slot empty.

image

chefguevara commented 3 years ago

I have the same issue currently, same board, it started all of the sudden, it was printing just fine. Drivers are in the right positions and wires too skipping the z1-motor 2 output as intended.

The only difference with the previous time it worked is that I wired the controller fan and LCD. If it helps, the error pops up when I send the printer to home any axis, the LCD screen goes blank and all fans goes to 100%.

My next steps will be disconnect the fan and screen and try again, I'll update if I see any change.

UPDATE: Disconnecting the LCD screen seems to fix the issue.

While connected everything worked fine until homing. Display worked properly on heating and other options, but at homing everything dies. I'm sharing my config for it. I've got another identical screen, I'll try it too and see if I can reproduce the issue.


##  mini12864 LCD Display
lcd_type: uc1701
cs_pin: EXP1_3
a0_pin: EXP1_4
rst_pin: EXP1_5
encoder_pins: ^EXP2_5, ^EXP2_3
click_pin: ^!EXP1_2
contrast: 63
spi_software_miso_pin: EXP2_1
spi_software_mosi_pin: EXP2_6
spi_software_sclk_pin: EXP2_2

[neopixel btt_mini12864]
##  To control Neopixel RGB in mini12864 display
pin: EXP1_6
chain_count: 3
initial_RED: 0.1
initial_GREEN: 0.5
initial_BLUE: 0.0
color_order: RGB

##  Set RGB values on boot up for each Neopixel. 
##  Index 1 = display, Index 2 and 3 = Knob
[delayed_gcode setdisplayneopixel]
initial_duration: 1
gcode:
        SET_LED LED=btt_mini12864 RED=1 GREEN=1 BLUE=1 INDEX=1 TRANSMIT=0
        SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=0
        SET_LED LED=btt_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3 ```
dspublic commented 2 years ago

Hi, Same problem here. When I apply [display] parameters in klipper , then I get "Unable to read tmc uart 'stepper_xxx' register IFCNT" error. But, the 12864 mini display isn't attached, only configured. So, I think it's probably a klipper issue, or not...

@chefguevara Did you solve the problem?

dspublic commented 2 years ago

@chefguevara Finally, I have found the mistake. I left TCM jumpers in SPI mode, instead of UART!

chefguevara commented 2 years ago

Solved!

Ok. At first I was like "naaah I have a bag full of jumpers to remind me that I have all the drivers in the right position, that's not my case".

But it seems that you're absolutely correct @dspublic! I missed one jumper. Is hard to see the current setup with all the drivers plugged in so I only noticed the mistake after removing all of them to triple check. Interesting enough, the printer works just fine with only one driver misconfigured with all the jumpers in place. It just interferes with the screen apparently.

TommySchwartz commented 2 years ago

I have this " Unable to read tmc uart 'stepper_a' register IFCNT" only after homing to quickly after aborting a print. Not always stepper_a, but it is the most common.

Have a delta printer, so I have stepper_a, stepper_b and stepper_c.

Otherwise the printer works great.

torwag commented 1 year ago

Just to leave a message here for people as stupid as me: The error message also pops up, if you haven't powered up the printers main supply, but only connected via USB for example with klipper and mainsail. Being able to "remote control" the printer, it might not be all that obvious that the printer runs out of power, trying to home.