os/arch/arm/src, os/include/tinyara/reboot_reason.h: Add specific reboot reasons and improve error tracking#7196
Open
abhinav-s235 wants to merge 1 commit intoSamsung:masterfrom
Open
Conversation
amandeep-samsung
approved these changes
Mar 23, 2026
Contributor
amandeep-samsung
left a comment
There was a problem hiding this comment.
addition of reboot reasons in code having PANIC to help in debugging for reason of system reboot.
| REBOOT_SYSTEM_PERIODIC_REBOOT = 59, /* Periodic reboot */ | ||
| REBOOT_SYSTEM_ASSERT = 60, /* Reboot from ASSERT or PANIC */ | ||
| REBOOT_SYSTEM_INTERRUPT_FAILURE = 61, /* Interrupt handling failure */ | ||
| REBOOT_SYSTEM_SCHEDULER_FAILURE = 62, /* Scheduler/reprioritization failure */ |
Contributor
There was a problem hiding this comment.
Could you add REBOOT_SYSTEM_SCHEDULER_FAILURE, REBOOT_SYSTEM_INTERRUPT_FAILURE into armv7-m and armv7-r also.
…oot reasons and improve error tracking across architectures This commit improves the reboot reason system in TizenRT by adding specific reboot reasons at system failure points where they were previously missing. This enhancement provides better error tracking and debugging capabilities. New reboot reasons added (61-65): - REBOOT_SYSTEM_INTERRUPT_FAILURE (61) - Interrupt handling failures - REBOOT_SYSTEM_SCHEDULER_FAILURE (62) - Scheduler/reprioritization failures - REBOOT_SYSTEM_TASK_START_FAILURE (63) - Task start failures - REBOOT_SYSTEM_PTHREAD_START_FAILURE (64) - Pthread start failures - REBOOT_SYSTEM_STACK_OVERFLOW (65) - Stack overflow detected
5679eb3 to
1f573e5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit improves the reboot reason system in TizenRT by adding specific reboot reasons at system failure points where they were previously missing. This enhancement provides better error tracking and debugging capabilities.
New reboot reasons added (61-65):