View: 1363|Reply: 1

second mcu klipper

[Copy link]

2

threads

3

posts

24

credits

Novice

Rank: 1

credits
24
Published in 2024-4-11 17:40:52 | Show all floors |Read mode
Hi.

Im driving crazy with this board....please help.
I dont know linux. Have the board connected to a printer with klipper, and working.
I tried to connect an accelerometer adxl345 with spi (and was a total failure...) and now i wanted to connect just a little relay to one gpio pin....
In both cases, i think my problem is the same...and dont want to stay stacked anymore with it: I need to create a second MCU to comunicate klipper with orange pins....and all tutos (made all for rasp) dont work for me.
RPi microcontroller - Klipper documentation (klipper3d.org)
That is the one im following right now.
First, run this:

cd ~/klipper/
sudo cp ./scripts/klipper-mcu.service /etc/systemd/system/
sudo systemctl enable klipper-mcu.service

and seems to work
Then i do

cd ~/klipper/
make menuconfig

and seems to work to
Finally i do:

sudo service klipper stop
make flash
sudo service klipper start

And thats the answer:

Compiling out/src/linux/main.o
src/linux/main.c:108:1: fatal error: opening dependency file out/src/linux/main.d: Permission denied
  108 | }
      | ^
compilation terminated.
make: *** [Makefile:65: out/src/linux/main.o] Error 1

so....help?

2

threads

3

posts

24

credits

Novice

Rank: 1

credits
24
 Author| Published in 2024-4-11 17:59:09 | Show all floors
finally, doing a "sudo make flash" it did it.....but in another place and with another name. Is not as in tuto, on tmp dir and named klipper_host_mcu.

is on mcu  /usr/local/bin  and named klipper_mcu.
Anyway, my problem persist: when typing that on klipper:

[mcu host]
serial: /usr/local/bin/klipper_mcu



the anser is an error, in log:
mcu 'rpi': Unable to open serial port: [Errno 13] could not open port /usr/local/bin/klipper_mcu: [Errno 13] Permission denied: '/usr/local/bin/klipper_mcu'
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list