Jump to content

“Unable to write tmc spi ‘stepper_x’ register GLOBALSCALER”


jan0ni

Recommended Posts

 

Basic Information:

 Printer Model: Mellow VzBot 330
 MCU / Printerboard: STM32H723ZGT6
 

I have built my Mellow Vzbot 330 printer following the manual given on the website, now I reached the point to turn it on for the first time, when I try to click home, the klipper shuts down giving the error “Unable to write tmc spi ‘stepper_x’ register GLOBALSCALER”. Solution that I have tried is to maybe find the faulty driver, but I don’t know exactly how to do it, what I basically did was disconnect are the drivers and connect them one by one to see which one is faulty but it still gives me same error in every case even when there are no drivers connected to the main board.

 

Thanks in Advance for helping

 

 

printer (2).cfg klippy (1).log

  • Like 1
Link to comment
Share on other sites

In my experience with my VZBot, this was due to a power problem.  Do you have the high powered TMC5160 (35 - 48V or V2 which is 60V). Make sure you have set the settings on your drivers to SPI:

image.png.f58cd77268cb286cbf9aa5ed3e314963.png

Then look at the power connectors. See this thread and take head of @Penatr8tor's advice on power connections on the Fly Super 8:

Quote

I would double / triple check the power wiring. On the Super 8 pro you need to connect all of the power connections along the bottom of the board like mine. You also need to have a common neutral wire running between both power supplies and watch out for the bed power on the left, the polarity is opposite of all the others. I had an issue where my steppers wouldn't buzz and I went back over my wiring and yup, forgot to tie the two PSU's together with a neutral wire.

 

 

  • Like 3
Link to comment
Share on other sites

Please ignore this, was just trying to help

 

I see your spi_bus line is commented out, tmc5160's need spi. See mine below, obviously I've named my pins differently and am using bus 0a instead of 1a on yours. I think if you just remove the # from the 4 spi_bus: lines you'll be on the right track. Mine uses = instead of : but you should probably stick to :

[tmc5160 stepper_x]
spi_bus = spi0a
cs_pin = pitb:MOT1_CS
diag0_pin = ^!pitb:ENDSTOP_X
run_current = 1
hold_current = 1
sense_resistor = 0.075
driver_sgt: 1

[tmc5160 stepper_y]
spi_bus = spi0a
cs_pin = pitb:MOT2_CS
diag0_pin = ^!pitb:ENDSTOP_Y
run_current = 1
hold_current = 1
sense_resistor = 0.075
driver_sgt: 1

Edited by Glengus
4 drivers rather than 2
  • Like 2
Link to comment
Share on other sites

13 hours ago, Glengus said:

I see your spi_bus line is commented out, tmc5160's need spi.

As it should be for software configuration of the SPI bus.

He has the SPI software configuration, like I have. Yours is the hardware config option.

This is my config on a fully functional VZBot AWD. Steppers X1, Y and Y1 have similar configs. You can see the spi_bus is commented out, as I use software SPI configuration like @jan0ni:

[tmc5160 stepper_x] 
#spi_bus: spi1
cs_pin: PC4
#diag_pin: PA8
interpolate: false
run_current: 1.9
sense_resistor: 0.033
spi_software_mosi_pin: PA7
spi_software_miso_pin: PA6
spi_software_sclk_pin: PA5
#driver_SGT: -64 # -64 is most sensitive value, 63 is least sensitive
driver_TBL: 1
driver_TOFF: 3
driver_DISS2G: 1
driver_DISS2VS: 1
#stealthchop_threshold: 0

As per my previous post, I still think power to the drives is the issue.

  • Like 1
Link to comment
Share on other sites

On 10/19/2024 at 3:31 PM, mvdveer said:

This is my config on a fully functional VZBot AWD. Steppers X1, Y and Y1 have similar configs. You can see the spi_bus is commented out, as I use software SPI configuration like @jan0ni:

Mine is also using software SPI 

  • Like 1
Link to comment
Share on other sites

On 10/19/2024 at 6:17 PM, Glengus said:

Please ignore this, was just trying to help

All help is valid - the hardware config is a valid option. We learn through responses from others and your response made me go back and look at the SPI bus configurations again. (So I learned) Sorry if I offended with my reply, I realise I sometimes come across quite harsh, but it was not intended to upset anyone and make them withdraw their post.

