I went to Matlab set path and I did a reset to default and made sure I don't have another version of S32 AMMCLIB library but I have the MPC 577xx AMMCLIB mbdt (that I'm using on different projects).
I went to the S function under the mask and I looked at the GFLIB_IntegratorTR_SF_FLT.c file that it was refering to and that's the code that I have :
#if defined(MDL_CHECK_PARAMETERS) && defined(MATLAB_MEX_FILE)
/* Function: mdlCheckParameters ===========================================
* Abstract:
* mdlCheckParameters verifies new parameter settings whenever parameter
* change or are re-evaluated during a simulation. When a simulation is
* running, changes to S-function parameters can occur at any time during
* the simulation loop.
*/
static void mdlCheckParameters(SimStruct *S)
{
/* Check the parameter 1 */
if (EDIT_OK(S, 0)) {
int_T dimsArray[2] = {1, 1};
/* Check the parameter attributes */
ssCheckSFcnParamValueAttribs(S, 0, "P1", DYNAMICALLY_TYPED, 2, dimsArray, 0);
} /* if */
/* Check the parameter 2 */
if (EDIT_OK(S, 1)) {
int_T dimsArray[2] = {1, 1};
/* Check the parameter attributes */
ssCheckSFcnParamValueAttribs(S, 1, "P2", DYNAMICALLY_TYPED, 2, dimsArray, 0);
} /* if */
/* Check the parameter 3 */
if (EDIT_OK(S, 2)) {
int_T dimsArray[2] = {1, 1};
/* Check the parameter attributes */
ssCheckSFcnParamValueAttribs(S, 2, "P3", DYNAMICALLY_TYPED, 2, dimsArray, 0);
} /* if */
/* Check the parameter 4 */
if (EDIT_OK(S, 3)) {
int_T dimsArray[2] = {1, 1};
/* Check the parameter attributes */
ssCheckSFcnParamValueAttribs(S, 3, "P4", DYNAMICALLY_TYPED, 2, dimsArray, 0);
} /* if */
}
#endif
How can I fix the error?
Best regards,
Richard