Skip to content

Conversation

@heinwessels-philips
Copy link
Contributor

@heinwessels-philips heinwessels-philips commented Dec 22, 2025

Adds basic deduction of reason reason and returns a string. This is useful for applications that wants to print the reset reason on boot, and should handle all the different variants of reset reasons by different ST MCUs.

@heinwessels-philips heinwessels-philips requested a review from a team as a code owner December 22, 2025 09:22
@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2025

⚠️MegaLinter analysis: Success with warnings

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 6 0 0 0.34s
✅ CPP clang-format 15 2 0 0 0.55s
✅ CPP cppcheck 15 0 0 0.89s
✅ DOCKERFILE hadolint 1 0 0 0.28s
✅ JSON jsonlint 7 0 0 0.17s
✅ JSON prettier 7 2 0 0 0.86s
⚠️ MARKDOWN markdownlint 6 1 10 0 1.15s
✅ MARKDOWN markdown-table-formatter 6 1 0 0 0.57s
✅ REPOSITORY checkov yes no no 28.14s
✅ REPOSITORY git_diff yes no no 0.17s
✅ REPOSITORY grype yes no no 26.09s
✅ REPOSITORY ls-lint yes no no 0.06s
✅ REPOSITORY secretlint yes no no 41.42s
✅ REPOSITORY syft yes no no 1.23s
✅ REPOSITORY trivy yes no no 6.06s
✅ REPOSITORY trivy-sbom yes no no 1.2s
✅ REPOSITORY trufflehog yes no no 7.83s
⚠️ SPELL lychee 33 1 0 73.71s
✅ YAML prettier 9 1 0 0 0.73s
✅ YAML v8r 9 0 0 4.0s
✅ YAML yamllint 9 0 0 0.43s

Detailed Issues

⚠️ SPELL / lychee - 1 error
[ERROR] http://mcd.rou.st.com/modules.php?name=mcu | Network error: error sending request for url (http://mcd.rou.st.com/modules.php?name=mcu) Maybe a certificate error?
[IGNORED] tcp://localhost:1234/target/echo/programmer | Unsupported: Error creating request client: builder error for url (tcp://localhost:1234/target/echo/programmer)
[TIMEOUT] https://st.com/ | Timeout
📝 Summary
---------------------
🔍 Total..........238
✅ Successful.....235
⏳ Timeouts.........1
🔀 Redirected.......0
👻 Excluded.........0
❓ Unknown..........0
🚫 Errors...........1

Errors in .github/ISSUE_TEMPLATE/add-or-update-hal-driver.md
[ERROR] http://mcd.rou.st.com/modules.php?name=mcu | Network error: error sending request for url (http://mcd.rou.st.com/modules.php?name=mcu) Maybe a certificate error?

Errors in README.md
[TIMEOUT] https://st.com/ | Timeout
⚠️ MARKDOWN / markdownlint - 10 errors
.github/ISSUE_TEMPLATE/add-or-update-hal-driver.md:10 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "How to import a HAL driver"]
CHANGELOG.md:83 MD024/no-duplicate-heading Multiple headings with the same content [Context: "⚠ BREAKING CHANGES"]
CHANGELOG.md:87 MD024/no-duplicate-heading Multiple headings with the same content [Context: "Features"]
CHANGELOG.md:94 MD024/no-duplicate-heading Multiple headings with the same content [Context: "Bug Fixes"]
CHANGELOG.md:103 MD024/no-duplicate-heading Multiple headings with the same content [Context: "Features"]
CHANGELOG.md:122 MD024/no-duplicate-heading Multiple headings with the same content [Context: "Bug Fixes"]
CHANGELOG.md:140 MD024/no-duplicate-heading Multiple headings with the same content [Context: "⚠ BREAKING CHANGES"]
CHANGELOG.md:144 MD024/no-duplicate-heading Multiple headings with the same content [Context: "Features"]
CHANGELOG.md:151 MD024/no-duplicate-heading Multiple headings with the same content [Context: "Features"]
CHANGELOG.md:162 MD024/no-duplicate-heading Multiple headings with the same content [Context: "Bug Fixes"]

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx [email protected] --custom-flavor-setup --custom-flavor-linters ACTION_ACTIONLINT,CPP_CPPCHECK,CPP_CLANG_FORMAT,DOCKERFILE_HADOLINT,JSON_JSONLINT,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_CHECKOV,REPOSITORY_GIT_DIFF,REPOSITORY_GRYPE,REPOSITORY_LS_LINT,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY,REPOSITORY_TRIVY_SBOM,REPOSITORY_TRUFFLEHOG,SPELL_LYCHEE,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

MegaLinter is graciously provided by OX Security

@heinwessels-philips heinwessels-philips changed the title feat: add reset reason feat: add reset reason string Dec 22, 2025
@heinwessels-philips heinwessels-philips merged commit 5487665 into main Dec 22, 2025
25 of 26 checks passed
@heinwessels-philips heinwessels-philips deleted the feature/reset-reason branch December 22, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants