Hello @j_wale_3,
MBDT Toolbox generates code on top of the S32 SDK for ARM. The FCAN interrupt block from MBDT only installs a callback function in the S32 Driver. This driver is responsible for enabling and implementing the interrupt vector function triggered when an event happened.
You are right: There is no option for setting such interrupt priority. But the Driver does not specify the interrupt priority also.
However, you can set the interrupt priority that you need, by identifying the interrupt vector related to your Message Buffer and you can install some custom code that will set that priority.
Let me give you an example.
Let's assume that you need the CAN0_ORed_12_15_MB_IRQHandler to have priority 10. This interrupt is triggered when a successful transmission or reception occurs on Message Buffers 12-15 dor CAN0. We need to get the interrupt number for this handler the SDK defines if like CAN0_ORed_12_15_MB_IRQn. (In the generated code folder you can find a header file called MPC5744P.h).
SO the line of code you need is the following:
INT_SYS_SetPriority(CAN0_ORed_12_15_MB_IRQn, 10);
To insert it as a custom code You can use the System initialize block from the Simulink Coder library.
Hope this helps,
Marius