I have a project where the driver code is generated by HalCoGen 4.05.02. As much as possible, I've been trying to keep my code separate, and avoid having to use the user code sections.
I'm adding self-testing to my application, and I want to use the selftestFailNotification function to know when a test fails. It's defined with #pragma WEAK(selftestFailNotification), but when I make my own function to override it, my function doesn't get called. The one in sys_selftest.c that I'm trying to override, gets called instead.
I've overridden many of the weak symbols in notification.c without any trouble, and they seem to be defined the same way, but for some reason selftestFailNotification isn't behaving the same way.
Is there something I can change in the Symbol Management properties to force my function to override the default one? Is there a reason why I can override weak functions from notification.c, but not from sys_selftest.c?