Skip to content

This tool modifies SPI or GPIO state in a way that confuses Klipper #17

@Xaphiosis

Description

@Xaphiosis

Before running this tool, an ADXL345 connected to a Raspberry Pi running Klipper can do this:

ACCELEROMETER_QUERY CHIP=hotend
accelerometer values (x, y, z): -222.061783, 518.144159, -10418.898773

After running adxl345spi (which works, and returns values), we get:

Invalid adxl345 id (got 0 vs e5).
This is generally indicative of connection problems
(e.g. faulty wiring) or a faulty adxl345 chip.

Unplugging/replugging the ADXL345 board is not sufficient to get it working again. Without better understanding of what's been changed, I have to reboot the pi to be able to use accelerometers with Klipper again.

I'm not sure whether it's possible or convenient to save whatever state is being changed and restore it when adxl345spi terminates, but it would be nice for cases like this. I acknowledge that most likely Klipper should set whatever state this is to its liking, but as I don't know what that is, I'm hoping for an answer here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions