cfsr-decoder
A zero-dependency ARM Cortex-M fault status register decoder for embedded systems students, hobbyists, and firmware engineers.
Whenever an STM32, RP2040, NXP, or SAM microcontroller locks up in an infinite HardFault_Handler loop, the CPU writes the failure cause into the ARM core registers (CFSR, HFSR, BFAR, MMFAR).
Decoding those bitmasks manually from the ARM Architecture Reference Manual is slow. cfsr-decode turns raw hex register dumps into clear, plain-English diagnostics and recovery steps.
Quick Start (Zero Dependencies)
Runs directly with standard Python 3.6+:
# General syntax
python cfsr_decode.py <CFSR_HEX> [BFAR_HEX] [MMFAR_HEX] [HFSR_HEX]
# Try a realistic unaligned access fault
python cfsr_decode.py 0x00010200 0x20001FF7
# View all built-in examples
python cfsr_decode.py --example
Metadata
Release files for cfsr-decoder 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cfsr_decoder-1.1.0.tar.gz | 5.9 kB | Without provenance | Details for cfsr_decoder-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cfsr_decoder-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for cfsr_decoder-1.1.0-py3-none-any.whl |
Total release size: 12.4 kB
Release files / cfsr_decoder-1.1.0.tar.gz
| Download URL | cfsr_decoder-1.1.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b52de239e19393244fb2cfa308cea518a782d3a94e7c2cc1aefb9e86708e9ff4
|
|
BLAKE2b-256 checksum How to use checksums |
f6bc36e08cc1417de8d93fdc925aae72c3886d25c56573eed00d049ced04cf79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.9
|
Release files / cfsr_decoder-1.1.0-py3-none-any.whl
| Download URL | cfsr_decoder-1.1.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
268c0bab5c1353c9b36b161a1af811662a935f4802ad1463576af570d0b6bc4e
|
|
BLAKE2b-256 checksum How to use checksums |
1146e0b4f046daac5b13cd7b1e1e9e18f05589be29b9360fc48f28b7174f06af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.9
|
Security for cfsr-decoder 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.