Advertisement
Guest User

Klippy.log

a guest
Jan 6th, 2025
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.29 KB | None | 0 0
  1. Starting Klippy...
  2. Args: ['/home/pi/klipper/klippy/klippy.py', '/home/pi/printer_data/config/printer.cfg', '-l', '/home/pi/printer_data/logs/klippy.log', '-I', '/home/pi/printer_data/comms/klippy.serial', '-a', '/home/pi/printer_data/comms/klippy.sock']
  3. Git version: 'v0.12.0-405-g8a3d2afd7-dirty'
  4. Untracked files: klippy/extras/gcode_shell_command.py, klippy/extras/magneto_load_cell.py, klippy/extras/beacon.py
  5. Branch: master
  6. Remote: origin
  7. Tracked URL: https://github.com/Klipper3d/klipper
  8. CPU: 4 core ?
  9. Python: '3.9.2 (default, Dec 1 2024, 12:12:57) \n[GCC 10.2.1 20210110]'
  10. Start printer at Mon Jan 6 18:43:38 2025 (1736189018.7 34.0)
  11. Can't read autosave from config file - autosave state corrupted
  12. ===== Config file =====
  13. [gcode_shell_command hello_world]
  14. command = echo hello world
  15. timeout = 2.
  16. verbose = True
  17.  
  18. [gcode_macro HELLO_WORLD]
  19. gcode =
  20. RUN_SHELL_COMMAND CMD=hello_world
  21.  
  22. [virtual_sdcard]
  23. path = ~/printer_data/gcodes
  24. on_error_gcode = CANCEL_PRINT
  25.  
  26. [pause_resume]
  27.  
  28. [display_status]
  29.  
  30. [gcode_macro CANCEL_PRINT]
  31. description = Cancel the actual running print
  32. rename_existing = CANCEL_PRINT_BASE
  33. gcode =
  34.  
  35. {% set macro_found = True if printer['gcode_macro _CLIENT_VARIABLE'] is defined else False %}
  36. {% set client = printer['gcode_macro _CLIENT_VARIABLE'] %}
  37. {% set allow_park = False if not macro_found
  38. else False if client.park_at_cancel is not defined
  39. else True if client.park_at_cancel|lower == 'true'
  40. else False %}
  41. {% set retract = 5.0 if not macro_found else client.cancel_retract|default(5.0)|abs %}
  42.  
  43. {% set park_x = "" if not macro_found
  44. else "" if client.park_at_cancel_x is not defined
  45. else "X=" + client.park_at_cancel_x|string if client.park_at_cancel_x is not none %}
  46. {% set park_y = "" if not macro_found
  47. else "" if client.park_at_cancel_y is not defined
  48. else "Y=" + client.park_at_cancel_y|string if client.park_at_cancel_y is not none %}
  49. {% set custom_park = True if (park_x|length > 0 or park_y|length > 0) else False %}
  50.  
  51. {% if (custom_park or not printer.pause_resume.is_paused) and allow_park %} _TOOLHEAD_PARK_PAUSE_CANCEL {park_x} {park_y} {% endif %}
  52. _CLIENT_RETRACT LENGTH={retract}
  53. TURN_OFF_HEATERS
  54. M106 S0
  55.  
  56. SET_PAUSE_NEXT_LAYER ENABLE=0
  57. SET_PAUSE_AT_LAYER ENABLE=0 LAYER=0
  58. CANCEL_PRINT_BASE
  59.  
  60. [gcode_macro PAUSE]
  61. description = Pause the actual running print
  62. rename_existing = BASE_PAUSE
  63. gcode =
  64. {% if printer['pause_resume'].is_paused|int == 0 %}
  65. SET_GCODE_VARIABLE MACRO=RESUME VARIABLE=last_extruder_temp VALUE={printer[printer.toolhead.extruder].target}
  66. SET_GCODE_VARIABLE MACRO=RESUME VARIABLE=last_fan_speed VALUE={printer["fan"].speed}
  67. SET_GCODE_VARIABLE MACRO=RESUME VARIABLE=last_jetstream_speed VALUE={printer["fan_generic Jetstream"].speed}
  68. SAVE_GCODE_STATE NAME=PAUSE
  69. BASE_PAUSE
  70. G1 Z{printer.gcode_move.position.z+10} F300
  71. G1 X{printer.toolhead.axis_maximum.x/2} Y{printer.toolhead.axis_minimum.y+5} F6000
  72. SAVE_GCODE_STATE NAME=PAUSEPARK
  73. M107
  74. UPDATE_DELAYED_GCODE ID=cool_hot_end DURATION=240
  75. {% endif %}
  76.  
  77. [gcode_macro RESUME]
  78. description = Resume the actual running print
  79. rename_existing = BASE_RESUME
  80. variable_last_extruder_temp = 0
  81. gcode =
  82. {% set macro_found = True if printer['gcode_macro _CLIENT_VARIABLE'] is defined else False %}
  83. {% set client = printer['gcode_macro _CLIENT_VARIABLE'] %}
  84. {% set velocity = printer.configfile.settings.pause_resume.recover_velocity %}
  85. {% set sp_move = velocity if not macro_found else client.speed_move|default(velocity) %}
  86.  
  87. M109 S{last_extruder_temp}
  88. M106 S{last_fan_speed*255|int}
  89. SET_FAN_SPEED FAN=Jetstream SPEED={last_jetstream_speed}
  90. _CLIENT_EXTRUDE
  91. BASE_RESUME VELOCITY={params.VELOCITY|default(sp_move)}
  92. variable_last_fan_speed = 0
  93. variable_last_jetstream_speed = 0
  94.  
  95. [gcode_macro SET_PAUSE_NEXT_LAYER]
  96. description = Enable a pause if the next layer is reached
  97. gcode =
  98. {% set pause_next_layer = printer['gcode_macro SET_PRINT_STATS_INFO'].pause_next_layer %}
  99. {% set ENABLE = params.ENABLE | default(1) | int != 0 %}
  100. {% set MACRO = params.MACRO | default(pause_next_layer.call, True) %}
  101. SET_GCODE_VARIABLE MACRO=SET_PRINT_STATS_INFO VARIABLE=pause_next_layer VALUE="{{ 'enable': ENABLE, 'call': MACRO }}"
  102.  
  103. [gcode_macro SET_PAUSE_AT_LAYER]
  104. description = Enable/disable a pause if a given layer number is reached
  105. gcode =
  106. {% set pause_at_layer = printer['gcode_macro SET_PRINT_STATS_INFO'].pause_at_layer %}
  107. {% set ENABLE = params.ENABLE | int != 0 if params.ENABLE is defined
  108. else params.LAYER is defined %}
  109. {% set LAYER = params.LAYER | default(pause_at_layer.layer) | int %}
  110. {% set MACRO = params.MACRO | default(pause_at_layer.call, True) %}
  111. SET_GCODE_VARIABLE MACRO=SET_PRINT_STATS_INFO VARIABLE=pause_at_layer VALUE="{{ 'enable': ENABLE, 'layer': LAYER, 'call': MACRO }}"
  112.  
  113. [gcode_macro SET_PRINT_STATS_INFO]
  114. rename_existing = SET_PRINT_STATS_INFO_BASE
  115. description = Overwrite, to get pause_next_layer and pause_at_layer feature
  116. variable_pause_next_layer = { 'enable': False, 'call': "PAUSE" }
  117. variable_pause_at_layer = { 'enable': False, 'layer': 0, 'call': "PAUSE" }
  118. gcode =
  119. {% if pause_next_layer.enable %}
  120. {action_respond_info("%s, forced by pause_next_layer" % pause_next_layer.call)}
  121. {pause_next_layer.call}
  122. SET_PAUSE_NEXT_LAYER ENABLE=0
  123. {% elif pause_at_layer.enable and params.CURRENT_LAYER is defined and params.CURRENT_LAYER|int == pause_at_layer.layer %}
  124. {action_respond_info("%s, forced by pause_at_layer [%d]" % (pause_at_layer.call, pause_at_layer.layer))}
  125. {pause_at_layer.call}
  126. SET_PAUSE_AT_LAYER ENABLE=0
  127. {% endif %}
  128. SET_PRINT_STATS_INFO_BASE {rawparams}
  129.  
  130. [gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL]
  131. description = Helper: park toolhead used in PAUSE and CANCEL_PRINT
  132. gcode =
  133.  
  134. {% set macro_found = True if printer['gcode_macro _CLIENT_VARIABLE'] is defined else False %}
  135. {% set client = printer['gcode_macro _CLIENT_VARIABLE'] %}
  136. {% set velocity = printer.configfile.settings.pause_resume.recover_velocity %}
  137. {% set use_custom = False if not macro_found
  138. else False if client.use_custom_pos is not defined
  139. else True if client.use_custom_pos|lower == 'true'
  140. else False %}
  141. {% set custom_park_x = 0.0 if not macro_found else client.custom_park_x|default(0.0) %}
  142. {% set custom_park_y = 0.0 if not macro_found else client.custom_park_y|default(0.0) %}
  143. {% set park_dz = 2.0 if not macro_found else client.custom_park_dz|default(2.0)|abs %}
  144. {% set sp_hop = 900 if not macro_found else client.speed_hop|default(15) * 60 %}
  145. {% set sp_move = velocity * 60 if not macro_found else client.speed_move|default(velocity) * 60 %}
  146.  
  147. {% set origin = printer.gcode_move.homing_origin %}
  148. {% set act = printer.gcode_move.gcode_position %}
  149. {% set max = printer.toolhead.axis_maximum %}
  150. {% set cone = printer.toolhead.cone_start_z|default(max.z) %}
  151. {% set round_bed = True if printer.configfile.settings.printer.kinematics is in ['delta','polar','rotary_delta','winch']
  152. else False %}
  153.  
  154. {% set z_min = params.Z_MIN|default(0)|float %}
  155. {% set z_park = [[(act.z + park_dz), z_min]|max, (max.z - origin.z)]|min %}
  156. {% set x_park = params.X if params.X is defined
  157. else custom_park_x if use_custom
  158. else 0.0 if round_bed
  159. else (max.x - 5.0) %}
  160. {% set y_park = params.Y if params.Y is defined
  161. else custom_park_y if use_custom
  162. else (max.y - 5.0) if round_bed and z_park < cone
  163. else 0.0 if round_bed
  164. else (max.y - 5.0) %}
  165.  
  166. _CLIENT_RETRACT
  167. {% if "xyz" in printer.toolhead.homed_axes %}
  168. G90
  169. G1 Z{z_park} F{sp_hop}
  170. G1 X{x_park} Y{y_park} F{sp_move}
  171. {% if not printer.gcode_move.absolute_coordinates %} G91 {% endif %}
  172. {% else %}
  173. {action_respond_info("Printer not homed")}
  174. {% endif %}
  175.  
  176. [gcode_macro _CLIENT_EXTRUDE]
  177. description = Extrudes, if the extruder is hot enough
  178. gcode =
  179. {% set macro_found = True if printer['gcode_macro _CLIENT_VARIABLE'] is defined else False %}
  180. {% set client = printer['gcode_macro _CLIENT_VARIABLE'] %}
  181. {% set use_fw_retract = False if not macro_found
  182. else False if client.use_fw_retract is not defined
  183. else True if client.use_fw_retract|lower == 'true' and printer.firmware_retraction is defined
  184. else False %}
  185.  
  186. {% set length = (params.LENGTH|float) if params.LENGTH is defined
  187. else 1.0 if not macro_found
  188. else client.unretract|default(1.0) %}
  189.  
  190. {% set speed = params.SPEED if params.SPEED is defined
  191. else 35 if not macro_found
  192. else client.speed_unretract|default(35) %}
  193.  
  194. {% set absolute_extrude = printer.gcode_move.absolute_extrude %}
  195.  
  196. {% if printer.extruder.can_extrude %}
  197. {% if use_fw_retract %}
  198. {% if length < 0 %}
  199. G10
  200. {% else %}
  201. G11
  202. {% endif %}
  203. {% else %}
  204. M83
  205. G1 E{length} F{(speed|float|abs) * 60}
  206. {% if absolute_extrude %}
  207. M82
  208. {% endif %}
  209. {% endif %}
  210. {% else %}
  211. {action_respond_info("Extruder not hot enough")}
  212. {% endif %}
  213.  
  214. [gcode_macro _CLIENT_RETRACT]
  215. description = Retracts, if the extruder is hot enough
  216. gcode =
  217. {% set macro_found = True if printer['gcode_macro _CLIENT_VARIABLE'] is defined else False %}
  218. {% set client = printer['gcode_macro _CLIENT_VARIABLE'] %}
  219.  
  220. {% set length = (params.LENGTH|float) if params.LENGTH is defined
  221. else 1.0 if not macro_found
  222. else client.retract|default(1.0) %}
  223.  
  224. {% set speed = params.SPEED if params.SPEED is defined
  225. else 35 if not macro_found
  226. else client.speed_retract|default(35) %}
  227.  
  228. _CLIENT_EXTRUDE LENGTH=-{length|float|abs} SPEED={speed|float|abs}
  229.  
  230. [gcode_macro BED_MESH_CALIBRATE]
  231. rename_existing = BED_MESH_CALIBRATE_BASE
  232. gcode =
  233. {% if "z" not in printer.toolhead.homed_axes %}
  234. G28 Z
  235. {% endif %}
  236. M118 Heating the bed, please wait...
  237. M190 S70
  238. M118 Complete heating and start executing bed mesh calibrate
  239. BED_MESH_CALIBRATE_BASE
  240. G28 Z
  241.  
  242. [gcode_macro QUAD_GANTRY_LEVEL]
  243. rename_existing = QUAD_GANTRY_LEVEL_BASE
  244. gcode =
  245. G28
  246. M118 Heating the bed, please wait...
  247. M190 S70
  248. M118 Complete heating and start executing quad gantry level
  249. QUAD_GANTRY_LEVEL_BASE
  250. G28 Z
  251.  
  252. [gcode_macro CALIBRATE_BED]
  253. description = Level bed and create or update the "default" mesh
  254. gcode =
  255. LM_ENABLE
  256. M190 S50
  257. M109 S150
  258. QUAD_GANTRY_LEVEL_BASE
  259. BED_MESH_CALIBRATE_BASE
  260.  
  261. [gcode_macro TUNE_BED_PID]
  262. gcode =
  263. PID_CALIBRATE HEATER=heater_bed TARGET=60
  264.  
  265. [gcode_macro TUNE_EXTRUDER_PID]
  266. gcode =
  267. PID_CALIBRATE HEATER=extruder TARGET=190
  268.  
  269. [gcode_macro SET_XYZ_POSITION]
  270. gcode =
  271. SET_KINEMATIC_POSITION X=100 Y=100 Z=100
  272.  
  273. [gcode_macro RUN_INPUT_SHAPER]
  274. gcode =
  275. SHAPER_CALIBRATE
  276.  
  277. [gcode_macro PRINT_START]
  278. gcode =
  279. {% set EXTRUDER_TEMP = params.EXTRUDER|default(210)|float %}
  280. {% set BED_TEMP = params.BED|default(50)|float %}
  281. LM_ENABLE
  282. MESH_LOAD
  283. G28
  284. G90
  285.  
  286. LINE_PURGE
  287.  
  288. [gcode_macro Z_TO_BOTTOM]
  289. gcode =
  290. G28
  291. G1 Z295
  292.  
  293. [delayed_gcode cool_hot_end]
  294. gcode =
  295. {% if printer['pause_resume'].is_paused|int == 1 %}
  296. M104 S0
  297. {% endif %}
  298.  
  299. [gcode_macro MESH_LOAD]
  300. gcode =
  301. BED_MESH_PROFILE LOAD=default
  302.  
  303. [delayed_gcode delay_disable_motor]
  304. gcode =
  305. LM_DISABLE
  306.  
  307. [gcode_macro PRINT_END]
  308. gcode =
  309. G91
  310. G1 Z5
  311. G1 E-5 F300
  312. G90
  313. G1 X200 Y10 F12000
  314. M104 S0
  315. M140 S0
  316. M106 S0
  317. UPDATE_DELAYED_GCODE ID=delay_disable_motor DURATION=30
  318.  
  319. [gcode_macro _C_UNLOAD_FILAMENT]
  320. gcode =
  321. {% if printer[printer.toolhead.extruder].temperature > printer.configfile.settings['extruder'].min_extrude_temp %}
  322. {% set speed = params.SPEED|default(300) %}
  323. {% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity %}
  324. G92 E0
  325. G1 E-20 F1200
  326. {% else %}
  327. M118 Extruder temperature too low, please heat the nozzle first
  328. {% endif %}
  329.  
  330. [gcode_macro UNLOAD_FILAMENT]
  331. gcode =
  332. M118 Unloading filament
  333. G28
  334. G0 Z50 F300
  335. G0 X250 Y200 F5000
  336. M118 Heating nozzle...
  337. M109 S250
  338. G91
  339. M118 Unloading...
  340. G0 E40 F360
  341. G0 E40 F360
  342. G0 E5 F1200
  343. M118 Heating nozzle to 165 ...
  344. M109 S165
  345. G0 E-45 F1200
  346. G0 E-45 F1200
  347. G0 E-45 F1200
  348. G0 E-45 F1200
  349. G90
  350. G92 E0
  351. M104 S0
  352. M118 Unload finish
  353.  
  354. [gcode_macro LOAD_FILAMENT]
  355. gcode =
  356. {% if printer[printer.toolhead.extruder].temperature > printer.configfile.settings['extruder'].min_extrude_temp %}
  357. {% set speed = params.SPEED|default(300) %}
  358. {% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity %}
  359. G91
  360. G92 E0
  361. G1 E25 F{speed}
  362. {% else %}
  363. M118 Extruder temperature too low,please heat the nozzle first
  364. {% endif %}
  365.  
  366. [gcode_macro M106]
  367. rename_existing = G106
  368. gcode =
  369. {% if params.P is defined %}
  370. {% if params.P|int == 2 %}
  371. {% if params.S is defined %}
  372. {% if params.S|int == 255 %}
  373. {% set realspeed = 1 %}
  374. {% else %}
  375. {% if params.S|int == 0 %}
  376. {% set realspeed = 0 %}
  377. {% else %}
  378. {% set realspeed = params.S|float/255 %}
  379. {% endif %}
  380. {% endif %}
  381. {% else %}
  382. {% set realspeed = 1 %}
  383. {% endif %}
  384.  
  385. SET_FAN_SPEED FAN=Jetstream SPEED={realspeed}
  386. {% endif %}
  387. {% else %}
  388. {% if params.S is defined %}
  389. G106 S{params.S}
  390. {% else %}
  391. G106 S255
  392. {% endif %}
  393. {% endif %}
  394.  
  395. [gcode_macro M107]
  396. rename_existing = G107
  397. gcode =
  398. {% if params.P is defined %}
  399. {% if params.P|int == 2 %}
  400. SET_FAN_SPEED FAN=Jetstream SPEED=0
  401. {% endif %}
  402. {% else %}
  403. SET_FAN_SPEED FAN=Jetstream SPEED=0
  404. G107
  405. {% endif %}
  406.  
  407. [gcode_shell_command GET_MIRROR_VERSION]
  408. command = curl -G http://127.0.0.1:8880/get_os_version
  409. timeout = 2.
  410. verbose = True
  411.  
  412. [gcode_macro MAGNETO_OS_VERSION]
  413. gcode =
  414. RUN_SHELL_COMMAND CMD=GET_MIRROR_VERSION
  415.  
  416. [gcode_shell_command RESIZE_FILE_SYSTEM]
  417. command = curl -G http://127.0.0.1:8880/auto_resize_filesystem
  418. timeout = 2.
  419. verbose = False
  420.  
  421. [gcode_macro RESIZE_FILESYSTEM]
  422. gcode =
  423. RUN_SHELL_COMMAND CMD=RESIZE_FILE_SYSTEM
  424.  
  425. [gcode_shell_command LINER_MOTOR_ENABLE]
  426. command = curl -G http://127.0.0.1:8880/send_command?command=ENABLE
  427. timeout = 2.
  428. verbose = False
  429.  
  430. [gcode_shell_command LINER_MOTOR_DISABLE]
  431. command = curl -G http://127.0.0.1:8880/send_command?command=DISABLE
  432. timeout = 2.
  433. verbose = False
  434.  
  435. [gcode_macro LINER_MOTOR]
  436. gcode =
  437. {% if params.ENABLE is defined %}
  438. {% if params.ENABLE|int == 0 %}
  439. RUN_SHELL_COMMAND CMD=LINER_MOTOR_DISABLE
  440. {% else %}
  441. RUN_SHELL_COMMAND CMD=LINER_MOTOR_ENABLE
  442. {% endif %}
  443. {% else %}
  444. RUN_SHELL_COMMAND CMD=LINER_MOTOR_ENABLE
  445. {% endif %}
  446.  
  447. [gcode_macro LM_ENABLE]
  448. gcode =
  449. G4 P500
  450. RUN_SHELL_COMMAND CMD=LINER_MOTOR_ENABLE
  451.  
  452. [gcode_macro LM_DISABLE]
  453. gcode =
  454. RUN_SHELL_COMMAND CMD=LINER_MOTOR_DISABLE
  455.  
  456. [mcu MAG_TOOL]
  457. canbus_uuid = 3113b7f15350
  458.  
  459. [mcu]
  460. serial = /dev/serial/by-id/usb-Klipper_stm32h723xx_32002C000151313433343333-if00
  461.  
  462. [heater_fan hotend_fan]
  463. pin = MAG_TOOL:gpio1
  464. max_power = 1.0
  465. kick_start_time = 0.5
  466. heater = extruder
  467. heater_temp = 50.0
  468. fan_speed = 1.0
  469.  
  470. [magneto_load_cell]
  471. pin = MAG_TOOL:gpio24
  472.  
  473. [gcode_button UNL_FILA]
  474. pin = ~MAG_TOOL:gpio27
  475. press_gcode =
  476.  
  477. _C_UNLOAD_FILAMENT
  478.  
  479. [gcode_button L_FILA]
  480. pin = ^!MAG_TOOL:gpio20
  481. press_gcode =
  482.  
  483. LOAD_FILAMENT
  484.  
  485. [output_pin _load_cell_reset_pin]
  486. pin = MAG_TOOL:gpio25
  487. pwm = False
  488. value = 1
  489.  
  490. [gcode_macro CLEAR_LOAD_CELL]
  491. gcode =
  492. LC28
  493.  
  494. [adc_temperature magneto_adc]
  495. temperature1 = 16
  496. voltage1 = 3.189
  497. temperature2 = 84
  498. voltage2 = 2.457
  499. temperature3 = 94
  500. voltage3 = 2.02
  501. temperature4 = 103
  502. voltage4 = 1.86
  503. temperature5 = 116
  504. voltage5 = 1.60
  505. temperature6 = 130
  506. voltage6 = 1.33
  507. temperature7 = 146
  508. voltage7 = 1.06
  509. temperature8 = 166
  510. voltage8 = 0.781
  511. temperature9 = 186
  512. voltage9 = 0.573
  513. temperature10 = 201
  514. voltage10 = 0.431
  515. temperature11 = 216
  516. voltage11 = 0.329
  517. temperature12 = 231
  518. voltage12 = 0.263
  519. temperature13 = 251
  520. voltage13 = 0.215
  521. temperature14 = 271
  522. voltage14 = 0.144
  523. temperature15 = 281
  524. voltage15 = 0.121
  525. temperature16 = 294
  526. voltage16 = 0.101
  527.  
  528. [extruder]
  529. step_pin = MAG_TOOL:gpio5
  530. dir_pin = !MAG_TOOL:gpio4
  531. enable_pin = !MAG_TOOL:gpio10
  532. rotation_distance = 4.637
  533. microsteps = 16
  534. full_steps_per_rotation = 200
  535. nozzle_diameter = 0.400
  536. filament_diameter = 1.75
  537. heater_pin = MAG_TOOL:gpio0
  538. sensor_pin = MAG_TOOL:gpio26
  539. sensor_type = magneto_adc
  540. max_extrude_cross_section = 5
  541. adc_voltage = 3.3
  542. min_temp = -60
  543. max_temp = 310
  544. max_power = 0.75
  545. min_extrude_temp = 160
  546. control = pid
  547. pid_kp = 14.434
  548. pid_ki = 0.631
  549. pid_kd = 82.604
  550. pressure_advance = 0.0
  551. pressure_advance_smooth_time = 0.040
  552.  
  553. [tmc2209 extruder]
  554. uart_pin = MAG_TOOL:gpio6
  555. interpolate = false
  556. run_current = 0.8
  557. hold_current = 0.5
  558. sense_resistor = 0.110
  559. stealthchop_threshold = 100
  560.  
  561. [adxl345]
  562. cs_pin = MAG_TOOL:gpio13
  563. spi_software_sclk_pin = MAG_TOOL:gpio14
  564. spi_software_mosi_pin = MAG_TOOL:gpio15
  565. spi_software_miso_pin = MAG_TOOL:gpio12
  566.  
  567. [resonance_tester]
  568. accel_chip = adxl345
  569. accel_per_hz = 100
  570. probe_points = 200,150,20
  571.  
  572. [gcode_macro LINE_PURGE]
  573. description = A purge macro that adapts to be near your actual printed objects
  574. gcode =
  575.  
  576. {% set travel_speed = (printer.toolhead.max_velocity) * 60 | float %}
  577. {% set cross_section = printer.configfile.settings.extruder.max_extrude_cross_section | float %}
  578.  
  579.  
  580. {% if printer.firmware_retraction is defined %}
  581. {% set RETRACT = G10 | string %}
  582. {% set UNRETRACT = G11 | string %}
  583. {% else %}
  584. {% set RETRACT = 'G1 E-.5 F2100' | string %}
  585. {% set UNRETRACT = 'G1 E.5 F2100' | string %}
  586. {% endif %}
  587.  
  588.  
  589. {% set verbose_enable = printer["gcode_macro _KAMP_Settings"].verbose_enable | abs %}
  590. {% set purge_height = printer["gcode_macro _KAMP_Settings"].purge_height | float %}
  591. {% set tip_distance = printer["gcode_macro _KAMP_Settings"].tip_distance | float %}
  592. {% set purge_margin = printer["gcode_macro _KAMP_Settings"].purge_margin | float %}
  593. {% set purge_amount = printer["gcode_macro _KAMP_Settings"].purge_amount | float %}
  594. {% set flow_rate = printer["gcode_macro _KAMP_Settings"].flow_rate | float %}
  595.  
  596.  
  597.  
  598. {% set all_points = printer.exclude_object.objects | map(attribute='polygon') | sum(start=[]) %}
  599. {% set purge_x_min = (all_points | map(attribute=0) | min | default(0)) %}
  600. {% set purge_x_max = (all_points | map(attribute=0) | max | default(0)) %}
  601. {% set purge_y_min = (all_points | map(attribute=1) | min | default(0)) %}
  602. {% set purge_y_max = (all_points | map(attribute=1) | max | default(0)) %}
  603.  
  604. {% set purge_x_center = ([((purge_x_max + purge_x_min) / 2) - (purge_amount / 2), 0] | max) %}
  605. {% set purge_y_center = ([((purge_y_max + purge_y_min) / 2) - (purge_amount / 2), 0] | max) %}
  606.  
  607. {% set purge_x_origin = ([purge_x_min - purge_margin, 0] | max) %}
  608. {% set purge_y_origin = ([purge_y_min - purge_margin, 0] | max) %}
  609.  
  610.  
  611. {% set purge_move_speed = (flow_rate / 5.0) * 60 | float %}
  612.  
  613. {% if cross_section < 5 %}
  614.  
  615. {action_respond_info("[Extruder] max_extrude_cross_section is insufficient for purge, please set it to 5 or greater. Purge skipped.")}
  616.  
  617. {% else %}
  618.  
  619. {% if verbose_enable == True %}
  620.  
  621. {action_respond_info("Moving filament tip {}mms".format(
  622. (tip_distance),
  623. )) }
  624. {% endif %}
  625.  
  626. {% if printer.firmware_retraction is defined %}
  627. {action_respond_info("KAMP purge is using firmware retraction.")}
  628. {% else %}
  629. {action_respond_info("KAMP purge is not using firmware retraction, it is recommended to configure it.")}
  630. {% endif %}
  631.  
  632. {% if purge_y_origin > 0 %}
  633.  
  634. {action_respond_info("KAMP purge starting at {}, {} and purging {}mm of filament, requested flow rate is {}mm3/s.".format(
  635. (purge_x_center),
  636. (purge_y_origin),
  637. (purge_amount),
  638. (flow_rate),
  639. )) }
  640.  
  641. {% else %}
  642.  
  643. {action_respond_info("KAMP purge starting at {}, {} and purging {}mm of filament, requested flow rate is {}mm3/s.".format(
  644. (purge_x_origin),
  645. (purge_y_center),
  646. (purge_amount),
  647. (flow_rate),
  648. )) }
  649.  
  650. {% endif %}
  651.  
  652. SAVE_GCODE_STATE NAME=Prepurge_State
  653.  
  654. {% if purge_y_origin > 0 %}
  655.  
  656. G92 E0
  657. G0 F{travel_speed}
  658. G90
  659. G0 X{purge_x_center} Y{purge_y_origin}
  660. G0 Z{purge_height}
  661. M83
  662. G1 E{tip_distance} F{purge_move_speed}
  663. G1 X{purge_x_center + purge_amount} E{purge_amount} F{purge_move_speed}
  664. {RETRACT}
  665. G0 X{purge_x_center + purge_amount + 10} F{travel_speed}
  666. G92 E0
  667. M82
  668. G0 Z{purge_height * 2} F{travel_speed}
  669.  
  670. {% else %}
  671.  
  672. G92 E0
  673. G0 F{travel_speed}
  674. G90
  675. G0 X{purge_x_origin} Y{purge_y_center}
  676. G0 Z{purge_height}
  677. M83
  678. G1 E{tip_distance} F{purge_move_speed}
  679. G1 Y{purge_y_center + purge_amount} E{purge_amount} F{purge_move_speed}
  680. {RETRACT}
  681. G0 Y{purge_y_center + purge_amount + 10} F{travel_speed}
  682. G92 E0
  683. M82
  684. G0 Z{purge_height * 2} F{travel_speed}
  685.  
  686. {% endif %}
  687.  
  688. RESTORE_GCODE_STATE NAME=Prepurge_State
  689.  
  690. {% endif %}
  691.  
  692. [gcode_macro SMART_PARK]
  693. description = Parks your printhead near the print area for pre-print hotend heating.
  694. gcode =
  695.  
  696. {% set kamp_settings = printer["gcode_macro _KAMP_Settings"] %}
  697. {% set z_height = kamp_settings.smart_park_height | float %}
  698. {% set purge_margin = kamp_settings.purge_margin | float %}
  699. {% set verbose_enable = kamp_settings.verbose_enable | abs %}
  700. {% set center_x = printer.toolhead.axis_maximum.x / 2 | float %}
  701. {% set center_y = printer.toolhead.axis_maximum.y / 2 | float %}
  702. {% set axis_minimum_x = printer.toolhead.axis_minimum.x | float %}
  703. {% set axis_minimum_y = printer.toolhead.axis_minimum.y | float %}
  704. {% set all_points = printer.exclude_object.objects | map(attribute='polygon') | sum(start=[]) %}
  705. {% set x_min = all_points | map(attribute=0) | min | default(center_x) %}
  706. {% set y_min = all_points | map(attribute=1) | min | default(center_y) %}
  707. {% set travel_speed = (printer.toolhead.max_velocity) * 60 | float %}
  708.  
  709. {% if purge_margin > 0 and x_min != center_x and y_min != center_y %}
  710. {% set x_min = [ x_min - purge_margin , x_min ] | min %}
  711. {% set y_min = [ y_min - purge_margin , y_min ] | min %}
  712. {% set x_min = [ x_min , axis_minimum_x ] | max %}
  713. {% set y_min = [ y_min , axis_minimum_y ] | max %}
  714. {% endif %}
  715.  
  716.  
  717. {% if verbose_enable == True %}
  718.  
  719. { action_respond_info("Smart Park location: {},{}.".format(
  720. (x_min),
  721. (y_min),
  722. )) }
  723.  
  724. {% endif %}
  725.  
  726. {% if printer.toolhead.position.z < z_height %}
  727. G0 Z{z_height}
  728. {% endif %}
  729. G0 X{x_min} Y{y_min} F{travel_speed}
  730. G0 Z{z_height}
  731.  
  732. [gcode_macro _KAMP_Settings]
  733. description = This macro contains all adjustable settings for KAMP
  734. variable_verbose_enable = True
  735. variable_mesh_margin = 0
  736. variable_fuzz_amount = 0
  737. variable_probe_dock_enable = False
  738. variable_attach_macro = 'Attach_Probe'
  739. variable_detach_macro = 'Dock_Probe'
  740. variable_purge_height = 0.8
  741. variable_tip_distance = 10
  742. variable_purge_margin = 10
  743. variable_purge_amount = 30
  744. variable_flow_rate = 12
  745. variable_smart_park_height = 10
  746. gcode =
  747.  
  748. {action_respond_info(" Running the KAMP_Settings macro does nothing, it is only used for storing KAMP settings. ")}
  749.  
  750. [idle_timeout]
  751. timeout = 3600
  752.  
  753. [gcode_arcs]
  754. resolution = 0.1
  755.  
  756. [beacon]
  757. serial = /dev/serial/by-id/usb-Beacon_Beacon_RevH_5F19F5504E5737374D202020FF100E31-if00
  758. x_offset = -20
  759. y_offset = 0
  760. mesh_main_direction = x
  761. mesh_runs = 2
  762.  
  763. [force_move]
  764. enable_force_move = True
  765.  
  766. [quad_gantry_level]
  767. gantry_corners =
  768. 0,0
  769. 290,390
  770. points =
  771. 25,25
  772. 25,380
  773. 290,380
  774. 290,25
  775. speed = 250
  776. horizontal_move_z = 20
  777. retries = 3
  778. retry_tolerance = 0.12
  779. max_adjust = 50
  780.  
  781. [stepper_x]
  782. step_pin = PF13
  783. dir_pin = !PF12
  784. enable_pin = !PF14
  785. microsteps = 16
  786. endstop_pin = ^!PE8
  787. rotation_distance = 3.2
  788. step_pulse_duration = 0.0000002
  789. position_endstop = 0
  790. position_max = 300
  791. homing_speed = 50
  792.  
  793. [gcode_button kill_switch]
  794. pin = !PG11
  795. press_gcode =
  796. PAUSE
  797. M118 X or Y motion is blocked.
  798. M107
  799. M104 S0
  800.  
  801. [stepper_y]
  802. step_pin = PG0
  803. dir_pin = !PG1
  804. enable_pin = !PF15
  805. step_pulse_duration = 0.0000002
  806. microsteps = 16
  807. endstop_pin = ^!PE9
  808. rotation_distance = 3.2
  809. position_endstop = 0
  810. position_max = 400
  811. homing_speed = 50
  812.  
  813. [homing_override]
  814. axes = xyz
  815. set_position_z = 0
  816. gcode =
  817. LM_ENABLE
  818. {% if not 'Z' in params and not 'Y' in params and 'X' in params %}
  819. G28 X
  820. {% elif not 'Z' in params and not 'X' in params and 'Y' in params %}
  821. G28 Y
  822. {% elif not 'Z' in params and 'X' in params and 'Y' in params %}
  823. G28 X
  824. G28 Y
  825.  
  826. {% else %}
  827. G90
  828. G1 Z5
  829. G28 X
  830. G28 Y
  831. G0 X150 Y200 F6000
  832. G4 P3000
  833. LC28
  834. G28 Z
  835. G1 Z5
  836. {% endif %}
  837.  
  838. [bed_mesh]
  839. mesh_min = 0, 0
  840. mesh_max = 270,380
  841. speed = 150
  842. horizontal_move_z = 2
  843. probe_count = 6,8
  844. algorithm = bicubic
  845. split_delta_z = 0.0125
  846. move_check_distance = 3
  847. mesh_pps = 4,4
  848. fade_start = 0
  849. fade_end = 3
  850. fade_target = 0
  851.  
  852. [stepper_z]
  853. step_pin = PF11
  854. dir_pin = !PG3
  855. enable_pin = !PG5
  856. endstop_pin = probe:z_virtual_endstop
  857. rotation_distance = 4
  858. microsteps = 16
  859. position_max = 300
  860. position_min = -25
  861. homing_speed = 5
  862. second_homing_speed = 2
  863. homing_retract_dist = 0
  864.  
  865. [tmc2209 stepper_z]
  866. uart_pin = PC6
  867. interpolate = true
  868. run_current = 0.9
  869. hold_current = 0.5
  870. sense_resistor = 0.110
  871. stealthchop_threshold = 100
  872.  
  873. [stepper_z1]
  874. step_pin = PG4
  875. dir_pin = !PC1
  876. enable_pin = !PA2
  877. rotation_distance = 4
  878. microsteps = 16
  879.  
  880. [tmc2209 stepper_z1]
  881. uart_pin = PC7
  882. interpolate = true
  883. run_current = 0.9
  884. hold_current = 0.5
  885. sense_resistor = 0.110
  886. stealthchop_threshold = 100
  887.  
  888. [stepper_z2]
  889. step_pin = PF9
  890. dir_pin = !PF10
  891. enable_pin = !PG2
  892. rotation_distance = 4
  893. microsteps = 16
  894.  
  895. [tmc2209 stepper_z2]
  896. uart_pin = PF2
  897. interpolate = true
  898. run_current = 0.9
  899. hold_current = 0.50
  900. sense_resistor = 0.110
  901. stealthchop_threshold = 100
  902.  
  903. [stepper_z3]
  904. step_pin = PC13
  905. dir_pin = !PF0
  906. enable_pin = !PF1
  907. rotation_distance = 4
  908. microsteps = 16
  909.  
  910. [tmc2209 stepper_z3]
  911. uart_pin = PE4
  912. interpolate = true
  913. run_current = 0.9
  914. hold_current = 0.50
  915. sense_resistor = 0.110
  916. stealthchop_threshold = 100
  917.  
  918. [heater_bed]
  919. heater_pin = PA1
  920. sensor_pin = PF3
  921. sensor_type = Generic 3950
  922. control = pid
  923. pid_kp = 63.238
  924. pid_ki = 0.855
  925. pid_kd = 1169.116
  926. min_temp = -200
  927. max_temp = 130
  928.  
  929. [multi_pin part_cooling]
  930. pins = MAG_TOOL:gpio17, MAG_TOOL:gpio11
  931.  
  932. [multi_pin part_cooling_enable]
  933. pins = MAG_TOOL:gpio3, MAG_TOOL:gpio2
  934.  
  935. [temperature_fan pi]
  936. pin = PD15
  937. max_power = 0.60
  938. control = watermark
  939. max_delta = 5.0
  940. sensor_type = temperature_host
  941. min_temp = 10.0
  942. max_temp = 80.0
  943. target_temp = 55.0
  944. shutdown_speed = 0.0
  945.  
  946. [fan]
  947. pin = multi_pin:part_cooling
  948. max_power = 1.0
  949. kick_start_time = 0.5
  950. off_below = 0.10
  951. enable_pin = multi_pin:part_cooling_enable
  952.  
  953. [fan_generic Jetstream]
  954. pin = PE10
  955. enable_pin = PE7
  956. max_power = 1.0
  957. kick_start_time = 0.5
  958. cycle_time = 0.01
  959. off_below = 0.4
  960.  
  961. [exclude_object]
  962.  
  963. [respond]
  964.  
  965. [printer]
  966. kinematics = cartesian
  967. max_velocity = 1500
  968. max_accel = 15000
  969. max_z_velocity = 5
  970. max_z_accel = 100
  971.  
  972. [board_pins]
  973. aliases =
  974.  
  975. EXP1_1=PE8, EXP1_2=PE7,
  976. EXP1_3=PE9, EXP1_4=PE10,
  977. EXP1_5=PE12, EXP1_6=PE13,
  978. EXP1_7=PE14, EXP1_8=PE15,
  979. EXP1_9=<GND>, EXP1_10=<5V>,
  980.  
  981.  
  982. EXP2_1=PA6, EXP2_2=PA5,
  983. EXP2_3=PB1, EXP2_4=PA4,
  984. EXP2_5=PB2, EXP2_6=PA7,
  985. EXP2_7=PC15, EXP2_8=<RST>,
  986. EXP2_9=<GND>, EXP2_10=PC5
  987.  
  988. [output_pin _led_pin]
  989. pin = PE13
  990. pwm = False
  991. value = 0
  992.  
  993. [gcode_macro TOGGLE_LIGHTS]
  994. gcode =
  995. {% if printer['output_pin _led_pin'].value == 1 %}
  996. SET_PIN PIN=_led_pin VALUE=0
  997. {% else %}
  998. SET_PIN PIN=_led_pin VALUE=1
  999. {% endif %}
  1000.  
  1001. [input_shaper]
  1002. shaper_type_y = zv
  1003. shaper_freq_y = 27.0
  1004. shaper_type_x = ei
  1005. shaper_freq_x = 44.4
  1006.  
  1007. [bed_mesh default]
  1008.  
  1009. [beacon model default]
  1010. model_coef = 1.547087894539145,
  1011. 1.9297534267628196,
  1012. 0.8753081689007643,
  1013. 0.3290347449950653,
  1014. -0.00743661880596524,
  1015. 0.10603521864621207,
  1016. 0.15241567753947088,
  1017. -0.029258193821392248,
  1018. 0.03318889277713305,
  1019. 0.06682379128454721
  1020. model_domain = 1.8516565384128182e-07,1.9344726063931703e-07
  1021. model_range = 0.200000,5.000000
  1022. model_temp = 22.254831
  1023. model_offset = 0.00000
  1024. =======================
  1025. init magneto load cell
  1026. MAG_TOOL:gpio24
  1027. bed_mesh: Profile [default] not compatible with this version
  1028. of bed_mesh. Profile Version: 0 Current Version: 1
  1029. Extruder max_extrude_ratio=2.078758
  1030. mcu 'mcu': Starting serial connect
  1031. webhooks client 281472657533008: New connection
  1032. webhooks client 281472657533008: Client info {'program': 'Moonraker', 'version': 'v0.9.3-4-ga4604e3'}
  1033. Loaded MCU 'mcu' 105 commands (v0.11.0-205-g5f0d252b-dirty-20230817_035150-mainsailos / gcc: (15:8-2019-q3-1+b1) 8.3.1 20190703 (release) [gcc-8-branch revision 273027] binutils: (2.35.2-2+14+b2) 2.35.2)
  1034. MCU 'mcu' config: ADC_MAX=4095 BUS_PINS_i2c1_PB6_PB7=PB6,PB7 BUS_PINS_i2c1_PB8_PB9=PB8,PB9 BUS_PINS_i2c2_PB10_PB11=PB10,PB11 BUS_PINS_spi1=PA6,PA7,PA5 BUS_PINS_spi1a=PB4,PB5,PB3 BUS_PINS_spi2=PB14,PB15,PB13 BUS_PINS_spi2a=PC2,PC3,PB10 BUS_PINS_spi3a=PC11,PC12,PC10 BUS_PINS_spi4=PE13,PE14,PE12 BUS_PINS_spi5=PF8,PF9,PF7 BUS_PINS_spi5a=PH7,PF11,PH6 BUS_PINS_spi6=PG12,PG14,PG13 CLOCK_FREQ=400000000 MCU=stm32h723xx PWM_MAX=255 RESERVE_PINS_USB=PA11,PA12 RESERVE_PINS_crystal=PH0,PH1 STATS_SUMSQ_BASE=256 STEPPER_BOTH_EDGE=1
  1035. mcu 'MAG_TOOL': Starting CAN connect
  1036. Created a socket
  1037. Loaded MCU 'MAG_TOOL' 107 commands (v0.10.0-530-g3387a9c2-dirty-20221202_025024-mkspi / gcc: (15:7-2018-q2-6) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907] binutils: (2.31.1-12+11) 2.31.1)
  1038. MCU 'MAG_TOOL' config: ADC_MAX=4095 BUS_PINS_i2c0a=gpio0,gpio1 BUS_PINS_i2c0b=gpio4,gpio5 BUS_PINS_i2c0c=gpio8,gpio9 BUS_PINS_i2c0d=gpio12,gpio13 BUS_PINS_i2c0e=gpio16,gpio17 BUS_PINS_i2c0f=gpio20,gpio21 BUS_PINS_i2c0g=gpio24,gpio25 BUS_PINS_i2c0h=gpio28,gpio29 BUS_PINS_i2c1a=gpio2,gpio3 BUS_PINS_i2c1b=gpio6,gpio7 BUS_PINS_i2c1c=gpio10,gpio11 BUS_PINS_i2c1d=gpio14,gpio15 BUS_PINS_i2c1e=gpio18,gpio19 BUS_PINS_i2c1f=gpio22,gpio23 BUS_PINS_i2c1g=gpio26,gpio27 BUS_PINS_spi0a=gpio0,gpio3,gpio2 BUS_PINS_spi0b=gpio4,gpio7,gpio6 BUS_PINS_spi0c=gpio16,gpio19,gpio18 BUS_PINS_spi0d=gpio20,gpio23,gpio22 BUS_PINS_spi1a=gpio8,gpio11,gpio10 BUS_PINS_spi1b=gpio12,gpio15,gpio14 BUS_PINS_spi1c=gpio24,gpio27,gpio26 CLOCK_FREQ=12000000 MCU=rp2040 PWM_MAX=255 RECEIVE_WINDOW=192 RESERVE_PINS_CAN=gpio8,gpio9 STATS_SUMSQ_BASE=256 STEPPER_BOTH_EDGE=1
  1039. mcu 'beacon': Starting serial connect
  1040. Loaded MCU 'beacon' 45 commands (Beacon 2.1.0 / )
  1041. MCU 'beacon' config: ADC_MAX=4095 BEACON_ACCEL_BITS=12 BEACON_ACCEL_SCALE_16G=7.81 BEACON_ACCEL_SCALE_2G=0.98 BEACON_ACCEL_SCALE_4G=1.95 BEACON_ACCEL_SCALE_8G=3.91 BEACON_ADC_SMOOTH_COUNT=16 BEACON_HAS_ACCEL=1 BEACON_REV=H CLOCK_FREQ=32000000 MCU=beacon STATS_SUMSQ_BASE=256
  1042. Sending MCU 'mcu' printer configuration...
  1043. Configured MCU 'mcu' (1024 moves)
  1044. Protocol error
  1045. Traceback (most recent call last):
  1046. File "/home/pi/klipper/klippy/klippy.py", line 135, in _connect
  1047. cb()
  1048. File "/home/pi/klipper/klippy/mcu.py", line 748, in _connect
  1049. self._send_config(None)
  1050. File "/home/pi/klipper/klippy/mcu.py", line 679, in _send_config
  1051. cb()
  1052. File "/home/pi/klipper/klippy/extras/adxl345.py", line 222, in _build_config
  1053. self.query_adxl345_cmd = self.mcu.lookup_command(
  1054. File "/home/pi/klipper/klippy/mcu.py", line 880, in lookup_command
  1055. return CommandWrapper(self._serial, msgformat, cq)
  1056. File "/home/pi/klipper/klippy/mcu.py", line 86, in __init__
  1057. self._cmd = msgparser.lookup_command(msgformat)
  1058. File "/home/pi/klipper/klippy/msgproto.py", line 316, in lookup_command
  1059. self._error("Command format mismatch: %s vs %s",
  1060. File "/home/pi/klipper/klippy/msgproto.py", line 242, in _error
  1061. raise error(self.warn_prefix + (msg % params))
  1062. msgproto.error: mcu 'MAG_TOOL': Command format mismatch: query_adxl345 oid=%c rest_ticks=%u vs query_adxl345 oid=%c clock=%u rest_ticks=%u
  1063. MCU Protocol error
  1064.  
  1065. This is frequently caused by running an older version of the
  1066. firmware on the MCU(s). Fix by recompiling and flashing the
  1067. firmware.
  1068.  
  1069. Your Klipper version is: v0.12.0-405-g8a3d2afd7-dirty
  1070. MCU(s) which should be updated:
  1071. mcu: Current version v0.11.0-205-g5f0d252b-dirty-20230817_035150-mainsailos
  1072. MAG_TOOL: Current version v0.10.0-530-g3387a9c2-dirty-20221202_025024-mkspi
  1073. beacon: Current version Beacon 2.1.0
  1074. Up-to-date MCU(s):
  1075. <none>
  1076.  
  1077. Once the underlying issue is corrected, use the "RESTART"
  1078. command to reload the config and restart the host software.
  1079.  
  1080. mcu 'MAG_TOOL': Command format mismatch: query_adxl345 oid=%c rest_ticks=%u vs query_adxl345 oid=%c clock=%u rest_ticks=%u
  1081. Build file /home/pi/klipper/klippy/../.config(3599): Mon Jan 6 18:30:10 2025
  1082. ========= Last MCU build config =========
  1083. CONFIG_LOW_LEVEL_OPTIONS=y
  1084. # CONFIG_MACH_AVR is not set
  1085. # CONFIG_MACH_ATSAM is not set
  1086. # CONFIG_MACH_ATSAMD is not set
  1087. # CONFIG_MACH_LPC176X is not set
  1088. CONFIG_MACH_STM32=y
  1089. # CONFIG_MACH_HC32F460 is not set
  1090. # CONFIG_MACH_RPXXXX is not set
  1091. # CONFIG_MACH_PRU is not set
  1092. # CONFIG_MACH_AR100 is not set
  1093. # CONFIG_MACH_LINUX is not set
  1094. # CONFIG_MACH_SIMU is not set
  1095. CONFIG_BOARD_DIRECTORY="stm32"
  1096. CONFIG_MCU="stm32h723xx"
  1097. CONFIG_CLOCK_FREQ=400000000
  1098. CONFIG_USBSERIAL=y
  1099. CONFIG_FLASH_SIZE=0x40000
  1100. CONFIG_FLASH_BOOT_ADDRESS=0x8000000
  1101. CONFIG_RAM_START=0x20000000
  1102. CONFIG_RAM_SIZE=0x20000
  1103. CONFIG_STACK_SIZE=512
  1104. CONFIG_FLASH_APPLICATION_ADDRESS=0x8020000
  1105. CONFIG_STM32_SELECT=y
  1106. # CONFIG_MACH_STM32F103 is not set
  1107. # CONFIG_MACH_STM32F207 is not set
  1108. # CONFIG_MACH_STM32F401 is not set
  1109. # CONFIG_MACH_STM32F405 is not set
  1110. # CONFIG_MACH_STM32F407 is not set
  1111. # CONFIG_MACH_STM32F429 is not set
  1112. # CONFIG_MACH_STM32F446 is not set
  1113. # CONFIG_MACH_STM32F765 is not set
  1114. # CONFIG_MACH_STM32F031 is not set
  1115. # CONFIG_MACH_STM32F042 is not set
  1116. # CONFIG_MACH_STM32F070 is not set
  1117. # CONFIG_MACH_STM32F072 is not set
  1118. # CONFIG_MACH_STM32G070 is not set
  1119. # CONFIG_MACH_STM32G071 is not set
  1120. # CONFIG_MACH_STM32G0B0 is not set
  1121. # CONFIG_MACH_STM32G0B1 is not set
  1122. # CONFIG_MACH_STM32G431 is not set
  1123. # CONFIG_MACH_STM32G474 is not set
  1124. CONFIG_MACH_STM32H723=y
  1125. # CONFIG_MACH_STM32H743 is not set
  1126. # CONFIG_MACH_STM32H750 is not set
  1127. # CONFIG_MACH_STM32L412 is not set
  1128. # CONFIG_MACH_N32G452 is not set
  1129. # CONFIG_MACH_N32G455 is not set
  1130. CONFIG_MACH_STM32H7=y
  1131. CONFIG_HAVE_STM32_USBOTG=y
  1132. CONFIG_HAVE_STM32_FDCANBUS=y
  1133. CONFIG_HAVE_STM32_USBCANBUS=y
  1134. CONFIG_STM32_DFU_ROM_ADDRESS=0x1ff09800
  1135. CONFIG_STM32_FLASH_START_20000=y
  1136. # CONFIG_STM32_FLASH_START_0000 is not set
  1137. # CONFIG_STM32_CLOCK_REF_8M is not set
  1138. # CONFIG_STM32_CLOCK_REF_12M is not set
  1139. # CONFIG_STM32_CLOCK_REF_16M is not set
  1140. # CONFIG_STM32_CLOCK_REF_20M is not set
  1141. # CONFIG_STM32_CLOCK_REF_24M is not set
  1142. CONFIG_STM32_CLOCK_REF_25M=y
  1143. # CONFIG_STM32_CLOCK_REF_INTERNAL is not set
  1144. CONFIG_CLOCK_REF_FREQ=25000000
  1145. CONFIG_STM32F0_TRIM=16
  1146. CONFIG_STM32_USB_PA11_PA12=y
  1147. # CONFIG_STM32_SERIAL_USART1 is not set
  1148. # CONFIG_STM32_SERIAL_USART1_ALT_PB7_PB6 is not set
  1149. # CONFIG_STM32_SERIAL_USART2 is not set
  1150. # CONFIG_STM32_SERIAL_USART2_ALT_PD6_PD5 is not set
  1151. # CONFIG_STM32_SERIAL_USART3 is not set
  1152. # CONFIG_STM32_SERIAL_USART3_ALT_PD9_PD8 is not set
  1153. # CONFIG_STM32_SERIAL_UART4 is not set
  1154. # CONFIG_STM32_CANBUS_PA11_PA12 is not set
  1155. # CONFIG_STM32_CANBUS_PA11_PB9 is not set
  1156. # CONFIG_STM32_MMENU_CANBUS_PB8_PB9 is not set
  1157. # CONFIG_STM32_MMENU_CANBUS_PB12_PB13 is not set
  1158. # CONFIG_STM32_MMENU_CANBUS_PD0_PD1 is not set
  1159. # CONFIG_STM32_MMENU_CANBUS_PB0_PB1 is not set
  1160. # CONFIG_STM32_MMENU_CANBUS_PD12_PD13 is not set
  1161. # CONFIG_STM32_MMENU_CANBUS_PC2_PC3 is not set
  1162. # CONFIG_STM32_USBCANBUS_PA11_PA12 is not set
  1163. CONFIG_USB=y
  1164. CONFIG_USB_VENDOR_ID=0x1d50
  1165. CONFIG_USB_DEVICE_ID=0x614e
  1166. CONFIG_USB_SERIAL_NUMBER_CHIPID=y
  1167. CONFIG_USB_SERIAL_NUMBER="12345"
  1168.  
  1169. #
  1170. # USB ids
  1171. #
  1172. # end of USB ids
  1173.  
  1174. CONFIG_WANT_GPIO_BITBANGING=y
  1175. CONFIG_WANT_DISPLAYS=y
  1176. CONFIG_WANT_THERMOCOUPLE=y
  1177. CONFIG_WANT_ADXL345=y
  1178. CONFIG_WANT_LIS2DW=y
  1179. CONFIG_WANT_MPU9250=y
  1180. CONFIG_WANT_HX71X=y
  1181. CONFIG_WANT_ADS1220=y
  1182. CONFIG_WANT_LDC1612=y
  1183. CONFIG_WANT_SENSOR_ANGLE=y
  1184. CONFIG_WANT_SOFTWARE_I2C=y
  1185. CONFIG_WANT_SOFTWARE_SPI=y
  1186. CONFIG_NEED_SENSOR_BULK=y
  1187. CONFIG_CANBUS_FREQUENCY=1000000
  1188. CONFIG_INITIAL_PINS=""
  1189. CONFIG_HAVE_GPIO=y
  1190. CONFIG_HAVE_GPIO_ADC=y
  1191. CONFIG_HAVE_GPIO_SPI=y
  1192. CONFIG_HAVE_GPIO_I2C=y
  1193. CONFIG_HAVE_GPIO_HARD_PWM=y
  1194. CONFIG_HAVE_STRICT_TIMING=y
  1195. CONFIG_HAVE_CHIPID=y
  1196. CONFIG_HAVE_STEPPER_BOTH_EDGE=y
  1197. CONFIG_HAVE_BOOTLOADER_REQUEST=y
  1198. CONFIG_INLINE_STEPPER_HACK=y
  1199. =======================
  1200. Build file /home/pi/klipper/klippy/../out/klipper.dict(8710): Mon Jan 6 18:31:11 2025
  1201. Last MCU build version: v0.12.0-405-g8a3d2afd7
  1202. Last MCU build tools: gcc: (15:8-2019-q3-1+b1) 8.3.1 20190703 (release) [gcc-8-branch revision 273027] binutils: (2.35.2-2+14+b2) 2.35.2
  1203. Last MCU build config: ADC_MAX=4095 BUS_PINS_i2c1_PB6_PB7=PB6,PB7 BUS_PINS_i2c1_PB8_PB9=PB8,PB9 BUS_PINS_i2c2_PB10_PB11=PB10,PB11 BUS_PINS_i2c3_PA8_PC9=PA8,PC9 BUS_PINS_spi1=PA6,PA7,PA5 BUS_PINS_spi1a=PB4,PB5,PB3 BUS_PINS_spi2=PB14,PB15,PB13 BUS_PINS_spi2a=PC2,PC3,PB10 BUS_PINS_spi3a=PC11,PC12,PC10 BUS_PINS_spi4=PE13,PE14,PE12 BUS_PINS_spi5=PF8,PF9,PF7 BUS_PINS_spi5a=PH7,PF11,PH6 BUS_PINS_spi6=PG12,PG14,PG13 CLOCK_FREQ=400000000 MCU=stm32h723xx PWM_MAX=255 RESERVE_PINS_USB=PA11,PA12 RESERVE_PINS_crystal=PH0,PH1 STATS_SUMSQ_BASE=256 STEPPER_BOTH_EDGE=1
  1204. Build file /home/pi/klipper/klippy/../out/klipper.elf(1714508): Mon Jan 6 18:31:28 2025
  1205.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement