MarlinFirmware / MarlinFirmware/Marlin

[FR] Write last error code to SD card

Open
#19,082 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

T: Feature Request
Dominant language
C++
Stars
17.6k
Forks
19.7k
Avg merge
3d 5h
Merged PRs (30d)
21

Description

### Description

Hello,
Sorry if there is another thread with another request, but i think, that this one should be helpfull.

Is there any possibility to write last error code or short text as file to SD card log?
If printer has power supply control, there is not much time to read error message before printer turn itself off. Some log on card will give user chance to get error code and hint where is error if print is not finished.

### Feature Workflow

1. Error appears (Thermal runaway or endstop hit during printing, etc.)
2. Printer writes short log file to SD card (1 or 2 lines long file errorlog.txt)
3. Printer shows message on display as usually
4. Printer turns off heaters and shuts down power supply

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files, tests, or entry points are named. Start by locating the existing error-reporting, SD-card, display, and shutdown paths, then determine how a short errorlog.txt can be written before power-down; done means the described error workflow is implemented.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.