Hi,NXP
We encountered an issue where a weakly defined interrupt handling function could not be replaced by a strong definition in the library. When we compiled the SDK into a static library and added it to the APP, we found that the CAN0 interrupt handling function could not be strongly defined.
The IDE I am using is S32DS ARM 2.2, the SDK version is 3.0.0, and the compiler version is gcc 6.3.
Below is the situation of my Demo test:
① If I keep the weakly defined interrupt handling functions in the startup, the content of the interrupt vector table will be the weakly defined functions.
image.png② If I comment out the weakly defined interrupt handling functions in the startup, the CAN interrupt handling function can be correctly defined.
image.pngWhat is the reason for this phenomenon? The source files of my test Demo and the files after compiling the static library are attached.