Add Symbols to ELF file with Simulink Coder

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

Add Symbols to ELF file with Simulink Coder

跳至解决方案
3,109 次查看
E_S
Contributor II

Hello there,

I am using Simulink Coder with the MCSXTE2BK142.

I want to debug the Simulink signals / data stores in FreeMaster.

What do I have to do in Matlab Simulink so that the signal or data store is listed in the .elf file? If it is listed in the .elf file, I can show the value in Freemaster in real time.

It works in the original example project, but I do not know how to configure it.

 

It seems to me that I need to change the Storage class of the data store memory block (https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-read-Simulink-signals-with-FreeM...). But I have no option for that. Is there a way for me to configure the storage class of the data store memory somewhere else?

Thanks

0 项奖励
回复
1 解答
3,027 次查看
nxa11767
NXP Employee
NXP Employee

Hi @E_S ,

On latest versions of matlab, the data storage changed and there is no longer option to set the storage type from the data memory storage block parameters. Instead you need to switch to Code perspective in your Simulink model :

nxa11767_1-1649333129068.png

And you'll see in the bottom bar a Code Mappings - C view:

nxa11767_0-1649333056744.png

Go to Data storage tab and there you can see your declared data memories and select the storage class.

Hope this info helps!

Best regards,

Alexandra

在原帖中查看解决方案

3 回复数
3,005 次查看
Loop645
Contributor I

The ASAM MCD-2 MC standard, also known as ASAP2, is a data definition standard proposed by the Association for Standardization of Automation and Measuring Systems (ASAM). ASAP2 is a non-object-oriented description of the data used for measurement, calibration, and diagnostic systems. For more information on ASAM and the ASAM MCD-2 MC (ASAP2) standard, see the ASAM website at

 

0 项奖励
回复
3,028 次查看
nxa11767
NXP Employee
NXP Employee

Hi @E_S ,

On latest versions of matlab, the data storage changed and there is no longer option to set the storage type from the data memory storage block parameters. Instead you need to switch to Code perspective in your Simulink model :

nxa11767_1-1649333129068.png

And you'll see in the bottom bar a Code Mappings - C view:

nxa11767_0-1649333056744.png

Go to Data storage tab and there you can see your declared data memories and select the storage class.

Hope this info helps!

Best regards,

Alexandra

3,080 次查看
JRoberto
NXP TechSupport
NXP TechSupport

Hi E_S,
I redirected your question to the right forum.

Have a nice day!

0 项奖励
回复