Cant flash the linux mcu to use adxl345 on RPI

Basic Information: Cant flash the linux mcu to use adxl345 on RPI

Printer Model: Ender 5 plus
MCU / Printerboard: skr mini e3 v3
klippy.log
klippy (2).log (2.6 MB)

Describe your issue: When i follow the instructions for RPi as a secondary MCU and do de make flash i get this message :

pi@ender5plus:~/klipper $ make flash
Flashing
Installing micro-controller code to /usr/local/bin/
Attempting host MCU restart…
Job for klipper_mcu.service failed because the control process exited with error code.
See “systemctl status klipper_mcu.service” and “journalctl -xe” for details.
make: *** [src/linux/Makefile:14: flash] Error 1

Show the error from the system logs

klippy (2).log (2.6 MB)
this is my klippy log

The klippy.log is of little use here.

Do the following:

  • sudo systemctl restart klipper-mcu.service
  • sudo cat /var/log/syslog

Paste here the last lines of the syslog especially these related to Klipper and these that apparently show an error.

log .txt (202.3 KB)

Show the output of:

  • cat /etc/systemd/system/klipper-mcu.service
  • file /usr/local/bin/klipper_mcu
  • /usr/local/bin/klipper_mcu

Please no screenshots. Just copy / paste using code tags directly into the post or attach as text file.

New log.txt (1.0 KB)
Here it is, sorry for the screenshots

This is strange. Please the output of

  • ls -al /tmp

Hmm, I have a suspicion. Try

# Remove System-V style init for klipper_mcu
sudo update-rc.d klipper_mcu disable
sudo rm /etc/init.d/klipper_mcu

# Get rid of any running klipper_mcu
sudo kill $(pidof /usr/local/bin/klipper_mcu)

# Start via Systemd
sudo systemctl start klipper-mcu.service

ls -al tmp.txt (1012 Bytes)

sudo update-rc.d k.txt (145 Bytes)

Should i reinstall klipper??

lrwxrwxrwx  1 root root   10 Mar 19 18:43 klipper_host_mcu -> /dev/pts/1

You already have klipper_host_mcu but apparently no legacy System-V. Try

sudo systemctl restart klipper-mcu.service

and check the syslog for any errors. If there are none, then reboot and check if klipper_mcu is running.

drwx------  3 root root 4096 Mar 19 18:17 systemd-private-c89fb609637b42ada7ea35b43c56532e-ModemManager.service-eIGKvi

ModemManager can interfere with Klipper. Disable it. See Other Single Board Computers (SBC) apart from Raspberry Pis

Most likely will not solve the issue unless you redo the complete Linux on your SBC

guess i found the problem, i was using a 3.5 tft for klipperscreen, and it uses some gpios that the adxl345 uses too, i reinstalled klipper on a new sd card and everything was fine until i installed the MPI3508 driver. Thank you so much!