Storage Classes for MBDT and Freemaster

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

Storage Classes for MBDT and Freemaster

543 Views
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 Kudos
Reply
5 Replies

513 Views
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 Kudos
Reply

484 Views
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 Kudos
Reply

438 Views
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 Kudos
Reply

408 Views
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 Kudos
Reply

145 Views
Sam_ECU
Contributor V

Hello @Irina_Costachescu 

Any chance of further assistance?

0 Kudos
Reply