Loading repository data…
Loading repository data…
Vanderhell / repository
Tiny bare-metal crash dump library for Cortex-M3/M4 — capture on fault, survive reboot, decode offline.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
panicdump is a small retained-RAM crash dump library for bare-metal Cortex-M systems with an offline decoder.
Current release: v2.0.0
Verification status:
bool panicdump_has_valid(void);
const panicdump_dump_t *panicdump_get(void);
void panicdump_clear(void);
panicdump_export_status_t panicdump_export_hex(panicdump_write_char_fn write_char);
panicdump_export_status_t panicdump_boot_check_and_export(panicdump_write_char_fn write_char);
void panicdump_set_user_tag(uint32_t tag);
uint32_t panicdump_get_user_tag(void);
uint32_t panicdump_reason_tag_hash_n(const char *reason_tag, size_t max_len);
void panicdump_trigger_reason(uint32_t reason_tag) PANICDUMP_NORETURN;
void panicdump_trigger_tag(const char *reason_tag, size_t max_len) PANICDUMP_NORETURN;
panicdump_trigger(const char *reason_tag) is provided as a bounded wrapper
around panicdump_trigger_tag(..., PANICDUMP_REASON_TAG_MAX_LEN).
Host build and tests:
cmake -S . -B build -DPANICDUMP_BUILD_TESTS=ON -DPANICDUMP_PORT=host
cmake --build build --config Release
ctest --test-dir build -C Release --output-on-failure
Install and consume as a package:
cmake --install build --prefix .install
cmake -S tests/package_consumer -B build-consumer -DCMAKE_PREFIX_PATH=./.install
cmake --build build-consumer --config Release
python3 tools/decode_panicdump.py dump.bin
python3 tools/decode_panicdump.py --hex uart_capture.txt
python3 tools/decode_panicdump.py --json dump.bin
python3 tools/decode_panicdump.py --verify dump.bin
Python host tests:
python3 -m unittest discover -s tests/host_format_tests -p "test_*.py"
Native C host smoke test:
ctest --test-dir build -C Release --output-on-failure
See CHANGELOG.md for the v2.0.0 release notes and the
preserved v1.0.0 history.
include/ public headerssrc/ core and port sourcesports/cortexm/ Cortex-M assembly entry stubstools/ mock dump generator and decodertests/ Python and native host tests