-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to track down task ID's of RX errors? #3081
Comments
You can use I do know that the thread id is just a casted pointer to rtx's TCB structure (here). If you have a debugger connected you can get a hold of some pretty useful information. For example with gdb: set $tcb = (P_TCB)0x1b2b34
# The entry point of the thread
print/a $tcb->ptask
# The current state of the thread
print (Thread::State)$tcb->state
# Recently called function
print/a ((int*)$tcb->tsk_stack)[13]
# Current stack pointer
print/a $tcb->tsk_stack |
I'm guessing that @geky's answer solved your issue so I'll go ahead and close this. Please reopen it if you'd like to continue the discussion! |
Is there a way to log the ID's and reference where this is done of task creation (threads/timers)?
Currently it is hard to track down which task ID runs into a RTX error.
The text was updated successfully, but these errors were encountered: