2390431_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2390431_en-US

2390431_en-US

S32K358 MBDT Referenced Model Build Failure

Hi,

I am using MATLAB R2024b and NXP MBDT for S32K358.

I have a standalone NXP CAN communication model that builds, flashes, and runs correctly on hardware (10 Hz CAN Tx/Rx).

I also have a separate BMS algorithm model (Offline_Test) containing referenced models, state machines, estimators, and fault management logic.

When I integrate the BMS algorithm into the working NXP model and build, MBDT generates a separate configuration folder for a referenced model (BMS_Out_Config) and fails with:

fatal error: Mcl.h: No such file or directory
#include

The error comes from:

Controller/BMS_Out_Config/src/mbdt_board_init.c

while Mcl.h is not generated in:

Controller/BMS_Out_Config/RTD/include

My question is:

Should algorithm-only referenced models have their own hardware configuration/RTD generation?
Or should they inherit the top-level hardware model configuration?
Is there a recommended workflow for integrating large algorithmic referenced models into an existing S32K3 hardware project?

Screenshots of the working NXP model, the BMS algorithm model, and the build error are attached.

Thanks.

Tags (1)
No ratings
Version history
Last update:
16 hours ago
Updated by: