Part Number: CC2642R
Other Parts Discussed in Thread: SYSCONFIG, SYSBIOS
In SDK 5.10.00.48 it is possible to add a hook function to handle CPU exceptions by editing the TI-RTOS configuration file. This has worked great for us so far.
We are now upgrading to the shiny new SDK 6.40.00.13 and CCS 12.2.0. The manually editable TI-RTOS configuration file is gone, and SYS/BIOS configuration must be done in the SysConfig tool. But it seems that there is no option in SysConfig 1.15.0 where a custom exception hook function could be plugged in.
Furthermore, the TI-RTOS7 source file containing the CPU exception handlers declares the Hwi_excHookFunc pointer as const NULL; thus it's not even possible to work around the issue by installing a hook function in code (see kernel/tirtos7/packages/ti/sysbios/family/arm/m3/Hwi.c, line 136):
const Hwi_ExcHookFunc Hwi_excHookFunc = NULL;
In CC1352P7: Custom exception handler define there is a suggestion to use the error hook function instead. But that is a less-than-ideal solution as the original exception information is not available there.
Short of patching the Hwi.c file manually is there currently any way to install an exception hook function?