moo00se

klippy.log621-248

Jun 21st, 2022
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 69.39 KB | None | 0 0
  1. Starting Klippy...
  2. Args: ['/home/pi/klipper/klippy/klippy.py', '/home/pi/klipper_config/printer.cfg', '-I', '/tmp/printer', '-l', '/home/pi/klipper_logs/klippy.log', '-a', '/tmp/klippy_uds']
  3. Git version: 'v0.10.0-494-gd3c4ba48'
  4. CPU: 4 core ARMv7 Processor rev 3 (v7l)
  5. Python: '2.7.18 (default, Jul 14 2021, 08:11:37) \n[GCC 10.2.1 20210110]'
  6. Building C code module c_helper.so
  7. Start printer at Tue Jun 21 14:23:08 2022 (1655846588.3 486.8)
  8. ===== Config file =====
  9. [mcu]
  10. serial = /dev/serial/by-id/<your-mcu-id>
  11.  
  12. [printer]
  13. kinematics = none
  14. max_velocity = 1000
  15. max_accel = 1000
  16. =======================
  17. mcu 'mcu': Starting serial connect
  18. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  19. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  20. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  21. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  22. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  23. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  24. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  25. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  26. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  27. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  28. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  29. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  30. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  31. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  32. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  33. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  34. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  35. mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  36. MCU error during connect
  37. Traceback (most recent call last):
  38. File "/home/pi/klipper/klippy/klippy.py", line 176, in _connect
  39. self.send_event("klippy:mcu_identify")
  40. File "/home/pi/klipper/klippy/klippy.py", line 264, in send_event
  41. return [cb(*params) for cb in self.event_handlers.get(event, [])]
  42. File "/home/pi/klipper/klippy/mcu.py", line 779, in _mcu_identify
  43. raise error(str(e))
  44. error: mcu 'mcu': Unable to connect
  45. No build file /home/pi/klipper/klippy/../.config
  46. No build file /home/pi/klipper/klippy/../out/klipper.dict
  47. No build file /home/pi/klipper/klippy/../out/klipper.elf
  48. webhooks client 3042978792: New connection
  49. webhooks client 3042978792: Client info {'program': 'Moonraker', 'version': 'v0.7.1-589-g4bed314'}
  50. Attempting MCU 'mcu' reset
  51. Unhandled exception during post run
  52. Traceback (most recent call last):
  53. File "/home/pi/klipper/klippy/klippy.py", line 235, in run
  54. m.microcontroller_restart()
  55. File "/home/pi/klipper/klippy/mcu.py", line 922, in microcontroller_restart
  56. self._restart_arduino()
  57. File "/home/pi/klipper/klippy/mcu.py", line 884, in _restart_arduino
  58. serialhdl.arduino_reset(self._serialport, self._reactor)
  59. File "/home/pi/klipper/klippy/serialhdl.py", line 376, in arduino_reset
  60. ser = serial.Serial(serialport, 2400, timeout=0, exclusive=True)
  61. File "/home/pi/klippy-env/lib/python2.7/site-packages/serial/serialutil.py", line 240, in __init__
  62. self.open()
  63. File "/home/pi/klippy-env/lib/python2.7/site-packages/serial/serialposix.py", line 268, in open
  64. raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
  65. SerialException: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  66. Restarting printer
  67. Start printer at Tue Jun 21 14:31:54 2022 (1655847114.1 1012.6)
  68. ===== Config file =====
  69. [virtual_sdcard]
  70. path = /home/pi/gcode_files
  71.  
  72. [pause_resume]
  73.  
  74. [display_status]
  75.  
  76. [gcode_macro CANCEL_PRINT]
  77. description = Cancel the actual running print
  78. rename_existing = CANCEL_PRINT_BASE
  79. gcode =
  80. TURN_OFF_HEATERS
  81. CANCEL_PRINT_BASE
  82.  
  83. [gcode_macro PAUSE]
  84. description = Pause the actual running print
  85. rename_existing = PAUSE_BASE
  86. variable_extrude = 1.0
  87. gcode =
  88. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  89. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  90. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  91. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  92. {% set act_z = printer.toolhead.position.z|float %}
  93. {% if act_z < (max_z - 2.0) %}
  94. {% set z_safe = 2.0 %}
  95. {% else %}
  96. {% set z_safe = max_z - act_z %}
  97. {% endif %}
  98. PAUSE_BASE
  99. G91
  100. {% if printer.extruder.can_extrude|lower == 'true' %}
  101. G1 E-{E} F2100
  102. {% else %}
  103. {action_respond_info("Extruder not hot enough")}
  104. {% endif %}
  105. {% if "xyz" in printer.toolhead.homed_axes %}
  106. G1 Z{z_safe} F900
  107. G90
  108. G1 X{x_park} Y{y_park} F6000
  109. {% else %}
  110. {action_respond_info("Printer not homed")}
  111. {% endif %}
  112.  
  113. [gcode_macro RESUME]
  114. description = Resume the actual running print
  115. rename_existing = RESUME_BASE
  116. gcode =
  117. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  118. {% if 'VELOCITY' in params|upper %}
  119. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  120. {%else %}
  121. {% set get_params = "" %}
  122. {% endif %}
  123. {% if printer.extruder.can_extrude|lower == 'true' %}
  124. G91
  125. G1 E{E} F2100
  126. {% else %}
  127. {action_respond_info("Extruder not hot enough")}
  128. {% endif %}
  129. RESUME_BASE {get_params}
  130.  
  131. [mcu]
  132. serial = /dev/ttyAMA0
  133.  
  134. [printer]
  135. kinematics = none
  136. max_velocity = 1000
  137. max_accel = 1000
  138. =======================
  139. mcu 'mcu': Starting serial connect
  140. Starting Klippy...
  141. Args: ['/home/pi/klipper/klippy/klippy.py', '/home/pi/klipper_config/printer.cfg', '-I', '/tmp/printer', '-l', '/home/pi/klipper_logs/klippy.log', '-a', '/tmp/klippy_uds']
  142. Git version: 'v0.10.0-494-gd3c4ba48'
  143. CPU: 4 core ARMv7 Processor rev 3 (v7l)
  144. Python: '2.7.18 (default, Jul 14 2021, 08:11:37) \n[GCC 10.2.1 20210110]'
  145. Start printer at Tue Jun 21 14:33:24 2022 (1655847204.2 9.0)
  146. ===== Config file =====
  147. [virtual_sdcard]
  148. path = /home/pi/gcode_files
  149.  
  150. [pause_resume]
  151.  
  152. [display_status]
  153.  
  154. [gcode_macro CANCEL_PRINT]
  155. description = Cancel the actual running print
  156. rename_existing = CANCEL_PRINT_BASE
  157. gcode =
  158. TURN_OFF_HEATERS
  159. CANCEL_PRINT_BASE
  160.  
  161. [gcode_macro PAUSE]
  162. description = Pause the actual running print
  163. rename_existing = PAUSE_BASE
  164. variable_extrude = 1.0
  165. gcode =
  166. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  167. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  168. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  169. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  170. {% set act_z = printer.toolhead.position.z|float %}
  171. {% if act_z < (max_z - 2.0) %}
  172. {% set z_safe = 2.0 %}
  173. {% else %}
  174. {% set z_safe = max_z - act_z %}
  175. {% endif %}
  176. PAUSE_BASE
  177. G91
  178. {% if printer.extruder.can_extrude|lower == 'true' %}
  179. G1 E-{E} F2100
  180. {% else %}
  181. {action_respond_info("Extruder not hot enough")}
  182. {% endif %}
  183. {% if "xyz" in printer.toolhead.homed_axes %}
  184. G1 Z{z_safe} F900
  185. G90
  186. G1 X{x_park} Y{y_park} F6000
  187. {% else %}
  188. {action_respond_info("Printer not homed")}
  189. {% endif %}
  190.  
  191. [gcode_macro RESUME]
  192. description = Resume the actual running print
  193. rename_existing = RESUME_BASE
  194. gcode =
  195. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  196. {% if 'VELOCITY' in params|upper %}
  197. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  198. {%else %}
  199. {% set get_params = "" %}
  200. {% endif %}
  201. {% if printer.extruder.can_extrude|lower == 'true' %}
  202. G91
  203. G1 E{E} F2100
  204. {% else %}
  205. {action_respond_info("Extruder not hot enough")}
  206. {% endif %}
  207. RESUME_BASE {get_params}
  208.  
  209. [mcu]
  210. serial = /dev/ttyAMA0
  211.  
  212. [printer]
  213. kinematics = none
  214. max_velocity = 1000
  215. max_accel = 1000
  216. =======================
  217. mcu 'mcu': Starting serial connect
  218. webhooks client 3042954256: New connection
  219. webhooks client 3042954256: Client info {'program': 'Moonraker', 'version': 'v0.7.1-589-g4bed314'}
  220. mcu 'mcu': Timeout on connect
  221. mcu 'mcu': Wait for identify_response
  222. Traceback (most recent call last):
  223. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  224. params = self.send_with_response(msg, 'identify_response')
  225. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  226. return src.get_response([cmd], self.default_cmd_queue)
  227. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  228. cmd_queue)
  229. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  230. self._error("Serial connection closed")
  231. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  232. raise error(self.warn_prefix + (msg % params))
  233. error: mcu 'mcu': Serial connection closed
  234. mcu 'mcu': Timeout on connect
  235. mcu 'mcu': Wait for identify_response
  236. Traceback (most recent call last):
  237. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  238. params = self.send_with_response(msg, 'identify_response')
  239. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  240. return src.get_response([cmd], self.default_cmd_queue)
  241. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  242. cmd_queue)
  243. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  244. self._error("Serial connection closed")
  245. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  246. raise error(self.warn_prefix + (msg % params))
  247. error: mcu 'mcu': Serial connection closed
  248. Got error -1 in read: (11)Resource temporarily unavailable
  249. mcu 'mcu': Timeout on connect
  250. mcu 'mcu': Wait for identify_response
  251. Traceback (most recent call last):
  252. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  253. params = self.send_with_response(msg, 'identify_response')
  254. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  255. return src.get_response([cmd], self.default_cmd_queue)
  256. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  257. cmd_queue)
  258. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  259. self._error("Serial connection closed")
  260. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  261. raise error(self.warn_prefix + (msg % params))
  262. error: mcu 'mcu': Serial connection closed
  263. mcu 'mcu': Timeout on connect
  264. mcu 'mcu': Wait for identify_response
  265. Traceback (most recent call last):
  266. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  267. params = self.send_with_response(msg, 'identify_response')
  268. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  269. return src.get_response([cmd], self.default_cmd_queue)
  270. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  271. cmd_queue)
  272. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  273. self._error("Serial connection closed")
  274. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  275. raise error(self.warn_prefix + (msg % params))
  276. error: mcu 'mcu': Serial connection closed
  277. mcu 'mcu': Timeout on connect
  278. mcu 'mcu': Wait for identify_response
  279. Traceback (most recent call last):
  280. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  281. params = self.send_with_response(msg, 'identify_response')
  282. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  283. return src.get_response([cmd], self.default_cmd_queue)
  284. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  285. cmd_queue)
  286. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  287. self._error("Serial connection closed")
  288. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  289. raise error(self.warn_prefix + (msg % params))
  290. error: mcu 'mcu': Serial connection closed
  291. mcu 'mcu': Timeout on connect
  292. mcu 'mcu': Wait for identify_response
  293. Traceback (most recent call last):
  294. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  295. params = self.send_with_response(msg, 'identify_response')
  296. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  297. return src.get_response([cmd], self.default_cmd_queue)
  298. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  299. cmd_queue)
  300. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  301. self._error("Serial connection closed")
  302. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  303. raise error(self.warn_prefix + (msg % params))
  304. error: mcu 'mcu': Serial connection closed
  305. mcu 'mcu': Timeout on connect
  306. mcu 'mcu': Wait for identify_response
  307. Traceback (most recent call last):
  308. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  309. params = self.send_with_response(msg, 'identify_response')
  310. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  311. return src.get_response([cmd], self.default_cmd_queue)
  312. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  313. cmd_queue)
  314. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  315. self._error("Serial connection closed")
  316. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  317. raise error(self.warn_prefix + (msg % params))
  318. error: mcu 'mcu': Serial connection closed
  319. mcu 'mcu': Timeout on connect
  320. mcu 'mcu': Wait for identify_response
  321. Traceback (most recent call last):
  322. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  323. params = self.send_with_response(msg, 'identify_response')
  324. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  325. return src.get_response([cmd], self.default_cmd_queue)
  326. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  327. cmd_queue)
  328. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  329. self._error("Serial connection closed")
  330. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  331. raise error(self.warn_prefix + (msg % params))
  332. error: mcu 'mcu': Serial connection closed
  333. mcu 'mcu': Timeout on connect
  334. mcu 'mcu': Wait for identify_response
  335. Traceback (most recent call last):
  336. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  337. params = self.send_with_response(msg, 'identify_response')
  338. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  339. return src.get_response([cmd], self.default_cmd_queue)
  340. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  341. cmd_queue)
  342. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  343. self._error("Serial connection closed")
  344. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  345. raise error(self.warn_prefix + (msg % params))
  346. error: mcu 'mcu': Serial connection closed
  347. mcu 'mcu': Timeout on connect
  348. mcu 'mcu': Wait for identify_response
  349. Traceback (most recent call last):
  350. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  351. params = self.send_with_response(msg, 'identify_response')
  352. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  353. return src.get_response([cmd], self.default_cmd_queue)
  354. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  355. cmd_queue)
  356. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  357. self._error("Serial connection closed")
  358. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  359. raise error(self.warn_prefix + (msg % params))
  360. error: mcu 'mcu': Serial connection closed
  361. mcu 'mcu': Timeout on connect
  362. mcu 'mcu': Wait for identify_response
  363. Traceback (most recent call last):
  364. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  365. params = self.send_with_response(msg, 'identify_response')
  366. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  367. return src.get_response([cmd], self.default_cmd_queue)
  368. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  369. cmd_queue)
  370. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  371. self._error("Serial connection closed")
  372. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  373. raise error(self.warn_prefix + (msg % params))
  374. error: mcu 'mcu': Serial connection closed
  375. mcu 'mcu': Timeout on connect
  376. mcu 'mcu': Wait for identify_response
  377. Traceback (most recent call last):
  378. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  379. params = self.send_with_response(msg, 'identify_response')
  380. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  381. return src.get_response([cmd], self.default_cmd_queue)
  382. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  383. cmd_queue)
  384. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  385. self._error("Serial connection closed")
  386. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  387. raise error(self.warn_prefix + (msg % params))
  388. error: mcu 'mcu': Serial connection closed
  389. mcu 'mcu': Timeout on connect
  390. mcu 'mcu': Wait for identify_response
  391. Traceback (most recent call last):
  392. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  393. params = self.send_with_response(msg, 'identify_response')
  394. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  395. return src.get_response([cmd], self.default_cmd_queue)
  396. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  397. cmd_queue)
  398. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  399. self._error("Serial connection closed")
  400. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  401. raise error(self.warn_prefix + (msg % params))
  402. error: mcu 'mcu': Serial connection closed
  403. mcu 'mcu': Timeout on connect
  404. mcu 'mcu': Wait for identify_response
  405. Traceback (most recent call last):
  406. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  407. params = self.send_with_response(msg, 'identify_response')
  408. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  409. return src.get_response([cmd], self.default_cmd_queue)
  410. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  411. cmd_queue)
  412. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  413. self._error("Serial connection closed")
  414. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  415. raise error(self.warn_prefix + (msg % params))
  416. error: mcu 'mcu': Serial connection closed
  417. mcu 'mcu': Timeout on connect
  418. mcu 'mcu': Wait for identify_response
  419. Traceback (most recent call last):
  420. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  421. params = self.send_with_response(msg, 'identify_response')
  422. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  423. return src.get_response([cmd], self.default_cmd_queue)
  424. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  425. cmd_queue)
  426. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  427. self._error("Serial connection closed")
  428. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  429. raise error(self.warn_prefix + (msg % params))
  430. error: mcu 'mcu': Serial connection closed
  431. mcu 'mcu': Timeout on connect
  432. mcu 'mcu': Wait for identify_response
  433. Traceback (most recent call last):
  434. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  435. params = self.send_with_response(msg, 'identify_response')
  436. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  437. return src.get_response([cmd], self.default_cmd_queue)
  438. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  439. cmd_queue)
  440. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  441. self._error("Serial connection closed")
  442. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  443. raise error(self.warn_prefix + (msg % params))
  444. error: mcu 'mcu': Serial connection closed
  445. mcu 'mcu': Timeout on connect
  446. mcu 'mcu': Wait for identify_response
  447. Traceback (most recent call last):
  448. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  449. params = self.send_with_response(msg, 'identify_response')
  450. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  451. return src.get_response([cmd], self.default_cmd_queue)
  452. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  453. cmd_queue)
  454. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  455. self._error("Serial connection closed")
  456. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  457. raise error(self.warn_prefix + (msg % params))
  458. error: mcu 'mcu': Serial connection closed
  459. mcu 'mcu': Timeout on connect
  460. MCU error during connect
  461. Traceback (most recent call last):
  462. File "/home/pi/klipper/klippy/klippy.py", line 176, in _connect
  463. self.send_event("klippy:mcu_identify")
  464. File "/home/pi/klipper/klippy/klippy.py", line 264, in send_event
  465. return [cb(*params) for cb in self.event_handlers.get(event, [])]
  466. File "/home/pi/klipper/klippy/mcu.py", line 779, in _mcu_identify
  467. raise error(str(e))
  468. error: mcu 'mcu': Unable to connect
  469. Build file /home/pi/klipper/klippy/../.config(2447): Tue Jun 21 14:30:10 2022
  470. ========= Last MCU build config =========
  471. CONFIG_LOW_LEVEL_OPTIONS=y
  472. # CONFIG_MACH_AVR is not set
  473. # CONFIG_MACH_ATSAM is not set
  474. # CONFIG_MACH_ATSAMD is not set
  475. # CONFIG_MACH_LPC176X is not set
  476. CONFIG_MACH_STM32=y
  477. # CONFIG_MACH_RP2040 is not set
  478. # CONFIG_MACH_PRU is not set
  479. # CONFIG_MACH_LINUX is not set
  480. # CONFIG_MACH_SIMU is not set
  481. CONFIG_BOARD_DIRECTORY="stm32"
  482. CONFIG_MCU="stm32f446xx"
  483. CONFIG_CLOCK_FREQ=180000000
  484. CONFIG_SERIAL=y
  485. CONFIG_FLASH_START=0x8008000
  486. CONFIG_FLASH_SIZE=0x80000
  487. CONFIG_RAM_START=0x20000000
  488. CONFIG_RAM_SIZE=0x20000
  489. CONFIG_STACK_SIZE=512
  490. CONFIG_STM32_SELECT=y
  491. # CONFIG_MACH_STM32F103 is not set
  492. # CONFIG_MACH_STM32F207 is not set
  493. # CONFIG_MACH_STM32F401 is not set
  494. # CONFIG_MACH_STM32F405 is not set
  495. # CONFIG_MACH_STM32F407 is not set
  496. # CONFIG_MACH_STM32F429 is not set
  497. CONFIG_MACH_STM32F446=y
  498. # CONFIG_MACH_STM32F031 is not set
  499. # CONFIG_MACH_STM32F042 is not set
  500. # CONFIG_MACH_STM32F070 is not set
  501. # CONFIG_MACH_STM32F072 is not set
  502. # CONFIG_MACH_STM32G0B1 is not set
  503. # CONFIG_MACH_STM32H743 is not set
  504. # CONFIG_MACH_STM32H750 is not set
  505. CONFIG_MACH_STM32F4=y
  506. CONFIG_HAVE_STM32_USBOTG=y
  507. CONFIG_HAVE_STM32_CANBUS=y
  508. CONFIG_STM32_FLASH_START_8000=y
  509. # CONFIG_STM32_FLASH_START_10000 is not set
  510. # CONFIG_STM32_FLASH_START_0000 is not set
  511. # CONFIG_STM32_CLOCK_REF_8M is not set
  512. CONFIG_STM32_CLOCK_REF_12M=y
  513. # CONFIG_STM32_CLOCK_REF_16M is not set
  514. # CONFIG_STM32_CLOCK_REF_25M is not set
  515. # CONFIG_STM32_CLOCK_REF_INTERNAL is not set
  516. CONFIG_CLOCK_REF_FREQ=12000000
  517. CONFIG_STM32F0_TRIM=16
  518. # CONFIG_STM32_USB_PA11_PA12 is not set
  519. # CONFIG_STM32_SERIAL_USART1 is not set
  520. # CONFIG_STM32_SERIAL_USART1_ALT_PB7_PB6 is not set
  521. # CONFIG_STM32_SERIAL_USART2 is not set
  522. CONFIG_STM32_SERIAL_USART2_ALT_PD6_PD5=y
  523. # CONFIG_STM32_SERIAL_USART3 is not set
  524. # CONFIG_STM32_SERIAL_USART3_ALT_PD9_PD8 is not set
  525. # CONFIG_STM32_CANBUS_PA11_PA12 is not set
  526. # CONFIG_STM32_CANBUS_PB8_PB9 is not set
  527. # CONFIG_STM32_CANBUS_PI9_PH13 is not set
  528. # CONFIG_STM32_CANBUS_PB5_PB6 is not set
  529. # CONFIG_STM32_CANBUS_PB12_PB13 is not set
  530. # CONFIG_STM32_CANBUS_PD0_PD1 is not set
  531. CONFIG_SERIAL_BAUD=250000
  532. CONFIG_USB_VENDOR_ID=0x1d50
  533. CONFIG_USB_DEVICE_ID=0x614e
  534. CONFIG_USB_SERIAL_NUMBER="12345"
  535. CONFIG_CANBUS_FREQUENCY=500000
  536. CONFIG_INITIAL_PINS=""
  537. CONFIG_HAVE_GPIO=y
  538. CONFIG_HAVE_GPIO_ADC=y
  539. CONFIG_HAVE_GPIO_SPI=y
  540. CONFIG_HAVE_GPIO_I2C=y
  541. CONFIG_HAVE_GPIO_HARD_PWM=y
  542. CONFIG_HAVE_GPIO_BITBANGING=y
  543. CONFIG_HAVE_STRICT_TIMING=y
  544. CONFIG_HAVE_CHIPID=y
  545. CONFIG_HAVE_STEPPER_BOTH_EDGE=y
  546. CONFIG_INLINE_STEPPER_HACK=y
  547. =======================
  548. Build file /home/pi/klipper/klippy/../out/klipper.dict(7769): Tue Jun 21 14:30:26 2022
  549. Last MCU build version: v0.10.0-494-gd3c4ba48
  550. Last MCU build tools: gcc: (15:8-2019-q3-1+b1) 8.3.1 20190703 (release) [gcc-8-branch revision 273027] binutils: (2.34-4+rpi1+14) 2.34
  551. Last MCU build config: BUS_PINS_i2c1=PB6,PB7 RECEIVE_WINDOW=192 BUS_PINS_i2c3=PA8,PC9 BUS_PINS_i2c2=PB10,PB11 BUS_PINS_spi3a=PC11,PC12,PC10 RESERVE_PINS_serial=PD6,PD5 BUS_PINS_spi2a=PC2,PC3,PB10 BUS_PINS_i2c1a=PB8,PB9 RESERVE_PINS_crystal=PH0,PH1 STEPPER_BOTH_EDGE=1 SERIAL_BAUD=250000 ADC_MAX=4095 BUS_PINS_spi4=PE13,PE14,PE12 BUS_PINS_spi3=PB4,PB5,PB3 BUS_PINS_spi2=PB14,PB15,PB13 BUS_PINS_spi1=PA6,PA7,PA5 PWM_MAX=255 MCU=stm32f446xx STATS_SUMSQ_BASE=256 BUS_PINS_spi1a=PB4,PB5,PB3 CLOCK_FREQ=180000000
  552. Build file /home/pi/klipper/klippy/../out/klipper.elf(1189532): Tue Jun 21 14:30:33 2022
  553. mcu 'mcu': Wait for identify_response
  554. Traceback (most recent call last):
  555. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  556. params = self.send_with_response(msg, 'identify_response')
  557. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  558. return src.get_response([cmd], self.default_cmd_queue)
  559. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  560. cmd_queue)
  561. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  562. self._error("Serial connection closed")
  563. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  564. raise error(self.warn_prefix + (msg % params))
  565. error: mcu 'mcu': Serial connection closed
  566. Attempting MCU 'mcu' reset
  567. webhooks client 3042954256: Disconnected
  568. Restarting printer
  569. Start printer at Tue Jun 21 14:39:18 2022 (1655847558.6 234.7)
  570. ===== Config file =====
  571. [virtual_sdcard]
  572. path = /home/pi/gcode_files
  573.  
  574. [pause_resume]
  575.  
  576. [display_status]
  577.  
  578. [gcode_macro CANCEL_PRINT]
  579. description = Cancel the actual running print
  580. rename_existing = CANCEL_PRINT_BASE
  581. gcode =
  582. TURN_OFF_HEATERS
  583. CANCEL_PRINT_BASE
  584.  
  585. [gcode_macro PAUSE]
  586. description = Pause the actual running print
  587. rename_existing = PAUSE_BASE
  588. variable_extrude = 1.0
  589. gcode =
  590. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  591. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  592. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  593. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  594. {% set act_z = printer.toolhead.position.z|float %}
  595. {% if act_z < (max_z - 2.0) %}
  596. {% set z_safe = 2.0 %}
  597. {% else %}
  598. {% set z_safe = max_z - act_z %}
  599. {% endif %}
  600. PAUSE_BASE
  601. G91
  602. {% if printer.extruder.can_extrude|lower == 'true' %}
  603. G1 E-{E} F2100
  604. {% else %}
  605. {action_respond_info("Extruder not hot enough")}
  606. {% endif %}
  607. {% if "xyz" in printer.toolhead.homed_axes %}
  608. G1 Z{z_safe} F900
  609. G90
  610. G1 X{x_park} Y{y_park} F6000
  611. {% else %}
  612. {action_respond_info("Printer not homed")}
  613. {% endif %}
  614.  
  615. [gcode_macro RESUME]
  616. description = Resume the actual running print
  617. rename_existing = RESUME_BASE
  618. gcode =
  619. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  620. {% if 'VELOCITY' in params|upper %}
  621. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  622. {%else %}
  623. {% set get_params = "" %}
  624. {% endif %}
  625. {% if printer.extruder.can_extrude|lower == 'true' %}
  626. G91
  627. G1 E{E} F2100
  628. {% else %}
  629. {action_respond_info("Extruder not hot enough")}
  630. {% endif %}
  631. RESUME_BASE {get_params}
  632.  
  633. [mcu]
  634. serial = /dev/ttyAMA0
  635. restart_method = command
  636.  
  637. [printer]
  638. kinematics = none
  639. max_velocity = 1000
  640. max_accel = 1000
  641. =======================
  642. mcu 'mcu': Starting serial connect
  643. webhooks client 3042786880: New connection
  644. webhooks client 3042786880: Client info {'program': 'Moonraker', 'version': 'v0.7.1-589-g4bed314'}
  645. mcu 'mcu': Timeout on connect
  646. mcu 'mcu': Wait for identify_response
  647. Traceback (most recent call last):
  648. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  649. params = self.send_with_response(msg, 'identify_response')
  650. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  651. return src.get_response([cmd], self.default_cmd_queue)
  652. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  653. cmd_queue)
  654. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  655. self._error("Serial connection closed")
  656. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  657. raise error(self.warn_prefix + (msg % params))
  658. error: mcu 'mcu': Serial connection closed
  659. Starting Klippy...
  660. Args: ['/home/pi/klipper/klippy/klippy.py', '/home/pi/klipper_config/printer.cfg', '-I', '/tmp/printer', '-l', '/home/pi/klipper_logs/klippy.log', '-a', '/tmp/klippy_uds']
  661. Git version: 'v0.10.0-494-gd3c4ba48'
  662. CPU: 4 core ARMv7 Processor rev 3 (v7l)
  663. Python: '2.7.18 (default, Jul 14 2021, 08:11:37) \n[GCC 10.2.1 20210110]'
  664. Start printer at Tue Jun 21 14:37:23 2022 (1655847443.3 9.0)
  665. ===== Config file =====
  666. [virtual_sdcard]
  667. path = /home/pi/gcode_files
  668.  
  669. [pause_resume]
  670.  
  671. [display_status]
  672.  
  673. [gcode_macro CANCEL_PRINT]
  674. description = Cancel the actual running print
  675. rename_existing = CANCEL_PRINT_BASE
  676. gcode =
  677. TURN_OFF_HEATERS
  678. CANCEL_PRINT_BASE
  679.  
  680. [gcode_macro PAUSE]
  681. description = Pause the actual running print
  682. rename_existing = PAUSE_BASE
  683. variable_extrude = 1.0
  684. gcode =
  685. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  686. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  687. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  688. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  689. {% set act_z = printer.toolhead.position.z|float %}
  690. {% if act_z < (max_z - 2.0) %}
  691. {% set z_safe = 2.0 %}
  692. {% else %}
  693. {% set z_safe = max_z - act_z %}
  694. {% endif %}
  695. PAUSE_BASE
  696. G91
  697. {% if printer.extruder.can_extrude|lower == 'true' %}
  698. G1 E-{E} F2100
  699. {% else %}
  700. {action_respond_info("Extruder not hot enough")}
  701. {% endif %}
  702. {% if "xyz" in printer.toolhead.homed_axes %}
  703. G1 Z{z_safe} F900
  704. G90
  705. G1 X{x_park} Y{y_park} F6000
  706. {% else %}
  707. {action_respond_info("Printer not homed")}
  708. {% endif %}
  709.  
  710. [gcode_macro RESUME]
  711. description = Resume the actual running print
  712. rename_existing = RESUME_BASE
  713. gcode =
  714. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  715. {% if 'VELOCITY' in params|upper %}
  716. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  717. {%else %}
  718. {% set get_params = "" %}
  719. {% endif %}
  720. {% if printer.extruder.can_extrude|lower == 'true' %}
  721. G91
  722. G1 E{E} F2100
  723. {% else %}
  724. {action_respond_info("Extruder not hot enough")}
  725. {% endif %}
  726. RESUME_BASE {get_params}
  727.  
  728. [mcu]
  729. serial = /dev/ttyAMA0
  730. restart_method = command
  731.  
  732. [printer]
  733. kinematics = none
  734. max_velocity = 1000
  735. max_accel = 1000
  736. =======================
  737. mcu 'mcu': Starting serial connect
  738. webhooks client 3043497904: New connection
  739. webhooks client 3043497904: Client info {'program': 'Moonraker', 'version': 'v0.7.1-589-g4bed314'}
  740. mcu 'mcu': Timeout on connect
  741. mcu 'mcu': Wait for identify_response
  742. Traceback (most recent call last):
  743. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  744. params = self.send_with_response(msg, 'identify_response')
  745. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  746. return src.get_response([cmd], self.default_cmd_queue)
  747. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  748. cmd_queue)
  749. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  750. self._error("Serial connection closed")
  751. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  752. raise error(self.warn_prefix + (msg % params))
  753. error: mcu 'mcu': Serial connection closed
  754. mcu 'mcu': Timeout on connect
  755. mcu 'mcu': Wait for identify_response
  756. Traceback (most recent call last):
  757. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  758. params = self.send_with_response(msg, 'identify_response')
  759. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  760. return src.get_response([cmd], self.default_cmd_queue)
  761. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  762. cmd_queue)
  763. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  764. self._error("Serial connection closed")
  765. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  766. raise error(self.warn_prefix + (msg % params))
  767. error: mcu 'mcu': Serial connection closed
  768. mcu 'mcu': Timeout on connect
  769. mcu 'mcu': Wait for identify_response
  770. Traceback (most recent call last):
  771. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  772. params = self.send_with_response(msg, 'identify_response')
  773. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  774. return src.get_response([cmd], self.default_cmd_queue)
  775. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  776. cmd_queue)
  777. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  778. self._error("Serial connection closed")
  779. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  780. raise error(self.warn_prefix + (msg % params))
  781. error: mcu 'mcu': Serial connection closed
  782. mcu 'mcu': Timeout on connect
  783. mcu 'mcu': Wait for identify_response
  784. Traceback (most recent call last):
  785. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  786. params = self.send_with_response(msg, 'identify_response')
  787. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  788. return src.get_response([cmd], self.default_cmd_queue)
  789. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  790. cmd_queue)
  791. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  792. self._error("Serial connection closed")
  793. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  794. raise error(self.warn_prefix + (msg % params))
  795. error: mcu 'mcu': Serial connection closed
  796. mcu 'mcu': Timeout on connect
  797. mcu 'mcu': Wait for identify_response
  798. Traceback (most recent call last):
  799. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  800. params = self.send_with_response(msg, 'identify_response')
  801. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  802. return src.get_response([cmd], self.default_cmd_queue)
  803. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  804. cmd_queue)
  805. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  806. self._error("Serial connection closed")
  807. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  808. raise error(self.warn_prefix + (msg % params))
  809. error: mcu 'mcu': Serial connection closed
  810. mcu 'mcu': Timeout on connect
  811. mcu 'mcu': Wait for identify_response
  812. Traceback (most recent call last):
  813. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  814. params = self.send_with_response(msg, 'identify_response')
  815. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  816. return src.get_response([cmd], self.default_cmd_queue)
  817. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  818. cmd_queue)
  819. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  820. self._error("Serial connection closed")
  821. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  822. raise error(self.warn_prefix + (msg % params))
  823. error: mcu 'mcu': Serial connection closed
  824. mcu 'mcu': Timeout on connect
  825. mcu 'mcu': Wait for identify_response
  826. Traceback (most recent call last):
  827. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  828. params = self.send_with_response(msg, 'identify_response')
  829. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  830. return src.get_response([cmd], self.default_cmd_queue)
  831. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  832. cmd_queue)
  833. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  834. self._error("Serial connection closed")
  835. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  836. raise error(self.warn_prefix + (msg % params))
  837. error: mcu 'mcu': Serial connection closed
  838. mcu 'mcu': Timeout on connect
  839. mcu 'mcu': Wait for identify_response
  840. Traceback (most recent call last):
  841. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  842. params = self.send_with_response(msg, 'identify_response')
  843. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  844. return src.get_response([cmd], self.default_cmd_queue)
  845. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  846. cmd_queue)
  847. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  848. self._error("Serial connection closed")
  849. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  850. raise error(self.warn_prefix + (msg % params))
  851. error: mcu 'mcu': Serial connection closed
  852. mcu 'mcu': Timeout on connect
  853. mcu 'mcu': Wait for identify_response
  854. Traceback (most recent call last):
  855. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  856. params = self.send_with_response(msg, 'identify_response')
  857. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  858. return src.get_response([cmd], self.default_cmd_queue)
  859. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  860. cmd_queue)
  861. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  862. self._error("Serial connection closed")
  863. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  864. raise error(self.warn_prefix + (msg % params))
  865. error: mcu 'mcu': Serial connection closed
  866. mcu 'mcu': Timeout on connect
  867. mcu 'mcu': Wait for identify_response
  868. Traceback (most recent call last):
  869. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  870. params = self.send_with_response(msg, 'identify_response')
  871. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  872. return src.get_response([cmd], self.default_cmd_queue)
  873. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  874. cmd_queue)
  875. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  876. self._error("Serial connection closed")
  877. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  878. raise error(self.warn_prefix + (msg % params))
  879. error: mcu 'mcu': Serial connection closed
  880. mcu 'mcu': Timeout on connect
  881. mcu 'mcu': Wait for identify_response
  882. Traceback (most recent call last):
  883. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  884. params = self.send_with_response(msg, 'identify_response')
  885. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  886. return src.get_response([cmd], self.default_cmd_queue)
  887. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  888. cmd_queue)
  889. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  890. self._error("Serial connection closed")
  891. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  892. raise error(self.warn_prefix + (msg % params))
  893. error: mcu 'mcu': Serial connection closed
  894. mcu 'mcu': Timeout on connect
  895. mcu 'mcu': Wait for identify_response
  896. Traceback (most recent call last):
  897. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  898. params = self.send_with_response(msg, 'identify_response')
  899. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  900. return src.get_response([cmd], self.default_cmd_queue)
  901. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  902. cmd_queue)
  903. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  904. self._error("Serial connection closed")
  905. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  906. raise error(self.warn_prefix + (msg % params))
  907. error: mcu 'mcu': Serial connection closed
  908. mcu 'mcu': Timeout on connect
  909. mcu 'mcu': Wait for identify_response
  910. Traceback (most recent call last):
  911. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  912. params = self.send_with_response(msg, 'identify_response')
  913. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  914. return src.get_response([cmd], self.default_cmd_queue)
  915. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  916. cmd_queue)
  917. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  918. self._error("Serial connection closed")
  919. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  920. raise error(self.warn_prefix + (msg % params))
  921. error: mcu 'mcu': Serial connection closed
  922. mcu 'mcu': Timeout on connect
  923. mcu 'mcu': Wait for identify_response
  924. Traceback (most recent call last):
  925. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  926. params = self.send_with_response(msg, 'identify_response')
  927. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  928. return src.get_response([cmd], self.default_cmd_queue)
  929. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  930. cmd_queue)
  931. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  932. self._error("Serial connection closed")
  933. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  934. raise error(self.warn_prefix + (msg % params))
  935. error: mcu 'mcu': Serial connection closed
  936. mcu 'mcu': Timeout on connect
  937. mcu 'mcu': Wait for identify_response
  938. Traceback (most recent call last):
  939. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  940. params = self.send_with_response(msg, 'identify_response')
  941. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  942. return src.get_response([cmd], self.default_cmd_queue)
  943. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  944. cmd_queue)
  945. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  946. self._error("Serial connection closed")
  947. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  948. raise error(self.warn_prefix + (msg % params))
  949. error: mcu 'mcu': Serial connection closed
  950. mcu 'mcu': Timeout on connect
  951. mcu 'mcu': Wait for identify_response
  952. Traceback (most recent call last):
  953. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  954. params = self.send_with_response(msg, 'identify_response')
  955. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  956. return src.get_response([cmd], self.default_cmd_queue)
  957. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  958. cmd_queue)
  959. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  960. self._error("Serial connection closed")
  961. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  962. raise error(self.warn_prefix + (msg % params))
  963. error: mcu 'mcu': Serial connection closed
  964. mcu 'mcu': Timeout on connect
  965. mcu 'mcu': Wait for identify_response
  966. Traceback (most recent call last):
  967. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  968. params = self.send_with_response(msg, 'identify_response')
  969. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  970. return src.get_response([cmd], self.default_cmd_queue)
  971. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  972. cmd_queue)
  973. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  974. self._error("Serial connection closed")
  975. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  976. raise error(self.warn_prefix + (msg % params))
  977. error: mcu 'mcu': Serial connection closed
  978. mcu 'mcu': Timeout on connect
  979. MCU error during connect
  980. Traceback (most recent call last):
  981. File "/home/pi/klipper/klippy/klippy.py", line 176, in _connect
  982. self.send_event("klippy:mcu_identify")
  983. File "/home/pi/klipper/klippy/klippy.py", line 264, in send_event
  984. return [cb(*params) for cb in self.event_handlers.get(event, [])]
  985. File "/home/pi/klipper/klippy/mcu.py", line 779, in _mcu_identify
  986. raise error(str(e))
  987. error: mcu 'mcu': Unable to connect
  988. Build file /home/pi/klipper/klippy/../.config(2447): Tue Jun 21 14:30:10 2022
  989. ========= Last MCU build config =========
  990. CONFIG_LOW_LEVEL_OPTIONS=y
  991. # CONFIG_MACH_AVR is not set
  992. # CONFIG_MACH_ATSAM is not set
  993. # CONFIG_MACH_ATSAMD is not set
  994. # CONFIG_MACH_LPC176X is not set
  995. CONFIG_MACH_STM32=y
  996. # CONFIG_MACH_RP2040 is not set
  997. # CONFIG_MACH_PRU is not set
  998. # CONFIG_MACH_LINUX is not set
  999. # CONFIG_MACH_SIMU is not set
  1000. CONFIG_BOARD_DIRECTORY="stm32"
  1001. CONFIG_MCU="stm32f446xx"
  1002. CONFIG_CLOCK_FREQ=180000000
  1003. CONFIG_SERIAL=y
  1004. CONFIG_FLASH_START=0x8008000
  1005. CONFIG_FLASH_SIZE=0x80000
  1006. CONFIG_RAM_START=0x20000000
  1007. CONFIG_RAM_SIZE=0x20000
  1008. CONFIG_STACK_SIZE=512
  1009. CONFIG_STM32_SELECT=y
  1010. # CONFIG_MACH_STM32F103 is not set
  1011. # CONFIG_MACH_STM32F207 is not set
  1012. # CONFIG_MACH_STM32F401 is not set
  1013. # CONFIG_MACH_STM32F405 is not set
  1014. # CONFIG_MACH_STM32F407 is not set
  1015. # CONFIG_MACH_STM32F429 is not set
  1016. CONFIG_MACH_STM32F446=y
  1017. # CONFIG_MACH_STM32F031 is not set
  1018. # CONFIG_MACH_STM32F042 is not set
  1019. # CONFIG_MACH_STM32F070 is not set
  1020. # CONFIG_MACH_STM32F072 is not set
  1021. # CONFIG_MACH_STM32G0B1 is not set
  1022. # CONFIG_MACH_STM32H743 is not set
  1023. # CONFIG_MACH_STM32H750 is not set
  1024. CONFIG_MACH_STM32F4=y
  1025. CONFIG_HAVE_STM32_USBOTG=y
  1026. CONFIG_HAVE_STM32_CANBUS=y
  1027. CONFIG_STM32_FLASH_START_8000=y
  1028. # CONFIG_STM32_FLASH_START_10000 is not set
  1029. # CONFIG_STM32_FLASH_START_0000 is not set
  1030. # CONFIG_STM32_CLOCK_REF_8M is not set
  1031. CONFIG_STM32_CLOCK_REF_12M=y
  1032. # CONFIG_STM32_CLOCK_REF_16M is not set
  1033. # CONFIG_STM32_CLOCK_REF_25M is not set
  1034. # CONFIG_STM32_CLOCK_REF_INTERNAL is not set
  1035. CONFIG_CLOCK_REF_FREQ=12000000
  1036. CONFIG_STM32F0_TRIM=16
  1037. # CONFIG_STM32_USB_PA11_PA12 is not set
  1038. # CONFIG_STM32_SERIAL_USART1 is not set
  1039. # CONFIG_STM32_SERIAL_USART1_ALT_PB7_PB6 is not set
  1040. # CONFIG_STM32_SERIAL_USART2 is not set
  1041. CONFIG_STM32_SERIAL_USART2_ALT_PD6_PD5=y
  1042. # CONFIG_STM32_SERIAL_USART3 is not set
  1043. # CONFIG_STM32_SERIAL_USART3_ALT_PD9_PD8 is not set
  1044. # CONFIG_STM32_CANBUS_PA11_PA12 is not set
  1045. # CONFIG_STM32_CANBUS_PB8_PB9 is not set
  1046. # CONFIG_STM32_CANBUS_PI9_PH13 is not set
  1047. # CONFIG_STM32_CANBUS_PB5_PB6 is not set
  1048. # CONFIG_STM32_CANBUS_PB12_PB13 is not set
  1049. # CONFIG_STM32_CANBUS_PD0_PD1 is not set
  1050. CONFIG_SERIAL_BAUD=250000
  1051. CONFIG_USB_VENDOR_ID=0x1d50
  1052. CONFIG_USB_DEVICE_ID=0x614e
  1053. CONFIG_USB_SERIAL_NUMBER="12345"
  1054. CONFIG_CANBUS_FREQUENCY=500000
  1055. CONFIG_INITIAL_PINS=""
  1056. CONFIG_HAVE_GPIO=y
  1057. CONFIG_HAVE_GPIO_ADC=y
  1058. CONFIG_HAVE_GPIO_SPI=y
  1059. CONFIG_HAVE_GPIO_I2C=y
  1060. CONFIG_HAVE_GPIO_HARD_PWM=y
  1061. CONFIG_HAVE_GPIO_BITBANGING=y
  1062. CONFIG_HAVE_STRICT_TIMING=y
  1063. CONFIG_HAVE_CHIPID=y
  1064. CONFIG_HAVE_STEPPER_BOTH_EDGE=y
  1065. CONFIG_INLINE_STEPPER_HACK=y
  1066. =======================
  1067. Build file /home/pi/klipper/klippy/../out/klipper.dict(7769): Tue Jun 21 14:30:26 2022
  1068. Last MCU build version: v0.10.0-494-gd3c4ba48
  1069. Last MCU build tools: gcc: (15:8-2019-q3-1+b1) 8.3.1 20190703 (release) [gcc-8-branch revision 273027] binutils: (2.34-4+rpi1+14) 2.34
  1070. Last MCU build config: BUS_PINS_i2c1=PB6,PB7 RECEIVE_WINDOW=192 BUS_PINS_i2c3=PA8,PC9 BUS_PINS_i2c2=PB10,PB11 BUS_PINS_spi3a=PC11,PC12,PC10 RESERVE_PINS_serial=PD6,PD5 BUS_PINS_spi2a=PC2,PC3,PB10 BUS_PINS_i2c1a=PB8,PB9 RESERVE_PINS_crystal=PH0,PH1 STEPPER_BOTH_EDGE=1 SERIAL_BAUD=250000 ADC_MAX=4095 BUS_PINS_spi4=PE13,PE14,PE12 BUS_PINS_spi3=PB4,PB5,PB3 BUS_PINS_spi2=PB14,PB15,PB13 BUS_PINS_spi1=PA6,PA7,PA5 PWM_MAX=255 MCU=stm32f446xx STATS_SUMSQ_BASE=256 BUS_PINS_spi1a=PB4,PB5,PB3 CLOCK_FREQ=180000000
  1071. Build file /home/pi/klipper/klippy/../out/klipper.elf(1189532): Tue Jun 21 14:30:33 2022
  1072. mcu 'mcu': Wait for identify_response
  1073. Traceback (most recent call last):
  1074. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1075. params = self.send_with_response(msg, 'identify_response')
  1076. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1077. return src.get_response([cmd], self.default_cmd_queue)
  1078. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1079. cmd_queue)
  1080. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1081. self._error("Serial connection closed")
  1082. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1083. raise error(self.warn_prefix + (msg % params))
  1084. error: mcu 'mcu': Serial connection closed
  1085. Starting Klippy...
  1086. Args: ['/home/pi/klipper/klippy/klippy.py', '/home/pi/klipper_config/printer.cfg', '-I', '/tmp/printer', '-l', '/home/pi/klipper_logs/klippy.log', '-a', '/tmp/klippy_uds']
  1087. Git version: 'v0.10.0-494-gd3c4ba48'
  1088. CPU: 4 core ARMv7 Processor rev 3 (v7l)
  1089. Python: '2.7.18 (default, Jul 14 2021, 08:11:37) \n[GCC 10.2.1 20210110]'
  1090. Start printer at Tue Jun 21 14:41:47 2022 (1655847707.8 9.0)
  1091. ===== Config file =====
  1092. [virtual_sdcard]
  1093. path = /home/pi/gcode_files
  1094.  
  1095. [pause_resume]
  1096.  
  1097. [display_status]
  1098.  
  1099. [gcode_macro CANCEL_PRINT]
  1100. description = Cancel the actual running print
  1101. rename_existing = CANCEL_PRINT_BASE
  1102. gcode =
  1103. TURN_OFF_HEATERS
  1104. CANCEL_PRINT_BASE
  1105.  
  1106. [gcode_macro PAUSE]
  1107. description = Pause the actual running print
  1108. rename_existing = PAUSE_BASE
  1109. variable_extrude = 1.0
  1110. gcode =
  1111. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  1112. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  1113. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  1114. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  1115. {% set act_z = printer.toolhead.position.z|float %}
  1116. {% if act_z < (max_z - 2.0) %}
  1117. {% set z_safe = 2.0 %}
  1118. {% else %}
  1119. {% set z_safe = max_z - act_z %}
  1120. {% endif %}
  1121. PAUSE_BASE
  1122. G91
  1123. {% if printer.extruder.can_extrude|lower == 'true' %}
  1124. G1 E-{E} F2100
  1125. {% else %}
  1126. {action_respond_info("Extruder not hot enough")}
  1127. {% endif %}
  1128. {% if "xyz" in printer.toolhead.homed_axes %}
  1129. G1 Z{z_safe} F900
  1130. G90
  1131. G1 X{x_park} Y{y_park} F6000
  1132. {% else %}
  1133. {action_respond_info("Printer not homed")}
  1134. {% endif %}
  1135.  
  1136. [gcode_macro RESUME]
  1137. description = Resume the actual running print
  1138. rename_existing = RESUME_BASE
  1139. gcode =
  1140. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  1141. {% if 'VELOCITY' in params|upper %}
  1142. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  1143. {%else %}
  1144. {% set get_params = "" %}
  1145. {% endif %}
  1146. {% if printer.extruder.can_extrude|lower == 'true' %}
  1147. G91
  1148. G1 E{E} F2100
  1149. {% else %}
  1150. {action_respond_info("Extruder not hot enough")}
  1151. {% endif %}
  1152. RESUME_BASE {get_params}
  1153.  
  1154. [mcu]
  1155. serial = /dev/ttyAMA0
  1156. restart_method = command
  1157.  
  1158. [printer]
  1159. kinematics = none
  1160. max_velocity = 1000
  1161. max_accel = 1000
  1162. =======================
  1163. mcu 'mcu': Starting serial connect
  1164. webhooks client 3042879088: New connection
  1165. webhooks client 3042879088: Client info {'program': 'Moonraker', 'version': 'v0.7.1-589-g4bed314'}
  1166. mcu 'mcu': Timeout on connect
  1167. mcu 'mcu': Wait for identify_response
  1168. Traceback (most recent call last):
  1169. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1170. params = self.send_with_response(msg, 'identify_response')
  1171. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1172. return src.get_response([cmd], self.default_cmd_queue)
  1173. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1174. cmd_queue)
  1175. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1176. self._error("Serial connection closed")
  1177. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1178. raise error(self.warn_prefix + (msg % params))
  1179. error: mcu 'mcu': Serial connection closed
  1180. mcu 'mcu': Timeout on connect
  1181. mcu 'mcu': Wait for identify_response
  1182. Traceback (most recent call last):
  1183. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1184. params = self.send_with_response(msg, 'identify_response')
  1185. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1186. return src.get_response([cmd], self.default_cmd_queue)
  1187. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1188. cmd_queue)
  1189. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1190. self._error("Serial connection closed")
  1191. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1192. raise error(self.warn_prefix + (msg % params))
  1193. error: mcu 'mcu': Serial connection closed
  1194. mcu 'mcu': Timeout on connect
  1195. mcu 'mcu': Wait for identify_response
  1196. Traceback (most recent call last):
  1197. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1198. params = self.send_with_response(msg, 'identify_response')
  1199. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1200. return src.get_response([cmd], self.default_cmd_queue)
  1201. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1202. cmd_queue)
  1203. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1204. self._error("Serial connection closed")
  1205. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1206. raise error(self.warn_prefix + (msg % params))
  1207. error: mcu 'mcu': Serial connection closed
  1208. mcu 'mcu': Timeout on connect
  1209. mcu 'mcu': Wait for identify_response
  1210. Traceback (most recent call last):
  1211. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1212. params = self.send_with_response(msg, 'identify_response')
  1213. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1214. return src.get_response([cmd], self.default_cmd_queue)
  1215. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1216. cmd_queue)
  1217. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1218. self._error("Serial connection closed")
  1219. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1220. raise error(self.warn_prefix + (msg % params))
  1221. error: mcu 'mcu': Serial connection closed
  1222. mcu 'mcu': Timeout on connect
  1223. mcu 'mcu': Wait for identify_response
  1224. Traceback (most recent call last):
  1225. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1226. params = self.send_with_response(msg, 'identify_response')
  1227. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1228. return src.get_response([cmd], self.default_cmd_queue)
  1229. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1230. cmd_queue)
  1231. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1232. self._error("Serial connection closed")
  1233. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1234. raise error(self.warn_prefix + (msg % params))
  1235. error: mcu 'mcu': Serial connection closed
  1236. mcu 'mcu': Timeout on connect
  1237. mcu 'mcu': Wait for identify_response
  1238. Traceback (most recent call last):
  1239. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1240. params = self.send_with_response(msg, 'identify_response')
  1241. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1242. return src.get_response([cmd], self.default_cmd_queue)
  1243. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1244. cmd_queue)
  1245. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1246. self._error("Serial connection closed")
  1247. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1248. raise error(self.warn_prefix + (msg % params))
  1249. error: mcu 'mcu': Serial connection closed
  1250. mcu 'mcu': Timeout on connect
  1251. mcu 'mcu': Wait for identify_response
  1252. Traceback (most recent call last):
  1253. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1254. params = self.send_with_response(msg, 'identify_response')
  1255. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1256. return src.get_response([cmd], self.default_cmd_queue)
  1257. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1258. cmd_queue)
  1259. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1260. self._error("Serial connection closed")
  1261. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1262. raise error(self.warn_prefix + (msg % params))
  1263. error: mcu 'mcu': Serial connection closed
  1264. mcu 'mcu': Timeout on connect
  1265. mcu 'mcu': Wait for identify_response
  1266. Traceback (most recent call last):
  1267. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1268. params = self.send_with_response(msg, 'identify_response')
  1269. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1270. return src.get_response([cmd], self.default_cmd_queue)
  1271. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1272. cmd_queue)
  1273. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1274. self._error("Serial connection closed")
  1275. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1276. raise error(self.warn_prefix + (msg % params))
  1277. error: mcu 'mcu': Serial connection closed
  1278. mcu 'mcu': Timeout on connect
  1279. mcu 'mcu': Wait for identify_response
  1280. Traceback (most recent call last):
  1281. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1282. params = self.send_with_response(msg, 'identify_response')
  1283. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1284. return src.get_response([cmd], self.default_cmd_queue)
  1285. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1286. cmd_queue)
  1287. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1288. self._error("Serial connection closed")
  1289. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1290. raise error(self.warn_prefix + (msg % params))
  1291. error: mcu 'mcu': Serial connection closed
  1292. mcu 'mcu': Timeout on connect
  1293. mcu 'mcu': Wait for identify_response
  1294. Traceback (most recent call last):
  1295. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1296. params = self.send_with_response(msg, 'identify_response')
  1297. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1298. return src.get_response([cmd], self.default_cmd_queue)
  1299. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1300. cmd_queue)
  1301. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1302. self._error("Serial connection closed")
  1303. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1304. raise error(self.warn_prefix + (msg % params))
  1305. error: mcu 'mcu': Serial connection closed
  1306. mcu 'mcu': Timeout on connect
  1307. mcu 'mcu': Wait for identify_response
  1308. Traceback (most recent call last):
  1309. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1310. params = self.send_with_response(msg, 'identify_response')
  1311. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1312. return src.get_response([cmd], self.default_cmd_queue)
  1313. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1314. cmd_queue)
  1315. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1316. self._error("Serial connection closed")
  1317. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1318. raise error(self.warn_prefix + (msg % params))
  1319. error: mcu 'mcu': Serial connection closed
  1320. mcu 'mcu': Timeout on connect
  1321. mcu 'mcu': Wait for identify_response
  1322. Traceback (most recent call last):
  1323. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1324. params = self.send_with_response(msg, 'identify_response')
  1325. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1326. return src.get_response([cmd], self.default_cmd_queue)
  1327. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1328. cmd_queue)
  1329. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1330. self._error("Serial connection closed")
  1331. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1332. raise error(self.warn_prefix + (msg % params))
  1333. error: mcu 'mcu': Serial connection closed
  1334. mcu 'mcu': Timeout on connect
  1335. mcu 'mcu': Wait for identify_response
  1336. Traceback (most recent call last):
  1337. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1338. params = self.send_with_response(msg, 'identify_response')
  1339. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1340. return src.get_response([cmd], self.default_cmd_queue)
  1341. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1342. cmd_queue)
  1343. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1344. self._error("Serial connection closed")
  1345. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1346. raise error(self.warn_prefix + (msg % params))
  1347. error: mcu 'mcu': Serial connection closed
  1348. mcu 'mcu': Timeout on connect
  1349. mcu 'mcu': Wait for identify_response
  1350. Traceback (most recent call last):
  1351. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1352. params = self.send_with_response(msg, 'identify_response')
  1353. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1354. return src.get_response([cmd], self.default_cmd_queue)
  1355. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1356. cmd_queue)
  1357. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1358. self._error("Serial connection closed")
  1359. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1360. raise error(self.warn_prefix + (msg % params))
  1361. error: mcu 'mcu': Serial connection closed
  1362. mcu 'mcu': Timeout on connect
  1363. mcu 'mcu': Wait for identify_response
  1364. Traceback (most recent call last):
  1365. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1366. params = self.send_with_response(msg, 'identify_response')
  1367. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1368. return src.get_response([cmd], self.default_cmd_queue)
  1369. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1370. cmd_queue)
  1371. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1372. self._error("Serial connection closed")
  1373. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1374. raise error(self.warn_prefix + (msg % params))
  1375. error: mcu 'mcu': Serial connection closed
  1376. mcu 'mcu': Timeout on connect
  1377. mcu 'mcu': Wait for identify_response
  1378. Traceback (most recent call last):
  1379. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1380. params = self.send_with_response(msg, 'identify_response')
  1381. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1382. return src.get_response([cmd], self.default_cmd_queue)
  1383. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1384. cmd_queue)
  1385. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1386. self._error("Serial connection closed")
  1387. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1388. raise error(self.warn_prefix + (msg % params))
  1389. error: mcu 'mcu': Serial connection closed
  1390. mcu 'mcu': Timeout on connect
  1391. mcu 'mcu': Wait for identify_response
  1392. Traceback (most recent call last):
  1393. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1394. params = self.send_with_response(msg, 'identify_response')
  1395. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1396. return src.get_response([cmd], self.default_cmd_queue)
  1397. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1398. cmd_queue)
  1399. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1400. self._error("Serial connection closed")
  1401. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1402. raise error(self.warn_prefix + (msg % params))
  1403. error: mcu 'mcu': Serial connection closed
  1404. mcu 'mcu': Timeout on connect
  1405. MCU error during connect
  1406. Traceback (most recent call last):
  1407. File "/home/pi/klipper/klippy/klippy.py", line 176, in _connect
  1408. self.send_event("klippy:mcu_identify")
  1409. File "/home/pi/klipper/klippy/klippy.py", line 264, in send_event
  1410. return [cb(*params) for cb in self.event_handlers.get(event, [])]
  1411. File "/home/pi/klipper/klippy/mcu.py", line 779, in _mcu_identify
  1412. raise error(str(e))
  1413. error: mcu 'mcu': Unable to connect
  1414. Build file /home/pi/klipper/klippy/../.config(2447): Tue Jun 21 14:30:10 2022
  1415. ========= Last MCU build config =========
  1416. CONFIG_LOW_LEVEL_OPTIONS=y
  1417. # CONFIG_MACH_AVR is not set
  1418. # CONFIG_MACH_ATSAM is not set
  1419. # CONFIG_MACH_ATSAMD is not set
  1420. # CONFIG_MACH_LPC176X is not set
  1421. CONFIG_MACH_STM32=y
  1422. # CONFIG_MACH_RP2040 is not set
  1423. # CONFIG_MACH_PRU is not set
  1424. # CONFIG_MACH_LINUX is not set
  1425. # CONFIG_MACH_SIMU is not set
  1426. CONFIG_BOARD_DIRECTORY="stm32"
  1427. CONFIG_MCU="stm32f446xx"
  1428. CONFIG_CLOCK_FREQ=180000000
  1429. CONFIG_SERIAL=y
  1430. CONFIG_FLASH_START=0x8008000
  1431. CONFIG_FLASH_SIZE=0x80000
  1432. CONFIG_RAM_START=0x20000000
  1433. CONFIG_RAM_SIZE=0x20000
  1434. CONFIG_STACK_SIZE=512
  1435. CONFIG_STM32_SELECT=y
  1436. # CONFIG_MACH_STM32F103 is not set
  1437. # CONFIG_MACH_STM32F207 is not set
  1438. # CONFIG_MACH_STM32F401 is not set
  1439. # CONFIG_MACH_STM32F405 is not set
  1440. # CONFIG_MACH_STM32F407 is not set
  1441. # CONFIG_MACH_STM32F429 is not set
  1442. CONFIG_MACH_STM32F446=y
  1443. # CONFIG_MACH_STM32F031 is not set
  1444. # CONFIG_MACH_STM32F042 is not set
  1445. # CONFIG_MACH_STM32F070 is not set
  1446. # CONFIG_MACH_STM32F072 is not set
  1447. # CONFIG_MACH_STM32G0B1 is not set
  1448. # CONFIG_MACH_STM32H743 is not set
  1449. # CONFIG_MACH_STM32H750 is not set
  1450. CONFIG_MACH_STM32F4=y
  1451. CONFIG_HAVE_STM32_USBOTG=y
  1452. CONFIG_HAVE_STM32_CANBUS=y
  1453. CONFIG_STM32_FLASH_START_8000=y
  1454. # CONFIG_STM32_FLASH_START_10000 is not set
  1455. # CONFIG_STM32_FLASH_START_0000 is not set
  1456. # CONFIG_STM32_CLOCK_REF_8M is not set
  1457. CONFIG_STM32_CLOCK_REF_12M=y
  1458. # CONFIG_STM32_CLOCK_REF_16M is not set
  1459. # CONFIG_STM32_CLOCK_REF_25M is not set
  1460. # CONFIG_STM32_CLOCK_REF_INTERNAL is not set
  1461. CONFIG_CLOCK_REF_FREQ=12000000
  1462. CONFIG_STM32F0_TRIM=16
  1463. # CONFIG_STM32_USB_PA11_PA12 is not set
  1464. # CONFIG_STM32_SERIAL_USART1 is not set
  1465. # CONFIG_STM32_SERIAL_USART1_ALT_PB7_PB6 is not set
  1466. # CONFIG_STM32_SERIAL_USART2 is not set
  1467. CONFIG_STM32_SERIAL_USART2_ALT_PD6_PD5=y
  1468. # CONFIG_STM32_SERIAL_USART3 is not set
  1469. # CONFIG_STM32_SERIAL_USART3_ALT_PD9_PD8 is not set
  1470. # CONFIG_STM32_CANBUS_PA11_PA12 is not set
  1471. # CONFIG_STM32_CANBUS_PB8_PB9 is not set
  1472. # CONFIG_STM32_CANBUS_PI9_PH13 is not set
  1473. # CONFIG_STM32_CANBUS_PB5_PB6 is not set
  1474. # CONFIG_STM32_CANBUS_PB12_PB13 is not set
  1475. # CONFIG_STM32_CANBUS_PD0_PD1 is not set
  1476. CONFIG_SERIAL_BAUD=250000
  1477. CONFIG_USB_VENDOR_ID=0x1d50
  1478. CONFIG_USB_DEVICE_ID=0x614e
  1479. CONFIG_USB_SERIAL_NUMBER="12345"
  1480. CONFIG_CANBUS_FREQUENCY=500000
  1481. CONFIG_INITIAL_PINS=""
  1482. CONFIG_HAVE_GPIO=y
  1483. CONFIG_HAVE_GPIO_ADC=y
  1484. CONFIG_HAVE_GPIO_SPI=y
  1485. CONFIG_HAVE_GPIO_I2C=y
  1486. CONFIG_HAVE_GPIO_HARD_PWM=y
  1487. CONFIG_HAVE_GPIO_BITBANGING=y
  1488. CONFIG_HAVE_STRICT_TIMING=y
  1489. CONFIG_HAVE_CHIPID=y
  1490. CONFIG_HAVE_STEPPER_BOTH_EDGE=y
  1491. CONFIG_INLINE_STEPPER_HACK=y
  1492. =======================
  1493. Build file /home/pi/klipper/klippy/../out/klipper.dict(7769): Tue Jun 21 14:30:26 2022
  1494. Last MCU build version: v0.10.0-494-gd3c4ba48
  1495. Last MCU build tools: gcc: (15:8-2019-q3-1+b1) 8.3.1 20190703 (release) [gcc-8-branch revision 273027] binutils: (2.34-4+rpi1+14) 2.34
  1496. Last MCU build config: BUS_PINS_i2c1=PB6,PB7 RECEIVE_WINDOW=192 BUS_PINS_i2c3=PA8,PC9 BUS_PINS_i2c2=PB10,PB11 BUS_PINS_spi3a=PC11,PC12,PC10 RESERVE_PINS_serial=PD6,PD5 BUS_PINS_spi2a=PC2,PC3,PB10 BUS_PINS_i2c1a=PB8,PB9 RESERVE_PINS_crystal=PH0,PH1 STEPPER_BOTH_EDGE=1 SERIAL_BAUD=250000 ADC_MAX=4095 BUS_PINS_spi4=PE13,PE14,PE12 BUS_PINS_spi3=PB4,PB5,PB3 BUS_PINS_spi2=PB14,PB15,PB13 BUS_PINS_spi1=PA6,PA7,PA5 PWM_MAX=255 MCU=stm32f446xx STATS_SUMSQ_BASE=256 BUS_PINS_spi1a=PB4,PB5,PB3 CLOCK_FREQ=180000000
  1497. Build file /home/pi/klipper/klippy/../out/klipper.elf(1189532): Tue Jun 21 14:30:33 2022
  1498. mcu 'mcu': Wait for identify_response
  1499. Traceback (most recent call last):
  1500. File "/home/pi/klipper/klippy/serialhdl.py", line 69, in _get_identify_data
  1501. params = self.send_with_response(msg, 'identify_response')
  1502. File "/home/pi/klipper/klippy/serialhdl.py", line 258, in send_with_response
  1503. return src.get_response([cmd], self.default_cmd_queue)
  1504. File "/home/pi/klipper/klippy/serialhdl.py", line 316, in get_response
  1505. cmd_queue)
  1506. File "/home/pi/klipper/klippy/serialhdl.py", line 250, in raw_send_wait_ack
  1507. self._error("Serial connection closed")
  1508. File "/home/pi/klipper/klippy/serialhdl.py", line 62, in _error
  1509. raise error(self.warn_prefix + (msg % params))
  1510. error: mcu 'mcu': Serial connection closed
  1511.  
Advertisement
Add Comment
Please, Sign In to add comment