Flaviu Tamas 5d3d32b116 Fix frequent null-pointer errors (#49)
I was frequently seeing the following and a reboot:

Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x4008ae2d  PS      : 0x00060330  A0      : 0x800d3fd9  A1      : 0x3ffe15f0
A2      : 0x3ffc40e8  A3      : 0x00000000  A4      : 0x000000ff  A5      : 0x0000ff00
A6      : 0x00ff0000  A7      : 0xff000000  A8      : 0x00000000  A9      : 0x3ffe15c0
A10     : 0x3ffc40e8  A11     : 0x3f40035d  A12     : 0x3ffe16a0  A13     : 0x000004b0
A14     : 0x7ff00000  A15     : 0x7ff2c000  SAR     : 0x0000001d  EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000  LBEG    : 0x4008ae2d  LEND    : 0x4008ae41  LCOUNT  : 0xffffffff

Backtrace: 0x4008ae2a:0x3ffe15f0 0x400d3fd6:0x3ffe1600 0x400d42d3:0x3ffe18f0

decoded:

0x4008acbc: strcmp at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/machine/xtensa/strcmp.S:467
0x400d4145: fetch_printer_data() at /home/user/tmp/CYD-Klipper/CYD-Klipper/src/core/data_setup.cpp:180
0x400d42d3: data_loop_background(void*) at /home/user/tmp/CYD-Klipper/CYD-Klipper/src/core/data_setup.cpp:233 (discriminator 1)

Seems like the printer state was frequently ending up as null, so check
for that and return a reasonable response. After applying this patch,
things are stable for me.
2024-02-19 21:26:22 +01:00
2024-02-09 21:44:21 +01:00
A
2024-02-09 22:12:51 +01:00
2024-02-09 17:47:29 +01:00
2023-11-11 21:44:23 +01:00

GitHub release (with filter) Donations

CYD-Klipper

An implementation of a wireless Klipper status display on an ESP32 + screen. Uses Moonraker to fetch data.

A simple and cheap solution to use a dedicated screen with Klipper, a 3d printing Firmware.

showcase_image

Required hardware

A ESP32-2432S028R is required to run this project. You can find out where to buy these on the "ESP32 Cheap Yellow Display" repository.

Features

  • View printer status
  • View print progress and print statistics
  • Start a print
  • (When the printer is idle) move the printer
  • (During a print) set fan speed, flow rate, speed and z offset
  • Manage temperature
  • Extrude/Retract filament
  • Execute predefined gcode macros
  • Toggle Moonraker power devices

Install

There is a web-based installer available. This is only supported on Chrome, Edge or Opera, and only on Desktop.

On initial install, all data should be wiped. On updates, data should be able to be kept without issues.

There are no 'over the air' updates. Each update has to be applied manually.

Screenshots

(Quite literally shots of the screen. I'm sorry)

- -
1 2
3 4
5 6
7 8
9 10

Credits

Description
An implementation of a wireless Klipper status display on an ESP32 + screen
Readme GPL-3.0 20 MiB
Languages
C++ 84.6%
C 10.2%
Python 2.9%
HTML 1.7%
Shell 0.5%