Kamp giving an error

Basic Information:

Printer Model: Sidewinder X2
MCU / Printerboard:BTT skr 3EZ
klippy(3).log (225.1 KB)

klippy.log

Fill out above information and in all cases attach your klippy.log file (use zip to compress it, if too big). Pasting your printer.cfg is not needed
Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there

Describe your issue:

…when i enable KAMP.CFG i get this Error

Klipper reports: ERROR

File contains no section headers.
file: ‘/home/mike/printer_1_data/config/printer.cfg’, line: 24
“path:‘/home/mike/printer_1_data/gcodes’\n”

Once the underlying issue is corrected, use the “RESTART”
command to reload the config and restart the host software.
Printer is halted

Mike

Looks like you probably added the KAMP include line in the wrong place. Please paste your printer.cfg file, then select the pasted text, click the gear icon in the toolbar above the comment text box, and select “Preformatted text.”

Here is my Printer.cfg file

[include mainsail.cfg]
[include start.cfg]
[include end.cfg]
[include macros.cfg]
[include runout.cfg]
[pause_resume]
[display_status]
[virtual_sdcard]
#[include KAMP_Settings.cfg]


#path:'/home/mike/printer_1_data/gcodes'
path: /home/mike/printer_1_data/gcodes
on_error_gcode: CANCEL_PRINT

[filament_switch_sensor my_sensor]

switch_pin: PA0
 
pause_on_runout: True

runout_gcode: PAUSE
    M117 Runout Detected
    LCDRGB R=1 G=0.42 B=0  # Turn LCD red
    BEEP I=12

insert_gcode: RESUME
 M117 Insert Detected
 LCDRGB R=0 G=1 B=0.782  # Turn LCD green

