integrating FEE in Simulink

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

integrating FEE in Simulink

234件の閲覧回数
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 返答(返信)

217件の閲覧回数
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 件の賞賛
返信

157件の閲覧回数
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 件の賞賛
返信

193件の閲覧回数
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 件の賞賛
返信