bigtreetech / CB1

OS System image for CB1
357 stars 59 forks source link

Unable to boot with ADXL345 connected to SPI1 #103

Open Tomadoggy opened 1 year ago

Tomadoggy commented 1 year ago

I am having install/boot issues with my adxl345 on my Manta M8P +CB1 V1.0

I am unable to boot with the ADXL345 sensor attached to SPI1. Interestingly enough, if I hot plug the sensor into the SPI after a boot then everything works. I can successfully execute ACCELEROMETER_QUERY, AND MEASURE_AXES_NOISE. However, if I leave the sensor plugged in, I cannot boot.

The error I get when attempting to boot with the ADXL attached is: Lost communication with MCU 'mcu' Here is my setup in config:

[adxl345] cs_pin: PB15 spi_bus: spi1

MP8 pin adxl pin gnd gnd +5V vcc PA5 SCl PA6 SDO PB15 CS PA7 SDA

Lots of troubleshooting through the BTT Facebook group, but still no resolution. I have also tried wiring the ADXL into the Pi pins and software SPI but nothing has allowed me to boot with the ADXL connected.

lucmoda commented 1 year ago

Same issue here.

If ADXL345 connected on start, not boot. But if connect ADXL345 after boot complete, work correctly. ADXL345 -> Power source connected - not boot. ADXL345 -> Power source unconnected - boot ok -> ADXL345 hot plug work well