Resonance HW only works after 1st attempt

Basic Information:

Printer Model: Tevo Tornado / Wanhao i3
MCU / Printerboard: MKS Gen L V2.1
Host / SBC: RPI4
klippy.log
klippy.zip (2.9 MB)

Fill out above information and in all cases attach your klippy.log file (use zip to compress it, if too big). Pasting your printer.cfg is not needed
Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there

Describe your issue:

I have on both my printers two BTT S2DW (one for X, one for Y) They are permanently installed so that I don’t need to fiddle every time I want to do a test.

So, this is happening on both printers so I am assuming it’s a bug or perhaps I have something configured incorrectly.

When I go to do my Resonance Testing, it fails the first time I run the command, the 2nd time it works great, then it goes to try and do Y, same thing. It goes though X just fine but the first time it attempts to start Y it fails.

If I run it again, both axis will work perfectly.

What have I done wrong?

D

The attached log does not seem to contain any such event or I missed it.

Sorry for the late reply.

I just tried it again after doing a complete re-wire of the printer just in case it was a physical issue.

This is the error in the Console

Invalid lis2dw id (got ff vs 44).

4:03 PM

Invalid lis2dw id (got ff vs 44).
This is generally indicative of connection problems
(e.g. faulty wiring) or a faulty lis2dw chip.

I attached a log that I captured right after the operation I did.

klippy.zip (1.4 MB)

It’s weird that it errors on first run of each axis, then, if you run it a 2nd time, it works.

D

This is indeed strange.
In fact there had been an issue with SPI connected hardware on RP2040 boards that would cause such issues, but:

  • This issue was only affecting hardware SPI but not software SPI
  • Has been resolved quite a while ago

Not sure what could be causing this issue. If I find the time, I’ll try with an RP2040 based LIS2DW board on my side.