Other Parts Discussed in Thread: SYSBIOS, DM3730
Hi all,
I have added a hook function to the "xdc_runtime_Error.raiseHook" in SysBios configuration as below.
xdc_runtime_Error.raiseHook = "&myHook";
Below is my hook function in the source file.
Void myHook(Error_Block *eb)
{
myPrintf("Error_getCode:%d, File:%s, Line:%d", Error_getCode(eb), site->file, site->line);
}
I am not using JTAG and "myPrintf" is a print function to my system log file.
Whenever there is an exception error in SysBios, "myHook()" function is getting called and prints the above print message to my log file.
Below are my issues and questions:
1. I am not getting any print for the variable "site->file". I see that the printed string is an empty string. I read somewhere in SysBios documentation that SysBios intentionally provides empty string to the variable "site->file" to save space. But, I do see the line number of error. Here is my question. Is there a way to enable these file names?
2. Is there any other way to get more information about SysBios error into "myHook" function?. For example, information about which "file and line" in my source file caused the SysBios exception error.
Thanks and Regards,
Syam