Hello,
I’m having troubles trying to use the pins of LCD connector on a Creality 4.2.2 Board (Ender 3 V2), which in Klipper config is not used as the screen is not supported.
I want to take advantage of the exposed SPI2 Bus pins of STM32F103 and connect a ADXL345 to MCU board for input shaper (i know that i could use RPi directly, but i’m using OPi, so no compatibility with RPi pinout).
I configured printer.cfg to use SPI2 and connected pins into the ADXL345 accordingly (PB13 → SCLK, PB14 → MISO, PB15 → MOSI). Problem occurs when tried to set cs_pin: PB12, as klipper throws error mcu ‘mcu’: Unable to extract params from: config_spi
I tried with another unused pins and same error. Tried to use cs_pin: None, which starts klipper without issue but when i send ACCELEROMETER_QUERY command, i received i receive Invalid adxl345 id (got 0 vs e5).
I also tried to set PB12 as initial pin in firmware menuconfig but nothing. And finally to be sure it is not the module, i connected it to an arduino mega and compiled a program which shows it works without problems. Furthermore i tested the jumper cables with a multimeter, measured 5V in module and nothing. The only thing i can’t test is SPI data line signal (no oscilloscope).
I’ll appreciate some guidance in finding the issue. Attached klippy.log
klippy.log (27.4 KB)