Code Generation Parameter not visible in Data Store Memory Block

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

Code Generation Parameter not visible in Data Store Memory Block

Jump to solution
1,798 Views
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 Kudos
1 Solution
1,780 Views
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

View solution in original post

0 Kudos
1 Reply
1,781 Views
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 Kudos