# Klipper error virtual end stop

**URL:** <https://3dprintingspace.com/t/klipper-error-virtual-end-stop/5171>\
**Category:** Klipper\
**Created:** [January 27, 2023, 3:05pm UTC](https://3dprintingspace.com/t/klipper-error-virtual-end-stop/5171 "2023-01-27T15:05:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davethegearhead](https://3dps-assets.b-cdn.net/user_avatar/3dprintingspace.com/davethegearhead/32/5299_2.png) [@Davethegearhead](https://3dprintingspace.com/u/Davethegearhead)\
**Post date:** [January 27, 2023, 3:05pm UTC](https://3dprintingspace.com/t/klipper-error-virtual-end-stop/5171/1 "2023-01-27T15:05:15Z")

</div>

I have a BTT Manta M8P with CB1. Klipper, Moonraker, Mainsail installed and board flashed. The board is currently powered by USB and Mainsail connected without issue. Now I am modifying the basic Manta M8P printer cfg file for my Ender 5 plus and I now get this error when I try to config z-axis virtual endstop and BLtouch. My printer.cfg file is below. What am I missing here? Any ideas?

Klipper reports: ERROR

Probe virtual endstop only useful as endstop pin

* * *

[include mainsail.cfg]

# This file contains common pin mappings for the BIGTREETECH Manta M8P

# To use this config, the firmware should be compiled for the

# STM32G0B1 with a “8KiB bootloader” and USB communication.

# See docs/Config\_Reference.md for a description of parameters.

[stepper\_x]

step\_pin: PE2

dir\_pin: PB4

enable\_pin: !PC11

microsteps: 16

rotation\_distance: 40

endstop\_pin: ^PF3

position\_endstop: 350

position\_max: 350

homing\_speed: 100

[stepper\_y]

step\_pin: PF12

dir\_pin: PF11

enable\_pin: !PB3

microsteps: 16

rotation\_distance: 40

endstop\_pin: ^PF4

position\_endstop: 350

position\_max: 350

homing\_speed: 100

[stepper\_z]

step\_pin: PD7

dir\_pin: !PD6

enable\_pin: !PF10

microsteps: 16

rotation\_distance: 4

# endstop\_pin: ^PF5

endstop\_pin: probe:Z\_virtual\_endstop

position\_min: -3

position\_max: 400

homing\_speed: 10

second\_homing\_speed: 3

homing\_retract\_dist: 3

# Motor4

# The M8P only has 4 heater outputs which leaves an extra stepper

# This can be used for a second Z stepper, dual\_carriage, extruder co-stepper,

# or other accesory such as an MMU

#[stepper\_]

#step\_pin: PD3

#dir\_pin: PD2

#enable\_pin: PD5

#endstop\_pin: PC0

#…

[extruder]

step\_pin: PC9

dir\_pin: PC8

enable\_pin: !PD1

microsteps: 16

rotation\_distance: 33.683

nozzle\_diameter: 0.4

filament\_diameter: 1.75

heater\_pin: PE3 # HE0

sensor\_pin: PA1 # T0

sensor\_type: Generic 3950

control: pid

pid\_Kp: 22.2

pid\_Ki: 1.08

pid\_Kd: 114

min\_temp: 0

max\_temp: 260

[safe\_z\_home]

home\_xy\_position: 180, 180

speed: 100

z\_hop: 10

z\_hop\_speed: 5

[bltouch]

sensor\_pin: PB2

control\_pin: PB1

x\_offset: -45

y\_offset: 0

z\_offset: 0

speed: 3.0

# pin\_up\_touch\_mode\_reports\_triggered: False

[bed\_mesh]

speed: 100

horizontal\_move\_z: 8

mesh\_min: 50, 50

mesh\_max: 300, 300

probe\_count: 3, 3

[filament\_switch\_sensor material\_0]

switch\_pin: PC1

# Motor6

#[extruder1]

#step\_pin: PA10

#dir\_pin: PD15

#enable\_pin: !PA15

#heater\_pin: PB5 # HE1

#sensor\_pin: PA2 # T1

#…

# [filament\_switch\_sensor material\_1]

# switch\_pin: PC2

# Motor7

#[extruder2]

#step\_pin: PD12

#dir\_pin: PD11

#enable\_pin: !PD14

#heater\_pin: PB6 # HE2

#sensor\_pin: PA3 # T2

#…

# Motor8

#[extruder3]

#step\_pin: PD10

#dir\_pin: PD8

#enable\_pin: !PD9

#heater\_pin: PE1 # HE3

#sensor\_pin: PA4 # T3

#…

[heater\_bed]

heater\_pin: PB7

sensor\_pin: PA0 # TB

# sensor\_type: ATC Semitec 104GT-2

# control: watermark

sensor\_type: EPCOS 100K B57560G104F

sensor\_pin: PA0 # TB

control: pid

pid\_Kp: 690.34

pid\_Ki: 111.47

pid\_Kd: 1068.83

min\_temp: 0

max\_temp: 130

min\_temp: 0

max\_temp: 130

[fan]

pin: PE6

[heater\_fan fan1]

pin: PE0

#[heater\_fan fan2]

#pin: PC12

#[heater\_fan fan3]

#pin: PE5

#[heater\_fan fan4]

#pin: PE4

#tachometer\_pin: PC13

#[heater\_fan fan5]

#pin: PB8

#tachometer\_pin: PC14

#[heater\_fan fan6]

#pin: PB9

#tachometer\_pin: PC15

[mcu]

serial: /dev/serial/by-id/usb-Klipper\_stm32g0b1xx\_290019000F504B4633373520-if00

[printer]

kinematics: cartesian

max\_velocity: 300

max\_accel: 2500

max\_z\_velocity: 5

max\_z\_accel: 100

########################################

# TMC2209 configuration

########################################

[tmc2209 stepper\_x]

uart\_pin: PC10

#diag\_pin: PF3

run\_current: 0.800

stealthchop\_threshold: 999999

[tmc2209 stepper\_y]

uart\_pin: PF13

#diag\_pin: PF4

run\_current: 0.800

stealthchop\_threshold: 999999

[tmc2209 stepper\_z]

uart\_pin: PF9

# diag\_pin: PF5

run\_current: 0.650

stealthchop\_threshold: 999999

#[tmc2209 stepper\_]

#uart\_pin: PD4

##diag\_pin: PC0

#run\_current: 0.650

#stealthchop\_threshold: 999999

[tmc2209 extruder]

uart\_pin: PD0

run\_current: 0.800

stealthchop\_threshold: 999999

#[tmc2209 extruder1]

#uart\_pin: PF8

#run\_current: 0.800

#stealthchop\_threshold: 999999

#[tmc2209 extruder2]

#uart\_pin: PD13

#run\_current: 0.800

#stealthchop\_threshold: 999999

#[tmc2209 extruder3]

#uart\_pin: PC7

#run\_current: 0.800

#stealthchop\_threshold: 999999

########################################

# TMC2130 configuration

########################################

#[tmc2130 stepper\_x]

#cs\_pin: PC10

#spi\_bus: spi1

##diag1\_pin: PF3

#run\_current: 0.800

#stealthchop\_threshold: 999999

#[tmc2130 stepper\_y]

#cs\_pin: PF13

#spi\_bus: spi1

##diag1\_pin: PF4

#run\_current: 0.800

#stealthchop\_threshold: 999999

#[tmc2130 stepper\_z]

#cs\_pin: PF9

#spi\_bus: spi1

##diag1\_pin: PF5

#run\_current: 0.650

#stealthchop\_threshold: 999999

#[tmc2130 stepper\_]

#cs\_pin: PD4

#spi\_bus: spi1

##diag1\_pin: PC0

#run\_current: 0.800

#stealthchop\_threshold: 999999

#[tmc2130 extruder]

#cs\_pin: PD0

#spi\_bus: spi1

#run\_current: 0.800

#stealthchop\_threshold: 999999

#[tmc2130 extruder1]

#cs\_pin: PF8

#spi\_bus: spi1

#run\_current: 0.800

#stealthchop\_threshold: 999999

#[tmc2130 extruder2]

#cs\_pin: PD13

#spi\_bus: spi1

#run\_current: 0.800

#stealthchop\_threshold: 999999

#[tmc2130 extruder3]

#cs\_pin: PC7

#spi\_bus: spi1

#run\_current: 0.800

#stealthchop\_threshold: 999999

[board\_pins]

aliases:

# EXP1 header

EXP1\_1=PE9, EXP1\_2=PE10,

EXP1\_3=PE11, EXP1\_4=PE12,

EXP1\_5=PE13, EXP1\_6=PE14, # Slot in the socket on this side

EXP1\_7=PE15, EXP1\_8=PB10,

EXP1\_9=, EXP1\_10=\<5V\>,

# EXP2 header

EXP2\_1=PB14, EXP2\_2=PB13,

EXP2\_3=PF7, EXP2\_4=PB12,

EXP2\_5=PE7, EXP2\_6=PB11, # Slot in the socket on this side

EXP2\_7=PE8, EXP2\_8=,

EXP2\_9=, EXP2\_10=PC5

# See the sample-lcd.cfg file for definitions of common LCD displays.

#[bltouch]

#sensor\_pin: PB2

#control\_pin: PB1

# Proximity switch

#[probe]

#pin: PF6

#[output\_pin ps\_on\_pin]

#pin: PC3

#[neopixel my\_neopixel\_1]

#pin: PC6

#[neopixel my\_neopixel\_2]

#pin: PA9

#[hall\_filament\_width\_sensor]

#adc1: PC5

#adc2: PB0

---

<div class="post-metadata">

**Author:** ![Jason](https://3dps-assets.b-cdn.net/user_avatar/3dprintingspace.com/jason/32/6148_2.png) [@Jason](https://3dprintingspace.com/u/Jason)\
**Post date:** [January 27, 2023, 3:14pm UTC](https://3dprintingspace.com/t/klipper-error-virtual-end-stop/5171/2 "2023-01-27T15:14:36Z")

</div>

Looking at the error it sounds like the BLtouch Pin is not in a PWM connection.

Going to have a bit more detailed look at your .cfg file but that’s basically what the error is saying.

I am assuming its physically plugged into a PWM but the config file is setup to look at a 2pin switched input.

---

<div class="post-metadata">

**Author:** ![Davethegearhead](https://3dps-assets.b-cdn.net/user_avatar/3dprintingspace.com/davethegearhead/32/5299_2.png) [@Davethegearhead](https://3dprintingspace.com/u/Davethegearhead)\
**Post date:** [January 27, 2023, 3:23pm UTC](https://3dprintingspace.com/t/klipper-error-virtual-end-stop/5171/3 "2023-01-27T15:23:26Z")

</div>

Right now nothing is plugged into the board… it’s not in the printer yet - just on the bench powered by USB. Does the BL touch need to be plugged in? I guess it would make sense if it does…

---

<div class="post-metadata">

**Author:** ![mykepredko](https://3dps-assets.b-cdn.net/user_avatar/3dprintingspace.com/mykepredko/32/4027_2.png) [@mykepredko](https://3dprintingspace.com/u/mykepredko)\
**Post date:** [January 27, 2023, 7:15pm UTC](https://3dprintingspace.com/t/klipper-error-virtual-end-stop/5171/4 "2023-01-27T19:15:09Z")

</div>

Yes. The BL Touch needs to be plugged in.

In the future, you should read through the “klippy.log” file as it has a lot of really useful information and, if you still can’t find the problem, then post the entire file as it has the latest printer.cfg that is running and more detailed information.

You might also want to join the Klipper Discourse group: [https://klipper.discourse.group/](https://klipper.discourse.group/)

---

<div class="post-metadata">

**Author:** ![Davethegearhead](https://3dps-assets.b-cdn.net/user_avatar/3dprintingspace.com/davethegearhead/32/5299_2.png) [@Davethegearhead](https://3dprintingspace.com/u/Davethegearhead)\
**Post date:** [January 27, 2023, 9:03pm UTC](https://3dprintingspace.com/t/klipper-error-virtual-end-stop/5171/5 "2023-01-27T21:03:43Z")

</div>

Thank you - makes perfect sense. I have joined the Klipper Discourse group as well as r/klippers. 🙂

---

<div class="post-metadata">

**Author:** ![Jason](https://3dps-assets.b-cdn.net/user_avatar/3dprintingspace.com/jason/32/6148_2.png) [@Jason](https://3dprintingspace.com/u/Jason)\
**Post date:** [February 2, 2023, 10:35pm UTC](https://3dprintingspace.com/t/klipper-error-virtual-end-stop/5171/6 "2023-02-02T22:35:29Z")

</div>

thanks, Myke, great advice.

---

<div class="post-metadata">

**Author:** ![Davethegearhead](https://3dps-assets.b-cdn.net/user_avatar/3dprintingspace.com/davethegearhead/32/5299_2.png) [@Davethegearhead](https://3dprintingspace.com/u/Davethegearhead)\
**Post date:** [February 18, 2023, 6:36pm UTC](https://3dprintingspace.com/t/klipper-error-virtual-end-stop/5171/7 "2023-02-18T18:36:37Z")

</div>

> [@Davethegearhead](#):
>
> endstop\_pin: probe:Z\_virtual\_endstop

Finally got back to this and got it figured out. EVERYTHING is case-sensitive! The “endstop\_pin: probe:Z\_virtual\_endstop” in my config file had a capital Z… simple as that. I guess the klipper error verbiage can be somewhat nebulous.

---

<div class="post-metadata">

**Author:** ![Jason](https://3dps-assets.b-cdn.net/user_avatar/3dprintingspace.com/jason/32/6148_2.png) [@Jason](https://3dprintingspace.com/u/Jason)\
**Post date:** [February 22, 2023, 3:33pm UTC](https://3dprintingspace.com/t/klipper-error-virtual-end-stop/5171/8 "2023-02-22T15:33:14Z")

</div>

thats amazing, does anyone know if Klipper is based on a Linux Kernel? would make sense for the case sensitivity in that case?

---

<div class="post-metadata">

**Author:** ![mykepredko](https://3dps-assets.b-cdn.net/user_avatar/3dprintingspace.com/mykepredko/32/4027_2.png) [@mykepredko](https://3dprintingspace.com/u/mykepredko)\
**Post date:** [February 22, 2023, 3:47pm UTC](https://3dprintingspace.com/t/klipper-error-virtual-end-stop/5171/9 "2023-02-22T15:47:31Z")

</div>

Klipper is a Linux application not an operating system or kernel. You need a host system running Linux to run it as well as a user interface (the most popular one right now is “Mainsail” which is part of the installation package).

If you’re going to test out Klipper for the first time, I **HIGHLY** recommend that you use a Raspberry Pi 4B (with the 3B) being a close second even though they’re somewhat expensive right now (I believe CanaKit has some packages available that aren’t terrible in price when you consider you’re getting the power supply, case, keyboard, etc. with the Raspberry Pi).

If you look around, people are publishing that they’re using Pi Zeros, and Orange Pis as well as old laptops running Linux with Klipper and these approaches are significantly harder to set up than using a Raspberry Pi 4B and will have performance issues that are very hard to track down and resolve.
