# Problems setting up rpi mcu

**URL:** <https://klipper.discourse.group/t/problems-setting-up-rpi-mcu/14613>\
**Category:** General Discussion\
**Created:** [March 3, 2024, 1:06am UTC](https://klipper.discourse.group/t/problems-setting-up-rpi-mcu/14613 "2024-03-03T01:06:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eben](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@Eben](https://klipper.discourse.group/u/Eben)\
**Post date:** [March 3, 2024, 1:06am UTC](https://klipper.discourse.group/t/problems-setting-up-rpi-mcu/14613/1 "2024-03-03T01:06:03Z")

</div>

### Basic Information:

Printer Model: Ender 3  
 MCU / Printerboard: SKR mini e3 V3  
 `klippy.log` [klippy.zip](https://klipper.discourse.group/uploads/short-url/jaMkIEFbazU3FubUb7yNOxHoy0i.zip) (5.7 KB)

### Describe your issue:

I have a fresh install of mainsail, I am trying to get input shaping running but keep getting the issue  
mcu ‘mcu’: Unable to connect Once the underlying issue is corrected, use the “FIRMWARE\_RESTART” command to reset the firmware, reload the config, and restart the host software. Error configuring printer

I have tried to run this setup [Measuring Resonances - Klipper documentation](https://www.klipper3d.org/Measuring_Resonances.html) on a raspberry pi but I have no idea what I have done wrong.

---

<div class="post-metadata">

**Author:** ![hcet14](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@hcet14](https://klipper.discourse.group/u/hcet14)\
**Post date:** [March 3, 2024, 3:13pm UTC](https://klipper.discourse.group/t/problems-setting-up-rpi-mcu/14613/2 "2024-03-03T15:13:57Z")

</div>

From line 811 in your klippy.log

```auto
[mcu]
serial = /dev/serial/by-id/usb-Klipper_stm32g0b1xx_4C000E001150415833323520-if00
	serial: /dev/ttyAMA0
	restart_method: command

```

Delete “serial: /dev/ttyAMA0” in your printer.cfg

Good luck, hcet14

---

<div class="post-metadata">

**Author:** ![Eben](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@Eben](https://klipper.discourse.group/u/Eben)\
**Post date:** [March 3, 2024, 10:38pm UTC](https://klipper.discourse.group/t/problems-setting-up-rpi-mcu/14613/3 "2024-03-03T22:38:49Z")

</div>

I tried this now but unfortunately I’m still experiencing the same problem. I’ve also no completely reinstalled klipper but using the same config file I have the same issue which makes me wonder if my config has other issues?

---

<div class="post-metadata">

**Author:** ![LifeOfBrian](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/lifeofbrian/32/2380_2.png) [@LifeOfBrian](https://klipper.discourse.group/u/LifeOfBrian)\
**Post date:** [March 4, 2024, 7:23am UTC](https://klipper.discourse.group/t/problems-setting-up-rpi-mcu/14613/4 "2024-03-04T07:23:38Z")

</div>

Your section looks like:

```auto
[mcu]
serial = /dev/serial/by-id/usb-Klipper_stm32g0b1xx_4C000E001150415833323520-if00
	serial: /dev/ttyAMA0
	restart_method: command

```

`restart_method: command: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-Klipper_stm32g0b1xx_4C000E001150415833323520-if00\nserial: /dev/ttyAMA0\nrestart_method: command' `

Please change it to:

```auto
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_4C000E001150415833323520-if00
restart_method: command

```

Important is to remove the indents at the beginning of the additional lines!

---

<div class="post-metadata">

**Author:** ![Eben](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@Eben](https://klipper.discourse.group/u/Eben)\
**Post date:** [March 7, 2024, 12:37pm UTC](https://klipper.discourse.group/t/problems-setting-up-rpi-mcu/14613/5 "2024-03-07T12:37:49Z")

</div>

So I tried this but I still have the issue where uncomment

[mcu rpi]  
serial: /tmp/klipper\_host\_mcu

results in klipper not being able to communicate with the printer anymore. Commenting this out allows the printer to work fine though.

---

<div class="post-metadata">

**Author:** ![LifeOfBrian](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/lifeofbrian/32/2380_2.png) [@LifeOfBrian](https://klipper.discourse.group/u/LifeOfBrian)\
**Post date:** [March 7, 2024, 12:39pm UTC](https://klipper.discourse.group/t/problems-setting-up-rpi-mcu/14613/6 "2024-03-07T12:39:43Z")

</div>

I doubt that the printer will work fine without a communication with the RPi…  
Can you please upload your latest printer.cfg?

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [March 7, 2024, 2:51pm UTC](https://klipper.discourse.group/t/problems-setting-up-rpi-mcu/14613/7 "2024-03-07T14:51:20Z")

</div>

> [@Eben](#):
>
> So I tried this but I still have the issue where uncomment

In general, please always provide a corresponding klippy.log file.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/klipper/original/1X/64419bf2aac6639e6ef5cef200dcd456b0a01ac3.png) [@system](https://klipper.discourse.group/u/system)\
**Post date:** [May 6, 2024, 2:51pm UTC](https://klipper.discourse.group/t/problems-setting-up-rpi-mcu/14613/8 "2024-05-06T14:51:21Z")

</div>

Closed on May 6, 2024, 2:51pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
