I recently installed MBDT 1.5 for the S32K3xx series. I built a simple model to connect the board to FreeMaster over CAN.
I have CAN configured to work at 500Kb and used the FreeMaster Config block to set the mode to long interrupt ( I also tried with short interrupt and polling). I have an initialisation function where I am calling the Can_SetControllerMode function.
I have also tried calling the Can_EnableControllerInterrupts function in the initialisation function.
However, I am not able to connect over CAN through FreeMaster. I get the "error contacting the target" error message.
I am using FreeMaster desktop tool version 3.2.2. For the connection itself, I am using a PEAK CAN device. I have tried connecting a number of PEAK CANs but none connect. The devices themselves aren't faulty because I have tested them with other boards.
I am attaching my model and the mex file for reference (there are some NVM blocks too which are also problematic and I have commented them out).
Can someone help me with this, please?