Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Accessing Panic Information
Hello,
From my previous discussion in this section " Panic handler in no_std for Aurix ยตC"
I now encountered a string that tells what my info in panic holds, like the file name, line number which caused the issue and the message it carries, which is all stored in an memorรฝ block. Now, in an production, this message is too memory costly to analyse and debug what caused. Like in Autosar environment where we have these enums for DTC's, is there any way to make panic handler provide enum values and then you map them to your table which actually holds these information for the codes.
If you see here, at address 0x800004E8 (length 10 bytes) I have the file information (src/lib.rs) and other information which follows that, what I want to achieve is, instead of string some enum values, so that I can write to NVM block to read it after reset.
Thanks for the help.
Best Regards
Girish
1 post - 1 participant
๐ท๏ธ rust_feed