Storage Classes for MBDT and Freemaster

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

Storage Classes for MBDT and Freemaster

633 次查看
Sam_ECU
Contributor V

Hello @Irina_Costachescu 

Building of the topic here:

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k344-Simulink-program-variable-issue...

 

What's the recommendation for MBDT for the Signal Classes to enable tuning for Outputs, Parameters and Lookup Tables?

 

Regards,

Sam

0 项奖励
回复
5 回复数

603 次查看
Irina_Costachescu
NXP Employee
NXP Employee

Hello @Sam_ECU 

Could you please provide us more details about the use case you are trying to achieve and the encountered issues (if any)?

In this manner, we could provide specific guidance to address your scenario.

Thanks,

Irina

0 项奖励
回复

574 次查看
Sam_ECU
Contributor V

Hallo @Irina_Costachescu 

Step 1:

Tuning of the variables in Freemaster, but so that the signal names, parameters and lookup table names are as defined in Simulink (eg. Label, rather then Projectname.P_Label).

Incorrect:

Sam_ECU_0-1716718831584.png

 

Step 2:

Generation of A2L file from simulink using the ASAP2 Interface with MBDT for iMXRT to allow tuning with external software such as INCA (with correct definition of addresses etc.).

Sam_ECU_1-1716718915039.png

Sam_ECU_2-1716719039565.png

 

Regards,

Sam

0 项奖励
回复

528 次查看
Sam_ECU
Contributor V

Hello @Irina_Costachescu ,

For Step 1:

I've had good results with:

  • Parameters / Lookup Tables: Exported_Global
  • Signals: Volatile

Is there any reasons not to use these settings?

 

For Step 2:

The function in Matlab ">> rtw.asap2SetAddress('Project_Name.a2l','Project_Name.elf')" updates the generated A2L file from Embedded Coder with the Addresses:

Sam_ECU_0-1717427958697.png

 

0 项奖励
回复

498 次查看
Sam_ECU
Contributor V

Hello @Irina_Costachescu 

These settings and the generated Hex file from the model don't lead to the correct conversion of the iMXRT embedded coder A2L and MBDT Hex.

Any recommendations?

Sam_ECU_0-1718048140064.png

 

0 项奖励
回复

235 次查看
Sam_ECU
Contributor V

Hello @Irina_Costachescu 

Any chance of further assistance?

0 项奖励
回复