Keep helping please.

  • Like 3
Link to comment
Share on other sites

53 minutes ago, mvdveer said:

All help is valid - the hardware config is a valid option. We learn through responses from others and your response made me go back and look at the SPI bus configurations again. (So I learned) Sorry if I offended with my reply, I realise I sometimes come across quite harsh, but it was not intended to upset anyone and make them withdraw their post.

Keep helping please.

No offence taken. If these posts come up in searches it will be great for others. I couldn't get the software way to work on my fsyetc PITB V1 but eventually found this config worked for me. A different use case but still spi. I've been considering changing all my steppers to 48v tmc5160 so will likely be back here scratching my head soon!

  • Like 4
Link to comment
Share on other sites

Hi everybody,

Thank you so much for the responses and sorry for my late reply. I'm currently powering my Drivers with 48V, but still facing the issue. And when I try to uncomment spi_bus it gives me this error (see picture 1 & 2).

 

Pic 1

image.png.c64933455f4cfcfb57fac01503bde24f.png

 

 

Pic 2

image.png.c990bcd57af0e5a115f19fde8581d20e.png

Link to comment
Share on other sites

41 minutes ago, jan0ni said:

Hi everybody,

Thank you so much for the responses and sorry for my late reply. I'm currently powering my Drivers with 48V, but still facing the issue. And when I try to uncomment spi_bus it gives me this error (see picture 1 & 2).

Pic 1

image.png.c64933455f4cfcfb57fac01503bde24f.png

Pic 2

image.png.c990bcd57af0e5a115f19fde8581d20e.png

Sorry, I was leading you in another direction with the uncommenting spi_bus: , probably best to stick to the advice others are giving.

Link to comment
Share on other sites

So, I did some searching around the interwebs and it seems to be one of two issues. Either a faulty driver board or power supply related.

@jan0ni 

Have you measured the power at the driver board? 

Have you disconnected the "X" driver board and tried powering up to test is the "X" 5160 driver board is good or not.

Link to comment
Share on other sites

Oh yes, I have tried by taking out X driver out, but it gives the same error. By measuring Power? you mean, using a Multimeter to see if the power is coming at the pins of the driver? But, that does not make real sense because as soon as I click the HOME key, it just prompts me with error and klipper shuts down. Just saying, btw I'll try now something with multimeter to understand what's happening.

15 minutes ago, Penatr8tor said:

So, I did some searching around the interwebs and it seems to be one of two issues. Either a faulty driver board or power supply related.

@jan0ni 

Have you measured the power at the driver board? 

Have you disconnected the "X" driver board and tried powering up to test is the "X" 5160 driver board is good or not.

 

Edited by jan0ni
Wrong Understood
Link to comment
Share on other sites

13 minutes ago, jan0ni said:

Right now I took out UART based driver tmc 2209 and connected them and now I recieve this error: 

image.thumb.png.8b61a8109a5981859085f61e43d8c2da.png

Hmm, so you went to tmc2209's and compatible printer.cfg and got this? Is that what you mean? Did you change any jumpers? Can I assume only 24v now?

Link to comment
Share on other sites

Yup! I have, gonna do it one time again. But, I guess there is something wrong with the board because I changed a complete set of motors and drivers with SPI and UART and it just keep giving the error.

  • Like 1
Link to comment
Share on other sites

3 minutes ago, jan0ni said:

Yup! I have, gonna do it one time again. But, I guess there is something wrong with the board because I changed a complete set of motors and drivers with SPI and UART and it just keep giving the error.

Any chance you can borrow a spare? Worth trying a mcu reflash if you havent already, I did see an alert in one of your pics. Have you tried with the motors unplugged?

Link to comment
Share on other sites

5 minutes ago, jan0ni said:

Yup! I have, gonna do it one time again. But, I guess there is something wrong with the board because I changed a complete set of motors and drivers with SPI and UART and it just keep giving the error.

When you've run out of the obvious stuff to check... it generally ends up meaning that your main board is compromised aka fried.

If it were me, I would double check the firmware and if the problem didn't go away... I would probably be shopping.

Fortunately, a new Fly Super 8 Pro is only about $60 USD so not too hard of a hit.

Link to comment
Share on other sites

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...