[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32h723xx_270024001251313238353730-if00

[input_shaper]
shaper_freq_x:  53.26 
shaper_type_x:  ei
shaper_freq_y:  48.28   
shaper_type_y:  mzv 

# Enable object exclusion
[exclude_object]

# Enable arcs support
[gcode_arcs]
resolution: 0.13


[printer]
kinematics: cartesian
max_velocity: 800
max_accel: 9000
max_accel_to_decel:2000
max_z_velocity: 45
max_z_accel: 100
square_corner_velocity: 6.0

[stepper_x]
step_pin: PD4
dir_pin: !PD3
enable_pin: !PD6
microsteps: 16
rotation_distance: 39.94
endstop_pin: !PC1
position_endstop: 0
position_max: 300
homing_speed: 125
second_homing_speed: 40

[stepper_y]
step_pin: PA15
dir_pin: !PA8
enable_pin: !PD1
microsteps: 16
rotation_distance: 39.94
endstop_pin: !PC3
position_endstop: 0
position_max: 300
homing_speed: 125
second_homing_speed: 40

[stepper_z]
step_pin: PE2
dir_pin: PE3
enable_pin: !PE0
microsteps: 16
rotation_distance: 7.96
endstop_pin:  probe:z_virtual_endstop
#endstop_pin: !PC0
#position_endstop: 0
position_max: 400
position_min: -5
homing_speed: 30
second_homing_speed: 15


[safe_z_home]
home_xy_position: 122.75,162.8
z_hop: 10
speed: 125

[extruder]
step_pin: PD15
dir_pin: !PD14
enable_pin: !PC7
microsteps: 16
rotation_distance: 21.8778
gear_ratio: 66:22
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PB3
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA2
#control: pid
#pid_kp: 23.509
#pid_ki: 1.438
#pid_kd: 96.092
min_temp: -5
max_temp: 300
max_extrude_only_distance: 1000
pressure_advance: 0.016

[heater_bed]
heater_pin: PD7
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PA1
#CONTROL:WATERMARK
#control: pid
#pid_kp: 42.365
#pid_ki: 0.545
#pid_kd: 822.940
min_temp: -5
max_temp: 130

[fan]
pin: PB7
off_below: 0.1

[heater_fan extruder]
pin: PB6
off_below: 0.2

[controller_fan case]
pin: PB5
off_below: 0.3
idle_speed: 0.8

#[temperature_sensor mainboard]
#sensor_type: temperature_mcu
#min_temp: 10
#max_temp: 60

########################################
# EXP1 / EXP2 (display) pins
########################################

[board_pins]
aliases:
    # EXP1 header
    EXP1_1=PC5, EXP1_3=PB1, EXP1_5=PE9,  EXP1_7=PE11, EXP1_9=<GND>,
    EXP1_2=PB0, EXP1_4=PE8, EXP1_6=PE10, EXP1_8=PE12, EXP1_10=<5V>,
    # EXP2 header
    EXP2_1=PA6, EXP2_3=PE7, EXP2_5=PB2, EXP2_7=PC4,   EXP2_9=<GND>,
    EXP2_2=PA5, EXP2_4=PA4, EXP2_6=PA7, EXP2_8=<RST>, EXP2_10=<NC>

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

#[display]
[display]
lcd_type: emulated_st7920
spi_software_miso_pin: PA14 # status led, Virtual MISO
spi_software_mosi_pin: EXP1_3
spi_software_sclk_pin: EXP1_5
en_pin: EXP1_4
encoder_pins: ^EXP2_5, ^EXP2_3
click_pin: ^!EXP1_2

[output_pin beeper]
pin: EXP1_1


#lcd_type: st7920
#cs_pin: EXP1_4
#sclk_pin: EXP1_5
#sid_pin: EXP1_3
#encoder_pins: ^EXP2_3, ^EXP2_5
#click_pin: ^!EXP1_2
#kill_pin: ^!EXP2_8

[output_pin beeper]
#pin: EXP1_1

########################################
# TMC2209 configuration
########################################

[tmc2209 stepper_x]
uart_pin: PD5
run_current: 1.00
#diag_pin:

[tmc2209 stepper_y]
uart_pin: PD0
run_current: 1.00
#diag_pin:

[tmc2209 stepper_z]
uart_pin: PE1
run_current: 1.100
#diag_pin:

[tmc2209 extruder]
uart_pin: PC6
run_current: 1.00
#diag_pin:


[bltouch]
sensor_pin: PC13
control_pin: PE5
x_offset: 27.41
y_offset: -13.8
#z_offset: 0.0
speed: 30
samples: 2
sample_retract_dist: 8
samples_tolerance: 0.050
samples_tolerance_retries: 3

[bed_mesh]
speed: 180
horizontal_move_z: 10
mesh_min: 28, 14
mesh_max: 272, 286
probe_count: 7
fade_start: 1
fade_end: 10
fade_target: 0
mesh_pps: 2
algorithm: bicubic

[bed_screws]
screw1: 50,50
screw1_name: front left
screw2: 250,50
screw2_name: front right
screw3: 250,250
screw3_name: back right
screw4: 50,250
screw4_name: back left
speed: 125

[screws_tilt_adjust]
screw1: 22.75,62.8
screw1_name: front left
screw2: 222.75,62.8
screw2_name: front right
screw3: 222.75,262.8
screw3_name: back right
screw4: 22.75,262.8
screw4_name: back left
speed: 125
screw_thread: CW-M5

[neopixel extruder]
pin: PE6
initial_RED: 1.0
initial_GREEN: 0.34
initial_BLUE: 0.54

[delayed_gcode Welcome_0]
initial_duration: 0.3
gcode:
  SET_LED LED=extruder RED=1 GREEN=0 BLUE=0.489

[delayed_gcode Welcome_1]
initial_duration: 0.8
gcode:
  SET_LED LED=extruder RED=0 GREEN=1 BLUE=0

[delayed_gcode Welcome_2]
initial_duration: 1.3
gcode:
  SET_LED LED=extruder RED=0 GREEN=.71 BLUE=1

[delayed_gcode Welcome_3]
initial_duration: 1.8
gcode:
  SET_LED LED=extruder RED=.87 GREEN=.874 BLUE=.674

[delayed_gcode Welcome_4]
initial_duration: 8
gcode:
  SET_LED LED=extruder RED=0.498 GREEN=0.55 BLUE=.625

#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [heater_bed]
#*# control = pid
#*# pid_kp = 58.524
#*# pid_ki = 0.918
#*# pid_kd = 932.718
#*#
#*# [extruder]
#*# control = pid
#*# pid_kp = 26.211
#*# pid_ki = 2.330
#*# pid_kd = 73.718
#*#
#*# [bltouch]
#*# z_offset = 1.668
#*#
#*# [bed_mesh Default]
#*# version = 1
#*# points =
#*# 	0.190294, 0.094525, 0.078356, 0.042288, 0.023631, 0.109450, 0.182831
#*# 	0.164175, 0.092038, 0.032338, 0.021144, 0.018656, 0.052238, 0.176613
#*# 	0.151738, 0.050994, 0.053481, 0.003731, 0.001244, 0.033581, 0.114425
#*# 	0.123131, 0.009950, 0.016169, 0.018656, 0.013681, 0.018656, 0.048506
#*# 	0.169150, 0.057213, 0.063431, 0.019900, 0.004975, 0.003731, 0.023631
#*# 	0.156713, 0.075869, 0.060944, 0.027363, 0.069650, 0.089550, 0.120644
#*# 	0.167906, 0.032338, 0.050994, 0.046019, 0.052238, 0.105719, 0.156713
#*# x_count = 7
#*# y_count = 7
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 28.01
#*# max_x = 271.96000000000004
#*# min_y = 14.0
#*# max_y = 285.97999999999996

This is your error. You are calling the KAMPS include under the [virtual_sdcard] setting.

Hello that worked thanks so now how do i implement it in my printing what commands go where what all is needed as simple as possible please.

Thank You

Mike

As KAMPS is a 3rd party macro, please refer to its original source for further information: GitHub - kyleisah/Klipper-Adaptive-Meshing-Purging: A unique leveling solution for Klipper-enabled 3D printers!

Hello
Stupid question but where does the Bed_Mesh_calibrate command go in the Start.cfg file or the Slicer Start Gcode and the same for the line purge command.

Mike

MikeHello
Stupid question but where does the Bed_Mesh_calibrate command go in the Start.cfg file or the Slicer Start Gcode and the same for the line purge command.

Mike
[/quote]

Asking the same question just a day later does not provide a quicker response…


Usually these features are started just before the main print starts.


2 Likes

Hello
Well another question I keep getting this error when i print

[Extruder] max_extrude_cross_section is insufficient for purge, please set it to 5 or greater. Purge skipped.

My Question is where do i go to fix and set this

Mike

In the [extruder] section?

https://www.klipper3d.org/Config_Reference.html#extruder

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