Contenuto principale

Build Error Due to Unused Callbacks

Issue

If callbacks are enabled for unsupported or unused interrupts, the build can fail due to missing callback definitions. In this case, the generated code expects the callback functions to be defined, even though the corresponding interrupts are not used by the application.

Solution

Disable callbacks for interrupts that are not supported or not used in the model.

If callbacks must remain enabled:

  • Provide explicit definitions for the required callback functions.

  • Use Custom Code blocks to add application-specific implementations of the callbacks.

After defining the callbacks or disabling unused ones, rebuild the model to resolve the build error.