integrating FEE in Simulink

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

integrating FEE in Simulink

231 次查看
KaleRushikesh
Contributor I

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.

0 项奖励
回复
3 回复数

214 次查看
dragostoma
NXP Employee
NXP Employee

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

 

0 项奖励
回复

154 次查看
KaleRushikesh
Contributor I

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?

 

0 项奖励
回复

190 次查看
KaleRushikesh
Contributor I
Hello @dragostoma,
Thank you for your replay. But i am not able to build the model attached with MBDT flash / nvm write freezes program S32K3xx.
Also this model is only using Mem_43_INFLS API's(it is dealing with flash), Actual Fee algorithm is not used.
0 项奖励
回复