Hello NXP MBDT team,
I want to use FEE in Simulink with MBDT 1.5, but there are no FEE-related library blocks available in MBDT 1.5.
Therefore, I plan to call the FEE APIs from a MATLAB Function block.
After configuring FEE, Mem_43_INFLS, and MemAcc, I tried to build a model with just one Digital Input read block. However, I encountered the following error:
"MemIf_Types.h" is missing
If I manually create a new folder in my project, place MemIf_Types.h inside it, and then add the folder path in Model Settings → Custom Code → Include Directories, the error for MemIf_Types.h is resolved.
But then, new errors appear for other header files which already exist in the RTD or generated folders.
Can anyone please help?
Thanks.
Hi, @KaleRushikesh,
Thank you for your interest into Model-Based Design Toolbox for S32K3.
Support for the FEE, Mem_43_INFLS, and MemAcc components has been introduced in the S32K3 1.6.0 release. We strongly recommend using this version of the toolbox, as it provides ready-to-use Simulink blocks and simplifies the setup process compared to implementing custom code.
However, if migrating to the latest version is not feasible at the moment, we suggest reviewing the following thread (MBDT flash / nvm write freezes program S32K3xx) for guidance on properly configuring the FEE component.
Please keep us informed about your progress.
Best regards,
Dragos
Hello NXP MBDT Team,
Now i am able to build the model after integrating the FEE, but now the code execution is get stuck in do .... while loop because of the status return from Fee_GetStatus is MEMIF_UNINIT.
do
{
Fee_MainFunction();
MemAcc_MainFunction();
status = Fee_GetStatus();
} while (status != MEMIF_IDLE);
here is my config .mex file with model. can you please help me?