Code Generation Parameter not visible in Data Store Memory Block

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

Code Generation Parameter not visible in Data Store Memory Block

跳至解决方案
3,557 次查看
srikar_26
Contributor II

Hi,

I am using Data Store Memory block to store and view the data in FreeMaster.
Code Generation parameter is not visible in the block to change the the storage class to volatile.
The code is not generated for the block.
The system target file is: mbd_s32k.tlc

Do I have to make any changes in simulink block.

Please guide me.

Thank you

 

Data Store Memory BlockData Store Memory Block

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

Hello @srikar_26 

For a variable to be seen in the FreeMaster directly with his name, it has to be declared  a Signal Object Class as "Exported Global" or "Volatile" if you use it in an interrupt as well. Otherwise, Simulink will declare the variable inside a structure starting with the model's name. 

For that, depending on the Simulink version, you have to the to the Model Data Editor and select the Storage Class.

mariuslucianand_0-1630402670000.png

Hope this helps,

Marius

在原帖中查看解决方案

0 项奖励
回复
1 回复
3,540 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @srikar_26 

For a variable to be seen in the FreeMaster directly with his name, it has to be declared  a Signal Object Class as "Exported Global" or "Volatile" if you use it in an interrupt as well. Otherwise, Simulink will declare the variable inside a structure starting with the model's name. 

For that, depending on the Simulink version, you have to the to the Model Data Editor and select the Storage Class.

mariuslucianand_0-1630402670000.png

Hope this helps,

Marius

0 项奖励
回复